~ Changed makefiles
  ~ Removed testform from lararus and changed it into program
  * some formatting

git-svn-id: trunk@106 -
This commit is contained in:
lazarus 2001-01-08 23:48:33 +00:00
parent e914a86c61
commit 416eed0941
7 changed files with 84 additions and 88 deletions

View File

@ -1,14 +1,13 @@
# #
# Makefile generated by fpcmake v1.00 [2000/12/19] # Makefile generated by fpcmake v1.00 [2000/12/18]
# #
defaultrule: all defaultrule: all
##################################################################### #####################################################################
# Autodetect OS (Linux or Dos or Windows NT or OS/2) # Autodetect OS (Linux or Dos or Windows NT)
# define inUnix when running under Unix (Linux,FreeBSD) # define inUnix when running under Unix (Linux,FreeBSD)
# define inWinNT when running under WinNT # define inWinNT when running under WinNT
# define inOS2 when running under OS/2
##################################################################### #####################################################################
# We need only / in the path # We need only / in the path
@ -168,7 +167,7 @@ endif
# Targets # Targets
override DIROBJECTS+=$(wildcard lcl components designer) override DIROBJECTS+=$(wildcard lcl components)
override EXEOBJECTS+=lazarus override EXEOBJECTS+=lazarus
# Clean # Clean
@ -184,7 +183,7 @@ ZIPTARGET=install
# Directories # Directories
override NEEDUNITDIR=. lcl/units components/units ./designer override NEEDUNITDIR=. ./lcl/units ./components/units ./designer
override NEEDINCDIR=. ./include ./include/$(OS_TARGET) override NEEDINCDIR=. ./include ./include/$(OS_TARGET)
ifndef TARGETDIR ifndef TARGETDIR
TARGETDIR=. TARGETDIR=.
@ -1114,9 +1113,6 @@ endif
ifeq ($(OS_TARGET),win32) ifeq ($(OS_TARGET),win32)
PACKAGESUFFIX=w32 PACKAGESUFFIX=w32
endif endif
ifeq ($(OS_TARGET),os2)
PACKAGESUFFIX=emx
endif
endif endif
# Temporary path to pack a file # Temporary path to pack a file
@ -1362,7 +1358,7 @@ endif
# Dir components # Dir components
ifdef OBJECTDIRCOMPONENTS ifdef OBJECTDIRCOMPONENTS
.PHONY: components_all components_debug components_examples components_test components_smart components_shared components_showinstall components_install components_sourceinstall components_exampleinstall components_zipinstall components_zipsourceinstall components_zipexampleinstall components_clean components_distclean components_cleanall components_require components_info designer_clean .PHONY: components_all components_debug components_examples components_test components_smart components_shared components_showinstall components_install components_sourceinstall components_exampleinstall components_zipinstall components_zipsourceinstall components_zipexampleinstall components_clean components_distclean components_cleanall components_require components_info
components_all: components_all:
$(MAKE) -C components all $(MAKE) -C components all
@ -1417,9 +1413,6 @@ components_require:
components_info: components_info:
$(MAKE) -C components info $(MAKE) -C components info
designer_clean:
$(MAKE) -C designer clean
endif endif
##################################################################### #####################################################################
@ -1436,14 +1429,7 @@ endif
.PHONY: examples lcl components ide .PHONY: examples lcl components ide
# temp hack
# make 6 times to solve all unit dependencies
lcl: lcl_all lcl: lcl_all
$(MAKE) -C lcl
$(MAKE) -C lcl
$(MAKE) -C lcl
$(MAKE) -C lcl
$(MAKE) -C lcl
examples: lcl examples: lcl
$(MAKE) -C examples $(MAKE) -C examples

View File

@ -4,6 +4,7 @@
[targets] [targets]
programs=lazarus programs=lazarus
#dirs=lcl components designer
dirs=lcl components dirs=lcl components
[clean] [clean]
@ -14,7 +15,7 @@ packages=fcl gtk
[dirs] [dirs]
targetdir=. targetdir=.
unitdir=. lcl/units components/units ./designer unitdir=. ./lcl/units ./components/units ./designer
incdir=. ./include ./include/$(OS_TARGET) incdir=. ./include ./include/$(OS_TARGET)
[presettings] [presettings]
@ -22,14 +23,7 @@ incdir=. ./include ./include/$(OS_TARGET)
[rules] [rules]
.PHONY: examples lcl components ide .PHONY: examples lcl components ide
# temp hack
# make 6 times to solve all unit dependencies
lcl: lcl_all lcl: lcl_all
$(MAKE) -C lcl
$(MAKE) -C lcl
$(MAKE) -C lcl
$(MAKE) -C lcl
$(MAKE) -C lcl
examples: lcl examples: lcl
$(MAKE) -C examples $(MAKE) -C examples

View File

