mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 21:55:56 +02:00
fixed fpc 1.9.1 warns
git-svn-id: trunk@4869 -
This commit is contained in:
parent
21484feee9
commit
bbaf66e037
@ -56,8 +56,8 @@ type
|
|||||||
subitem_level: Integer;
|
subitem_level: Integer;
|
||||||
fAction: Integer;
|
fAction: Integer;
|
||||||
public
|
public
|
||||||
constructor Create(AOwner: TComponent; aAction: Integer);
|
constructor CreateWithAction(AOwner: TComponent; aAction: Integer);
|
||||||
procedure OkButtonCLick(Sender: TObject);
|
procedure OkButtonClick(Sender: TObject);
|
||||||
procedure CancelButtonCLick(Sender: TObject);
|
procedure CancelButtonCLick(Sender: TObject);
|
||||||
function GetSelectedMenuTemplate: Integer;
|
function GetSelectedMenuTemplate: Integer;
|
||||||
function GetDescription: string;
|
function GetDescription: string;
|
||||||
@ -100,7 +100,8 @@ type
|
|||||||
TemplateMenuForm: TTemplateMenuForm;
|
TemplateMenuForm: TTemplateMenuForm;
|
||||||
public
|
public
|
||||||
// Constructor and destructor
|
// Constructor and destructor
|
||||||
constructor Create(aOwner: TComponent; aMenu: TMenu; aEditor: TComponentEditor);
|
constructor CreateWithMenu(aOwner: TComponent; aMenu: TMenu;
|
||||||
|
aEditor: TComponentEditor);
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
|
||||||
// Properties for accesing private variables
|
// Properties for accesing private variables
|
||||||
@ -189,7 +190,8 @@ var
|
|||||||
XMLConfig: TXMLConfig;
|
XMLConfig: TXMLConfig;
|
||||||
|
|
||||||
//
|
//
|
||||||
constructor TDesignerMainMenu.Create(aOwner: TComponent; aMenu: TMenu; aEditor: TComponentEditor);
|
constructor TDesignerMainMenu.CreateWithMenu(aOwner: TComponent; aMenu: TMenu;
|
||||||
|
aEditor: TComponentEditor);
|
||||||
var
|
var
|
||||||
PopupMenuItem: TMenuItem;
|
PopupMenuItem: TMenuItem;
|
||||||
begin
|
begin
|
||||||
@ -831,7 +833,7 @@ var
|
|||||||
templatemenuitem: string;
|
templatemenuitem: string;
|
||||||
temp_designermenuitem: PDesignerMenuItem;
|
temp_designermenuitem: PDesignerMenuItem;
|
||||||
begin
|
begin
|
||||||
TemplateMenuForm:=TTemplateMenuForm.Create(self, 1);
|
TemplateMenuForm:=TTemplateMenuForm.CreateWithAction(self, 1);
|
||||||
if (TemplateMenuForm.ShowModal = mrOK) then
|
if (TemplateMenuForm.ShowModal = mrOK) then
|
||||||
begin
|
begin
|
||||||
|
|
||||||
@ -1090,7 +1092,7 @@ begin
|
|||||||
i:=1;
|
i:=1;
|
||||||
Str(i,str_i);
|
Str(i,str_i);
|
||||||
templatemenuitem:='menu_' + str_i;
|
templatemenuitem:='menu_' + str_i;
|
||||||
TemplateMenuForm:=TTemplateMenuForm.Create(self, 2);
|
TemplateMenuForm:=TTemplateMenuForm.CreateWithAction(self, 2);
|
||||||
if (TemplateMenuForm.ShowModal = mrOK) then
|
if (TemplateMenuForm.ShowModal = mrOK) then
|
||||||
begin
|
begin
|
||||||
while (XMLConfig.GetValue(templatemenuitem + '/Name/Value','does_not_exists') <> 'does_not_exists') do
|
while (XMLConfig.GetValue(templatemenuitem + '/Name/Value','does_not_exists') <> 'does_not_exists') do
|
||||||
@ -1141,7 +1143,7 @@ begin
|
|||||||
//SelectedDesignerMenuItem:=GetSelectedDesignerMenuItem(Root);
|
//SelectedDesignerMenuItem:=GetSelectedDesignerMenuItem(Root);
|
||||||
i:=1;
|
i:=1;
|
||||||
j:=1;
|
j:=1;
|
||||||
TemplateMenuForm:=TTemplateMenuForm.Create(self, 3);
|
TemplateMenuForm:=TTemplateMenuForm.CreateWithAction(self, 3);
|
||||||
if (TemplateMenuForm.ShowModal = mrOK) and (TemplateMenuForm.GetSelectedMenuTemplate > 0) then
|
if (TemplateMenuForm.ShowModal = mrOK) and (TemplateMenuForm.GetSelectedMenuTemplate > 0) then
|
||||||
begin
|
begin
|
||||||
i:=TemplateMenuForm.GetSelectedMenuTemplate;
|
i:=TemplateMenuForm.GetSelectedMenuTemplate;
|
||||||
@ -1796,7 +1798,8 @@ end;
|
|||||||
// TTemplateMenuForm ---/
|
// TTemplateMenuForm ---/
|
||||||
// ---------------------/
|
// ---------------------/
|
||||||
|
|
||||||
constructor TTemplateMenuForm.Create(AOwner: TComponent; aAction: Integer);
|
constructor TTemplateMenuForm.CreateWithAction(AOwner: TComponent;
|
||||||
|
aAction: Integer);
|
||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
templatemenuitem, str_i: string;
|
templatemenuitem, str_i: string;
|
||||||
|
@ -112,7 +112,7 @@ begin
|
|||||||
fEditor:=aEditor;
|
fEditor:=aEditor;
|
||||||
|
|
||||||
|
|
||||||
DesignerMainMenu:=TDesignerMainMenu.Create(Self, fMenu, fEditor);
|
DesignerMainMenu:=TDesignerMainMenu.CreateWithMenu(Self, fMenu, fEditor);
|
||||||
PopupMenu:=DesignerMainMenu.MainPopupMenu;
|
PopupMenu:=DesignerMainMenu.MainPopupMenu;
|
||||||
|
|
||||||
Cmp2:=TScrollBox.Create(self);
|
Cmp2:=TScrollBox.Create(self);
|
||||||
@ -215,7 +215,7 @@ begin
|
|||||||
fMenu:=TMenu(fDesigner.Form.Components[j]);
|
fMenu:=TMenu(fDesigner.Form.Components[j]);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
DesignerMainMenu:=TDesignerMainMenu.Create(Self, fMenu, fEditor);
|
DesignerMainMenu:=TDesignerMainMenu.CreateWithMenu(Self, fMenu, fEditor);
|
||||||
with DesignerMainMenu do
|
with DesignerMainMenu do
|
||||||
begin
|
begin
|
||||||
Parent:=Self;
|
Parent:=Self;
|
||||||
|
@ -650,7 +650,6 @@ type
|
|||||||
private
|
private
|
||||||
MinBtn,
|
MinBtn,
|
||||||
MaxBtn : TControl;//TSpeedButton's
|
MaxBtn : TControl;//TSpeedButton's
|
||||||
BTimer : TTimer;
|
|
||||||
BTimerProc : Procedure of Object;
|
BTimerProc : Procedure of Object;
|
||||||
BTimerBounds : TRect;
|
BTimerBounds : TRect;
|
||||||
FArrowKeys: Boolean;
|
FArrowKeys: Boolean;
|
||||||
@ -1937,6 +1936,9 @@ end.
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.92 2003/11/30 18:35:19 mattias
|
||||||
|
fixed fpc 1.9.1 warns
|
||||||
|
|
||||||
Revision 1.91 2003/11/07 15:57:45 mattias
|
Revision 1.91 2003/11/07 15:57:45 mattias
|
||||||
implemented auto selection visible for component tree
|
implemented auto selection visible for component tree
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ Type
|
|||||||
|
|
||||||
TUpDownButton = Class(TSpeedButton)
|
TUpDownButton = Class(TSpeedButton)
|
||||||
Private
|
Private
|
||||||
|
BTimer : TTimer;
|
||||||
FUpDown : TCustomUpDown;
|
FUpDown : TCustomUpDown;
|
||||||
FButtonType : TUDBtnType;
|
FButtonType : TUDBtnType;
|
||||||
Protected
|
Protected
|
||||||
|
@ -8390,7 +8390,7 @@ begin
|
|||||||
|
|
||||||
// create Lines
|
// create Lines
|
||||||
CurLineEntry:=Lines;
|
CurLineEntry:=Lines;
|
||||||
CurLineStart:=PChar(Lines)+ArraySize;
|
CurLineStart:=PChar(CurLineEntry)+ArraySize;
|
||||||
i:=0;
|
i:=0;
|
||||||
while i<LinesList.Count do begin
|
while i<LinesList.Count do begin
|
||||||
// set the pointer to the start of the current line
|
// set the pointer to the start of the current line
|
||||||
@ -8465,6 +8465,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.440 2003/11/30 18:35:19 mattias
|
||||||
|
fixed fpc 1.9.1 warns
|
||||||
|
|
||||||
Revision 1.439 2003/11/29 13:17:38 mattias
|
Revision 1.439 2003/11/29 13:17:38 mattias
|
||||||
made gtklayout using window theme at start
|
made gtklayout using window theme at start
|
||||||
|
|
||||||
|
@ -5108,7 +5108,7 @@ begin
|
|||||||
clMENUTEXT,
|
clMENUTEXT,
|
||||||
clBTNTEXT :
|
clBTNTEXT :
|
||||||
begin
|
begin
|
||||||
Case Color of
|
Case TColor(Color) of
|
||||||
clBTNTEXT : Style := GetStyle('button');
|
clBTNTEXT : Style := GetStyle('button');
|
||||||
clMENUTEXT : Style := GetStyle('menuitem');
|
clMENUTEXT : Style := GetStyle('menuitem');
|
||||||
end;
|
end;
|
||||||
@ -5159,7 +5159,7 @@ var
|
|||||||
begin
|
begin
|
||||||
style := nil;
|
style := nil;
|
||||||
|
|
||||||
Case Color of
|
Case TColor(Color) of
|
||||||
{ clMenu:
|
{ clMenu:
|
||||||
begin
|
begin
|
||||||
Style := GetStyle('menuitem');
|
Style := GetStyle('menuitem');
|
||||||
@ -5620,6 +5620,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.232 2003/11/30 18:35:20 mattias
|
||||||
|
fixed fpc 1.9.1 warns
|
||||||
|
|
||||||
Revision 1.231 2003/11/29 13:17:38 mattias
|
Revision 1.231 2003/11/29 13:17:38 mattias
|
||||||
made gtklayout using window theme at start
|
made gtklayout using window theme at start
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user