mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 22:00:20 +02:00
IDE: designer: InvokeComponentEditor: removed MenuIndex, it was not used
git-svn-id: trunk@48199 -
This commit is contained in:
parent
f69dd2379e
commit
7dde88bfad
@ -75,7 +75,8 @@ type
|
||||
Flags: TComponentPasteSelectionFlags
|
||||
): Boolean; virtual; abstract;
|
||||
function InvokeComponentEditor(AComponent: TComponent;
|
||||
MenuIndex: integer): boolean; virtual; abstract;
|
||||
{%H-}MenuIndex: integer): boolean; deprecated;
|
||||
function InvokeComponentEditor(AComponent: TComponent): boolean; virtual; abstract;
|
||||
|
||||
function CanUndo: Boolean; virtual; abstract;
|
||||
function CanRedo: Boolean; virtual; abstract;
|
||||
@ -1519,6 +1520,12 @@ begin
|
||||
FHandlers[cedhtModified].CallNotifyEvents(Self);
|
||||
end;
|
||||
|
||||
function TComponentEditorDesigner.InvokeComponentEditor(AComponent: TComponent;
|
||||
MenuIndex: integer): boolean;
|
||||
begin
|
||||
Result:=InvokeComponentEditor(AComponent,-1){%H-};
|
||||
end;
|
||||
|
||||
procedure TComponentEditorDesigner.DisconnectComponent;
|
||||
begin
|
||||
if Form=nil then exit;
|
||||
|
@ -57,7 +57,7 @@ type
|
||||
procedure ChangeClassDlgCreate(Sender: TObject);
|
||||
procedure NewClassComboBoxEditingDone(Sender: TObject);
|
||||
procedure NewClassComboBoxKeyUp(Sender: TObject; var Key: Word;
|
||||
Shift: TShiftState);
|
||||
{%H-}Shift: TShiftState);
|
||||
private
|
||||
FClasses: TAvgLvlTree;
|
||||
FNewClass: TClass;
|
||||
@ -70,7 +70,7 @@ type
|
||||
procedure FillAncestorListBox(AClass: TClass; AListBox: TListBox);
|
||||
procedure AddClass(const AClass: TPersistentClass);
|
||||
procedure AddComponentClass(const AClass: TComponentClass);
|
||||
function CompareClasses(Tree: TAvgLvlTree; Class1, Class2: TClass): integer;
|
||||
function CompareClasses({%H-}Tree: TAvgLvlTree; Class1, Class2: TClass): integer;
|
||||
public
|
||||
destructor Destroy; override;
|
||||
procedure FillNewClassComboBox;
|
||||
|
@ -282,8 +282,7 @@ type
|
||||
function CopySelectionToStream(AllComponentsStream: TStream): boolean; override;
|
||||
function InsertFromStream(s: TStream; Parent: TWinControl;
|
||||
PasteFlags: TComponentPasteSelectionFlags): Boolean; override;
|
||||
function InvokeComponentEditor(AComponent: TComponent;
|
||||
MenuIndex: integer): boolean; override;
|
||||
function InvokeComponentEditor(AComponent: TComponent): boolean; override;
|
||||
procedure DoProcessCommand(Sender: TObject; var Command: word;
|
||||
var Handled: boolean);
|
||||
|
||||
@ -1515,8 +1514,7 @@ begin
|
||||
Result:=DoDeleteSelectedPersistents;
|
||||
end;
|
||||
|
||||
function TDesigner.InvokeComponentEditor(AComponent: TComponent;
|
||||
MenuIndex: integer): boolean;
|
||||
function TDesigner.InvokeComponentEditor(AComponent: TComponent): boolean;
|
||||
var
|
||||
CompEditor: TBaseComponentEditor;
|
||||
begin
|
||||
@ -2343,7 +2341,7 @@ var
|
||||
begin
|
||||
// Double Click -> invoke 'Edit' of the component editor
|
||||
FShiftState := Shift;
|
||||
InvokeComponentEditor(MouseDownComponent, -1);
|
||||
InvokeComponentEditor(MouseDownComponent);
|
||||
FShiftState := [];
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user