@ -31,7 +31,6 @@ uses
forms, forms,
splash, splash,
main, main,
testform,
compileroptions, compileroptions,
viewunit_dlg, //dialog used to list the units in a project viewunit_dlg, //dialog used to list the units in a project
viewform_dlg; //dialog to display the forms in the project viewform_dlg; //dialog to display the forms in the project
@ -53,7 +52,6 @@ begin
Application.CreateForm(TMainIDE, MainIDE); Application.CreateForm(TMainIDE, MainIDE);
Application.CreateForm(TfrmCompilerOptions, frmCompilerOptions); Application.CreateForm(TfrmCompilerOptions, frmCompilerOptions);
Application.CreateForm(TTestForm, TestForm1);
Application.CreateForm(TViewUnits1, ViewUnits1); Application.CreateForm(TViewUnits1, ViewUnits1);
Application.CreateForm(TViewForms1, ViewForms1); Application.CreateForm(TViewForms1, ViewForms1);
SplashForm.StartTimer; SplashForm.StartTimer;
@ -63,6 +61,12 @@ end.
{ {
$Log$ $Log$
Revision 1.7 2001/01/08 23:48:33 lazarus
MWE:
~ Changed makefiles
~ Removed testform from lararus and changed it into program
* some formatting
Revision 1.6 2001/01/04 20:33:53 lazarus Revision 1.6 2001/01/04 20:33:53 lazarus
Moved lresources. Moved lresources.
Moved CreateLFM to Main.pp Moved CreateLFM to Main.pp

View File

@ -33,7 +33,8 @@ uses
Spin, project,sysutils, global, Spin, project,sysutils, global,
compileroptions, Controls, graphics, extctrls, Dialogs, dlgMEssage, compileroptions, Controls, graphics, extctrls, Dialogs, dlgMEssage,
process, idecomp, Find_dlg, FormEditor, AbstractFormEditor, process, idecomp, Find_dlg, FormEditor, AbstractFormEditor,
CustomFormEditor,ObjectInspector, ControlSelection, PropEdits, UnitEditor,CompReg; CustomFormEditor,ObjectInspector, ControlSelection, PropEdits, UnitEditor,
CompReg;
const const
STANDARDBTNCOUNT = 50; STANDARDBTNCOUNT = 50;
@ -217,7 +218,7 @@ var
implementation implementation
uses uses
TestForm, ViewUnit_dlg,ViewForm_dlg, Math,lresources, Designer; ViewUnit_dlg,ViewForm_dlg, Math,lresources, Designer;
{ TMainIDE } { TMainIDE }
@ -312,13 +313,12 @@ begin
For I := 0 to RegCompList.PageCount-1 do for I := 0 to RegCompList.PageCount-1 do
Begin begin
RegCompPage := RegCompList.Pages[i]; RegCompPage := RegCompList.Pages[i];
if I = 0 then if I = 0
Notebook1.Pages.Strings[i] := RegCompPage.Name then Notebook1.Pages.Strings[i] := RegCompPage.Name
else else Notebook1.Pages.Add(RegCompPage.Name);
Notebook1.Pages.Add(RegCompPage.Name);
GlobalMouseSpeedButton := TSpeedButton.Create(Self); GlobalMouseSpeedButton := TSpeedButton.Create(Self);
with GlobalMouseSPeedButton do with GlobalMouseSPeedButton do
@ -346,8 +346,6 @@ begin
IDEComponent.SpeedButton.Hint := RegComp.ComponentClass.ClassName; IDEComponent.SpeedButton.Hint := RegComp.ComponentClass.ClassName;
IDEComponent.SpeedButton.ShowHint := True; IDEComponent.SpeedButton.ShowHint := True;
end; end;
end; end;
Notebook1.PageIndex := 0; // Set it to the first page Notebook1.PageIndex := 0; // Set it to the first page
@ -1892,6 +1890,12 @@ end.
{ ============================================================================= { =============================================================================
$Log$ $Log$
Revision 1.36 2001/01/08 23:48:33 lazarus
MWE:
~ Changed makefiles
~ Removed testform from lararus and changed it into program
* some formatting
Revision 1.35 2001/01/06 06:28:47 lazarus Revision 1.35 2001/01/06 06:28:47 lazarus
Made Designer control the control movement and such. I am now using ISDesignMsg to move the controls. Made Designer control the control movement and such. I am now using ISDesignMsg to move the controls.
Shane Shane

View File

@ -20,17 +20,14 @@
} }
{$H+} {$H+}
//{$DEFINE NEW_EDITOR} //{$DEFINE NEW_EDITOR}
unit TestForm; program TestForm;
{$mode objfpc} {$mode objfpc}
interface
uses uses
classes, Controls, forms,buttons,sysutils, stdctrls, classes, Controls, forms,buttons,sysutils, stdctrls,
mwPasSyn,mwcustomedit, Graphics; mwPasSyn,mwcustomedit, Graphics,
// compiler, stdctrls,forms,buttons,menus,comctrls, LCLLinux;
// Spin, project,sysutils,global,editor, compileroptions,Controls,graphics,extctrls, TabNotBk,
type type
@ -60,9 +57,6 @@ type
var var
TestForm1 : TTestForm; TestForm1 : TTestForm;
implementation
uses
LCLLinux;
constructor TTestForm.Create(AOwner: TComponent); constructor TTestForm.Create(AOwner: TComponent);
begin begin
@ -108,6 +102,7 @@ begin
mwPasSyn1.KeyAttri.Foreground := clRed; mwPasSyn1.KeyAttri.Foreground := clRed;
mwPasSyn1.NumberAttri.Foreground := clGreen; mwPasSyn1.NumberAttri.Foreground := clGreen;
(*
mwEdit1 := TmwCustomEdit.Create(Self); mwEdit1 := TmwCustomEdit.Create(Self);
mwEdit1.Top := 25; mwEdit1.Top := 25;
mwEdit1.Left := 0; mwEdit1.Left := 0;
@ -129,7 +124,7 @@ begin
// mwEdit1.Align := alClient; // mwEdit1.Align := alClient;
Assert(False, 'Trace:Created mwCustomEdit ...'); Assert(False, 'Trace:Created mwCustomEdit ...');
*)
cmdTest := TButton.Create(Self); cmdTest := TButton.Create(Self);
with cmdTest do with cmdTest do
@ -253,8 +248,8 @@ Begin
Assert(False, 'Trace:[TTestForm.ButtonClick] SetEditText'); Assert(False, 'Trace:[TTestForm.ButtonClick] SetEditText');
// mwEdit1.Lines.Text := mwEdit1.Lines.Text + 'Lazarus test code ' + #10 ; // mwEdit1.Lines.Text := mwEdit1.Lines.Text + 'Lazarus test code ' + #10 ;
mwEdit1.Lines.Add('Lazarus test code'); mwEdit1.Lines.Add('Lazarus test code');
Assert(False, 'Trace:[TTestForm.ButtonClick] Text --> ' + mwEdit1.Lines.Text); // Assert(False, 'Trace:[TTestForm.ButtonClick] Text --> ' + mwEdit1.Lines.Text);
// mwEdit1.RePaint; mwEdit1.RePaint;
except except
on E: Exception do WriteLN('Exception: ' + E.Message); on E: Exception do WriteLN('Exception: ' + E.Message);
//on Exception do; //on Exception do;
@ -295,6 +290,11 @@ begin
mwEdit1.SetFocus; mwEdit1.SetFocus;
end; end;
begin
Application.Initialize;
Application.CreateForm(TTestForm, TestForm1);
Application.Run;
end. end.
@ -302,6 +302,12 @@ end.
{ ============================================================================= { =============================================================================
$Log$ $Log$
Revision 1.2 2001/01/08 23:48:33 lazarus
MWE:
~ Changed makefiles
~ Removed testform from lararus and changed it into program
* some formatting
Revision 1.1 2000/07/13 10:27:48 michael Revision 1.1 2000/07/13 10:27:48 michael
+ Initial import + Initial import

View File

@ -1,14 +1,13 @@
# #
# Makefile generated by fpcmake v1.00 [2000/12/19] # Makefile generated by fpcmake v1.00 [2000/12/18]
# #
defaultrule: all defaultrule: all
##################################################################### #####################################################################
# Autodetect OS (Linux or Dos or Windows NT or OS/2) # Autodetect OS (Linux or Dos or Windows NT)
# define inUnix when running under Unix (Linux,FreeBSD) # define inUnix when running under Unix (Linux,FreeBSD)
# define inWinNT when running under WinNT # define inWinNT when running under WinNT
# define inOS2 when running under OS/2
##################################################################### #####################################################################
# We need only / in the path # We need only / in the path
@ -188,6 +187,7 @@ ZIPTARGET=install
# Defaults # Defaults
override NEEDOPT=-Ca
# Directories # Directories
@ -799,6 +799,10 @@ ifdef VERBOSE
override FPCOPT+=-vwni override FPCOPT+=-vwni
endif endif
ifdef NEEDOPT
override FPCOPT+=$(NEEDOPT)
endif
ifdef NEEDUNITDIR ifdef NEEDUNITDIR
override FPCOPT+=$(addprefix -Fu,$(NEEDUNITDIR)) override FPCOPT+=$(addprefix -Fu,$(NEEDUNITDIR))
endif endif
@ -1119,9 +1123,6 @@ endif
ifeq ($(OS_TARGET),win32) ifeq ($(OS_TARGET),win32)
PACKAGESUFFIX=w32 PACKAGESUFFIX=w32
endif endif
ifeq ($(OS_TARGET),os2)
PACKAGESUFFIX=emx
endif
endif endif
# Temporary path to pack a file # Temporary path to pack a file

View File

@ -6,6 +6,7 @@
programs=allunits programs=allunits
[require] [require]
options=-Ca
packages=fcl gtk packages=fcl gtk
[clean] [clean]