mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 02:39:23 +02:00
Removes the resource for TViewUnits and it compiles and runs now.
Shane git-svn-id: trunk@125 -
This commit is contained in:
parent
b86d3c39a1
commit
c0ca68ed97
@ -52,9 +52,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
Application.CreateForm(TMainIDE, MainIDE);
|
Application.CreateForm(TMainIDE, MainIDE);
|
||||||
Application.CreateForm(TViewUnits1, ViewUnits1);
|
|
||||||
Application.CreateForm(TViewForms1, ViewForms1);
|
|
||||||
Application.CreateForm(TMessageDlg, MessageDlg);
|
Application.CreateForm(TMessageDlg, MessageDlg);
|
||||||
|
Application.CreateForm(TViewForms1, ViewForms1);
|
||||||
|
Application.CreateForm(TViewUnits1, ViewUnits1);
|
||||||
Application.CreateForm(TfrmCompilerOptions, frmCompilerOptions);
|
Application.CreateForm(TfrmCompilerOptions, frmCompilerOptions);
|
||||||
SplashForm.StartTimer;
|
SplashForm.StartTimer;
|
||||||
Application.Run;
|
Application.Run;
|
||||||
@ -63,6 +63,11 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.10 2001/01/16 22:04:26 lazarus
|
||||||
|
Removes the resource for TViewUnits and it compiles and runs now.
|
||||||
|
|
||||||
|
Shane
|
||||||
|
|
||||||
Revision 1.9 2001/01/15 18:25:51 lazarus
|
Revision 1.9 2001/01/15 18:25:51 lazarus
|
||||||
Fixed a stupid error I caused by using a variable as an index in main.pp and this variable sometimes caused an exception because the index was out of range.
|
Fixed a stupid error I caused by using a variable as an index in main.pp and this variable sometimes caused an exception because the index was out of range.
|
||||||
Shane
|
Shane
|
||||||
|
43
ide/main.pp
43
ide/main.pp
@ -161,6 +161,7 @@ type
|
|||||||
Function CreateSeperator : TMenuItem;
|
Function CreateSeperator : TMenuItem;
|
||||||
Function ReturnActiveUnitList : TUnitInfo;
|
Function ReturnActiveUnitList : TUnitInfo;
|
||||||
Procedure UpdateViewDialogs;
|
Procedure UpdateViewDialogs;
|
||||||
|
Procedure SetDefaultsForForm(aForm : TCustomForm);
|
||||||
protected
|
protected
|
||||||
procedure DoFind(Sender : TObject);
|
procedure DoFind(Sender : TObject);
|
||||||
|
|
||||||
@ -1437,7 +1438,7 @@ var
|
|||||||
TempName : String;
|
TempName : String;
|
||||||
TempFormName : String;
|
TempFormName : String;
|
||||||
Found : Boolean;
|
Found : Boolean;
|
||||||
TempForm : TForm;
|
TempForm : TCustomForm;
|
||||||
CInterface : TComponentInterface;
|
CInterface : TComponentInterface;
|
||||||
begin
|
begin
|
||||||
//TempForm := TForm.Create(Self);
|
//TempForm := TForm.Create(Self);
|
||||||
@ -1452,21 +1453,8 @@ begin
|
|||||||
400,300));
|
400,300));
|
||||||
|
|
||||||
TempForm:=TForm(CInterface.Control);
|
TempForm:=TForm(CInterface.Control);
|
||||||
|
SetDefaultsForForm(TempForm);
|
||||||
TempForm.Designer :=
|
TDesigner(tempForm.Designer).SourceEditor := SourceNotebook.CreateUnitFromForm(TForm(TempForm));
|
||||||
TDesigner.Create(TCustomForm(CInterface.Control));
|
|
||||||
|
|
||||||
TDesigner(TempForm.Designer).MainIDE := Self;
|
|
||||||
|
|
||||||
TDesigner(TempForm.Designer).FormEditor := FormEditor1;
|
|
||||||
|
|
||||||
TDesigner(tempForm.Designer).SourceEditor := SourceNotebook.CreateUnitFromForm(TempForm);
|
|
||||||
|
|
||||||
// TempForm.OnMouseDown := @TDesigner(TempForm.Designer).MouseDownOnForm;
|
|
||||||
// TempForm.OnMouseUp := @TDesigner(TempForm.Designer).MouseUpOnForm;
|
|
||||||
// TempForm.OnMouseMove := @TDesigner(TempForm.Designer).MouseMoveOnForm;
|
|
||||||
|
|
||||||
TempForm.OnActivate := @CodeOrFormActivated;
|
|
||||||
TempForm.Show;
|
TempForm.Show;
|
||||||
|
|
||||||
SetDesigning(TempForm,True);
|
SetDesigning(TempForm,True);
|
||||||
@ -1558,6 +1546,14 @@ Begin
|
|||||||
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Procedure TMainIDE.SetDefaultsforForm(aForm : TCustomForm);
|
||||||
|
Begin
|
||||||
|
aForm.Designer := TDesigner.Create(aForm);
|
||||||
|
TDesigner(aForm.Designer).MainIDE := Self;
|
||||||
|
TDesigner(aForm.Designer).FormEditor := FormEditor1;
|
||||||
|
aForm.OnActivate := @CodeOrFormActivated;
|
||||||
|
end;
|
||||||
|
|
||||||
Procedure TMainIDE.FileOpenedEvent(Sender : TObject; Filename : String);
|
Procedure TMainIDE.FileOpenedEvent(Sender : TObject; Filename : String);
|
||||||
var
|
var
|
||||||
MenuItem : TMenuItem;
|
MenuItem : TMenuItem;
|
||||||
@ -1583,12 +1579,10 @@ Begin
|
|||||||
TempForm := FormEditor1.NewFormFromLFM(Texts);
|
TempForm := FormEditor1.NewFormFromLFM(Texts);
|
||||||
|
|
||||||
CInterface := TComponentInterface(FormEditor1.CreateControlComponentInterface(tempForm));
|
CInterface := TComponentInterface(FormEditor1.CreateControlComponentInterface(tempForm));
|
||||||
TempForm.Designer := TDesigner.Create(TempForm);
|
SetDefaultsForForm(TempForm);
|
||||||
TDesigner(TempForm.Designer).MainIDE := Self;
|
|
||||||
TDesigner(TempForm.Designer).FormEditor := FormEditor1;
|
|
||||||
TDesigner(tempForm.Designer).SourceEditor := TSourceEditor(sender);
|
|
||||||
TSourceEditor(sender).control := TempForm;
|
TSourceEditor(sender).control := TempForm;
|
||||||
TempForm.OnActivate := @CodeOrFormActivated;
|
TDesigner(TempForm.Designer).SourceEditor := TSourceEditor(sender);
|
||||||
|
|
||||||
for I := 0 to TempForm.ComponentCount -1 do
|
for I := 0 to TempForm.ComponentCount -1 do
|
||||||
FormEditor1.CreateControlComponentInterface(TempForm.Components[i]);
|
FormEditor1.CreateControlComponentInterface(TempForm.Components[i]);
|
||||||
TempForm.Show;
|
TempForm.Show;
|
||||||
@ -1621,7 +1615,7 @@ If TSourceEditor(Sender).IsControlUnit then
|
|||||||
// Writeln('Result = '+Inttostr(CreateLFM(ViewForms1)));
|
// Writeln('Result = '+Inttostr(CreateLFM(ViewForms1)));
|
||||||
// Writeln('Result = '+Inttostr(CreateLFM(MessageDlg)));
|
// Writeln('Result = '+Inttostr(CreateLFM(MessageDlg)));
|
||||||
// Writeln('Result = '+Inttostr(CreateLFM(FindDialog1)));
|
// Writeln('Result = '+Inttostr(CreateLFM(FindDialog1)));
|
||||||
Writeln('Result = '+Inttostr(CreateLFM(MainIDE)));
|
// Writeln('Result = '+Inttostr(CreateLFM(MainIDE)));
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1933,8 +1927,9 @@ end.
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.46 2001/01/16 16:21:29 lazarus
|
Revision 1.47 2001/01/16 22:04:26 lazarus
|
||||||
Changed LResources to TLResources
|
Removes the resource for TViewUnits and it compiles and runs now.
|
||||||
|
|
||||||
Shane
|
Shane
|
||||||
|
|
||||||
Revision 1.45 2001/01/15 20:55:44 lazarus
|
Revision 1.45 2001/01/15 20:55:44 lazarus
|
||||||
|
@ -43,7 +43,7 @@ type
|
|||||||
Procedure listbox1Click(Sender : TObject);
|
Procedure listbox1Click(Sender : TObject);
|
||||||
protected
|
protected
|
||||||
public
|
public
|
||||||
// constructor Create(AOwner: TComponent); override;
|
// constructor Create(AOwner: TComponent); override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -51,11 +51,12 @@ ViewForms1 : TViewForms1;
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
{
|
{
|
||||||
constructor TViewForms1.Create(AOwner: TComponent);
|
constructor TViewForms1.Create(AOwner: TComponent);
|
||||||
var
|
var
|
||||||
Pad : Integer;
|
Pad : Integer;
|
||||||
begin
|
begin
|
||||||
|
|
||||||
inherited Create(AOwner);
|
inherited Create(AOwner);
|
||||||
Caption := 'View Project Forms';
|
Caption := 'View Project Forms';
|
||||||
Left := 0;
|
Left := 0;
|
||||||
@ -95,7 +96,6 @@ begin
|
|||||||
edit1.Width := ClientWidth - (ClientWidth - btnOK.Left) - (2*pad);
|
edit1.Width := ClientWidth - (ClientWidth - btnOK.Left) - (2*pad);
|
||||||
Edit1.Height := 25;
|
Edit1.Height := 25;
|
||||||
Edit1.Visible := True;
|
Edit1.Visible := True;
|
||||||
Edit1.Text := 'Edit1';
|
|
||||||
Edit1.Name := 'Edit1';
|
Edit1.Name := 'Edit1';
|
||||||
|
|
||||||
|
|
||||||
@ -107,7 +107,6 @@ begin
|
|||||||
Width:= ClientWidth - (ClientWidth - btnOK.Left) - (2*pad);
|
Width:= ClientWidth - (ClientWidth - btnOK.Left) - (2*pad);
|
||||||
Height:= Self.Height - Top - pad;
|
Height:= Self.Height - Top - pad;
|
||||||
Visible:= true;
|
Visible:= true;
|
||||||
BorderStyle:= bsNone;
|
|
||||||
MultiSelect:= false;
|
MultiSelect:= false;
|
||||||
Listbox1.Name := 'Listbox1';
|
Listbox1.Name := 'Listbox1';
|
||||||
OnClick :=@listbox1Click;
|
OnClick :=@listbox1Click;
|
||||||
@ -117,7 +116,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
end;
|
end;
|
||||||
}
|
}
|
||||||
|
|
||||||
Procedure TViewForms1.btnOKClick(Sender : TOBject);
|
Procedure TViewForms1.btnOKClick(Sender : TOBject);
|
||||||
Begin
|
Begin
|
||||||
@ -169,6 +168,11 @@ initialization
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.5 2001/01/16 22:04:26 lazarus
|
||||||
|
Removes the resource for TViewUnits and it compiles and runs now.
|
||||||
|
|
||||||
|
Shane
|
||||||
|
|
||||||
Revision 1.4 2001/01/14 03:56:57 lazarus
|
Revision 1.4 2001/01/14 03:56:57 lazarus
|
||||||
Shane
|
Shane
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ type
|
|||||||
Procedure Listbox1Click(Sender : TObject);
|
Procedure Listbox1Click(Sender : TObject);
|
||||||
protected
|
protected
|
||||||
public
|
public
|
||||||
// constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -51,7 +51,7 @@ ViewUnits1 : TViewUnits1;
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
{
|
|
||||||
constructor TViewUnits1.Create(AOwner: TComponent);
|
constructor TViewUnits1.Create(AOwner: TComponent);
|
||||||
var
|
var
|
||||||
Pad : Integer;
|
Pad : Integer;
|
||||||
@ -106,7 +106,6 @@ begin
|
|||||||
Width:= ClientWidth - (ClientWidth - btnOK.Left) - (2*pad);
|
Width:= ClientWidth - (ClientWidth - btnOK.Left) - (2*pad);
|
||||||
Height:= Self.Height - Top - pad;
|
Height:= Self.Height - Top - pad;
|
||||||
Visible:= true;
|
Visible:= true;
|
||||||
BorderStyle:= bsNone;
|
|
||||||
MultiSelect:= false;
|
MultiSelect:= false;
|
||||||
Name := 'Listbox1';
|
Name := 'Listbox1';
|
||||||
OnClick := @ListBox1Click;
|
OnClick := @ListBox1Click;
|
||||||
@ -116,7 +115,7 @@ begin
|
|||||||
|
|
||||||
|
|
||||||
end;
|
end;
|
||||||
}
|
|
||||||
|
|
||||||
Procedure TViewUnits1.btnOKClick(Sender : TOBject);
|
Procedure TViewUnits1.btnOKClick(Sender : TOBject);
|
||||||
Begin
|
Begin
|
||||||
@ -157,7 +156,7 @@ end;
|
|||||||
initialization
|
initialization
|
||||||
{Do not change the following}
|
{Do not change the following}
|
||||||
{<LAZARUSFORMDEF>}
|
{<LAZARUSFORMDEF>}
|
||||||
{$I viewunits1.lrs}
|
{ $I viewunits1.lrs}
|
||||||
{<LAZARUSFORMDEFEND>}
|
{<LAZARUSFORMDEFEND>}
|
||||||
{}
|
{}
|
||||||
|
|
||||||
@ -165,6 +164,11 @@ initialization
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.5 2001/01/16 22:04:26 lazarus
|
||||||
|
Removes the resource for TViewUnits and it compiles and runs now.
|
||||||
|
|
||||||
|
Shane
|
||||||
|
|
||||||
Revision 1.4 2001/01/14 03:56:57 lazarus
|
Revision 1.4 2001/01/14 03:56:57 lazarus
|
||||||
Shane
|
Shane
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user