mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-16 16:16:02 +02:00
anchordocking: removed IDE option enabled
git-svn-id: trunk@39776 -
This commit is contained in:
parent
a86dfa48c1
commit
0438d5e258
@ -103,8 +103,6 @@ resourcestring
|
|||||||
+'shown in the normal window title';
|
+'shown in the normal window title';
|
||||||
adrsErrorWritingWindowLayoutToFile = 'Error writing window layout to file "%'
|
adrsErrorWritingWindowLayoutToFile = 'Error writing window layout to file "%'
|
||||||
+'s"%s%s';
|
+'s"%s%s';
|
||||||
adrsDockingEnabledRequiresARestartOfTheIDE = 'Docking enabled (Requires a '
|
|
||||||
+'restart of the IDE)';
|
|
||||||
adrsToUseAnchordockingYouMustFirstUninstall = 'To use anchordocking you '
|
adrsToUseAnchordockingYouMustFirstUninstall = 'To use anchordocking you '
|
||||||
+'must first uninstall %s';
|
+'must first uninstall %s';
|
||||||
adrsThereIsAnotherDockMasterInstalledOnlyOneDockingPac = 'There is another '
|
adrsThereIsAnotherDockMasterInstalledOnlyOneDockingPac = 'There is another '
|
||||||
|
@ -1,26 +1,16 @@
|
|||||||
inherited AnchorDockIDEFrame: TAnchorDockIDEFrame
|
object AnchorDockIDEFrame: TAnchorDockIDEFrame
|
||||||
|
Left = 0
|
||||||
Height = 388
|
Height = 388
|
||||||
|
Top = 0
|
||||||
Width = 495
|
Width = 495
|
||||||
ClientHeight = 388
|
ClientHeight = 388
|
||||||
ClientWidth = 495
|
ClientWidth = 495
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
DesignLeft = 407
|
DesignLeft = 407
|
||||||
DesignTop = 295
|
DesignTop = 295
|
||||||
object EnableCheckBox: TCheckBox[0]
|
object NoteLabel: TLabel
|
||||||
AnchorSideLeft.Control = Owner
|
|
||||||
AnchorSideTop.Control = NoteLabel
|
|
||||||
AnchorSideTop.Side = asrBottom
|
|
||||||
Left = 6
|
Left = 6
|
||||||
Height = 22
|
Height = 15
|
||||||
Top = 30
|
|
||||||
Width = 133
|
|
||||||
BorderSpacing.Around = 6
|
|
||||||
Caption = 'EnableCheckBox'
|
|
||||||
TabOrder = 0
|
|
||||||
end
|
|
||||||
object NoteLabel: TLabel[1]
|
|
||||||
Left = 6
|
|
||||||
Height = 18
|
|
||||||
Top = 6
|
Top = 6
|
||||||
Width = 483
|
Width = 483
|
||||||
Align = alTop
|
Align = alTop
|
||||||
|
@ -26,15 +26,6 @@
|
|||||||
You should have received a copy of the GNU Library General Public License
|
You should have received a copy of the GNU Library General Public License
|
||||||
along with this library; if not, write to the Free Software Foundation,
|
along with this library; if not, write to the Free Software Foundation,
|
||||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
ToDo:
|
|
||||||
- save settings after options dialog
|
|
||||||
- bug: opening a package editor does not put it to front
|
|
||||||
- close source editor and show again
|
|
||||||
- qt: focus on close page
|
|
||||||
- gtk2: focus on cancel completion box
|
|
||||||
- gtk2: focus on execute completion box
|
|
||||||
- gtk2: restore fails for mainidebar
|
|
||||||
}
|
}
|
||||||
unit RegisterAnchorDocking;
|
unit RegisterAnchorDocking;
|
||||||
|
|
||||||
@ -66,7 +57,6 @@ type
|
|||||||
TIDEAnchorDockMaster = class(TIDEDockMaster)
|
TIDEAnchorDockMaster = class(TIDEDockMaster)
|
||||||
private
|
private
|
||||||
FChangeStamp: int64;
|
FChangeStamp: int64;
|
||||||
FEnabled: boolean;
|
|
||||||
FSavedChangeStamp: int64;
|
FSavedChangeStamp: int64;
|
||||||
FSavedDMChangeStamp: int64;
|
FSavedDMChangeStamp: int64;
|
||||||
FUserLayoutLoaded: boolean;
|
FUserLayoutLoaded: boolean;
|
||||||
@ -75,7 +65,6 @@ type
|
|||||||
procedure GetDefaultBounds(AForm: TCustomForm; out Creator: TIDEWindowCreator;
|
procedure GetDefaultBounds(AForm: TCustomForm; out Creator: TIDEWindowCreator;
|
||||||
out NewBounds: TRect; out DockSiblingName: string; out DockAlign: TAlign);
|
out NewBounds: TRect; out DockSiblingName: string; out DockAlign: TAlign);
|
||||||
function GetModified: boolean;
|
function GetModified: boolean;
|
||||||
procedure SetEnabled(const AValue: boolean);
|
|
||||||
procedure SetModified(const AValue: boolean);
|
procedure SetModified(const AValue: boolean);
|
||||||
procedure SetUserLayoutLoaded(const AValue: boolean);
|
procedure SetUserLayoutLoaded(const AValue: boolean);
|
||||||
public
|
public
|
||||||
@ -94,7 +83,6 @@ type
|
|||||||
procedure LoadLayoutFromFile(Filename: string);
|
procedure LoadLayoutFromFile(Filename: string);
|
||||||
procedure SaveLayoutToFile(Filename: string);
|
procedure SaveLayoutToFile(Filename: string);
|
||||||
property UserLayoutLoaded: boolean read FUserLayoutLoaded write SetUserLayoutLoaded;
|
property UserLayoutLoaded: boolean read FUserLayoutLoaded write SetUserLayoutLoaded;
|
||||||
property Enabled: boolean read FEnabled write SetEnabled;
|
|
||||||
// events
|
// events
|
||||||
procedure MakeIDEWindowDockSite(AForm: TCustomForm; ASides: TDockSides = [alBottom]); override;
|
procedure MakeIDEWindowDockSite(AForm: TCustomForm; ASides: TDockSides = [alBottom]); override;
|
||||||
procedure MakeIDEWindowDockable(AControl: TWinControl); override;
|
procedure MakeIDEWindowDockable(AControl: TWinControl); override;
|
||||||
@ -113,7 +101,6 @@ type
|
|||||||
{ TAnchorDockIDEFrame }
|
{ TAnchorDockIDEFrame }
|
||||||
|
|
||||||
TAnchorDockIDEFrame = class(TAbstractIDEOptionsEditor)
|
TAnchorDockIDEFrame = class(TAbstractIDEOptionsEditor)
|
||||||
EnableCheckBox: TCheckBox;
|
|
||||||
NoteLabel: TLabel;
|
NoteLabel: TLabel;
|
||||||
private
|
private
|
||||||
FSettings: TAnchorDockSettings;
|
FSettings: TAnchorDockSettings;
|
||||||
@ -216,13 +203,6 @@ begin
|
|||||||
Result:=false;
|
Result:=false;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TIDEAnchorDockMaster.SetEnabled(const AValue: boolean);
|
|
||||||
begin
|
|
||||||
if FEnabled=AValue then exit;
|
|
||||||
FEnabled:=AValue;
|
|
||||||
IncreaseChangeStamp;
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure TIDEAnchorDockMaster.SetModified(const AValue: boolean);
|
procedure TIDEAnchorDockMaster.SetModified(const AValue: boolean);
|
||||||
begin
|
begin
|
||||||
if AValue then
|
if AValue then
|
||||||
@ -242,7 +222,6 @@ end;
|
|||||||
constructor TIDEAnchorDockMaster.Create;
|
constructor TIDEAnchorDockMaster.Create;
|
||||||
begin
|
begin
|
||||||
inherited Create;
|
inherited Create;
|
||||||
fEnabled:=true;
|
|
||||||
IDEAnchorDockMaster:=Self;
|
IDEAnchorDockMaster:=Self;
|
||||||
DockMaster.OnCreateControl:=@DockMasterCreateControl;
|
DockMaster.OnCreateControl:=@DockMasterCreateControl;
|
||||||
DockMaster.OnShowOptions:=@ShowAnchorDockOptions;
|
DockMaster.OnShowOptions:=@ShowAnchorDockOptions;
|
||||||
@ -652,11 +631,8 @@ begin
|
|||||||
if ADialog=nil then ;
|
if ADialog=nil then ;
|
||||||
if IDEDockMaster=IDEAnchorDockMaster then begin
|
if IDEDockMaster=IDEAnchorDockMaster then begin
|
||||||
NoteLabel.Visible:=false;
|
NoteLabel.Visible:=false;
|
||||||
EnableCheckBox.AnchorParallel(akTop,6,Self);
|
OptionsFrame.Align:=alClient;
|
||||||
OptionsFrame.Align:=alBottom;
|
|
||||||
OptionsFrame.AnchorToNeighbour(akTop,6,EnableCheckBox);
|
|
||||||
OptionsFrame.Parent:=Self;
|
OptionsFrame.Parent:=Self;
|
||||||
EnableCheckBox.Caption:=adrsDockingEnabledRequiresARestartOfTheIDE;
|
|
||||||
end else begin
|
end else begin
|
||||||
NoteLabel.Visible:=true;
|
NoteLabel.Visible:=true;
|
||||||
NoteLabel.Caption:=Format(adrsToUseAnchordockingYouMustFirstUninstall, [
|
NoteLabel.Caption:=Format(adrsToUseAnchordockingYouMustFirstUninstall, [
|
||||||
@ -664,7 +640,6 @@ begin
|
|||||||
NoteLabel.Hint:=Format(
|
NoteLabel.Hint:=Format(
|
||||||
adrsThereIsAnotherDockMasterInstalledOnlyOneDockingPac, [DbgSName(
|
adrsThereIsAnotherDockMasterInstalledOnlyOneDockingPac, [DbgSName(
|
||||||
IDEDockMaster)]);
|
IDEDockMaster)]);
|
||||||
EnableCheckBox.Visible:=false;
|
|
||||||
OptionsFrame.Parent:=nil;
|
OptionsFrame.Parent:=nil;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -672,7 +647,6 @@ end;
|
|||||||
procedure TAnchorDockIDEFrame.ReadSettings(AOptions: TAbstractIDEOptions);
|
procedure TAnchorDockIDEFrame.ReadSettings(AOptions: TAbstractIDEOptions);
|
||||||
begin
|
begin
|
||||||
if not (AOptions is SupportedOptionsClass) then exit;
|
if not (AOptions is SupportedOptionsClass) then exit;
|
||||||
EnableCheckBox.Checked:=IDEAnchorDockMaster.Enabled;
|
|
||||||
DockMaster.SaveSettings(FSettings);
|
DockMaster.SaveSettings(FSettings);
|
||||||
OptionsFrame.LoadFromSettings(FSettings);
|
OptionsFrame.LoadFromSettings(FSettings);
|
||||||
end;
|
end;
|
||||||
@ -680,7 +654,6 @@ end;
|
|||||||
procedure TAnchorDockIDEFrame.WriteSettings(AOptions: TAbstractIDEOptions);
|
procedure TAnchorDockIDEFrame.WriteSettings(AOptions: TAbstractIDEOptions);
|
||||||
begin
|
begin
|
||||||
if not (AOptions is SupportedOptionsClass) then exit;
|
if not (AOptions is SupportedOptionsClass) then exit;
|
||||||
IDEAnchorDockMaster.Enabled:=EnableCheckBox.Checked;
|
|
||||||
OptionsFrame.SaveToSettings(FSettings);
|
OptionsFrame.SaveToSettings(FSettings);
|
||||||
if (not DockMaster.SettingsAreEqual(FSettings))
|
if (not DockMaster.SettingsAreEqual(FSettings))
|
||||||
or (not FileExistsUTF8(IDEAnchorDockMaster.GetDefaultLayoutFilename(true)))
|
or (not FileExistsUTF8(IDEAnchorDockMaster.GetDefaultLayoutFilename(true)))
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
Arabic translation of Free Pascal Lazarus Project.
|
|
||||||
Copyright (C) 2012 Lazarus Project
|
|
||||||
This file is distributed under the same license as the Lazarus package.
|
|
||||||
Khaled Shagrouni <shagrouni@gmail.com>, 2012.
|
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Free Pascal Lazarus Project.\n"
|
"Project-Id-Version: Free Pascal Lazarus Project.\n"
|
||||||
@ -73,10 +69,6 @@ msgstr "موقع إرساء مخصّص %s%s%s يمكنه امتلاك موقع
|
|||||||
msgid "Docking / Anchordocking"
|
msgid "Docking / Anchordocking"
|
||||||
msgstr "الإرساء / تعليق الإرساء"
|
msgstr "الإرساء / تعليق الإرساء"
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingenabledrequiresarestartoftheide
|
|
||||||
msgid "Docking enabled (Requires a restart of the IDE)"
|
|
||||||
msgstr "تمكين الإرساء (يتطلّب إعادة تشغيل بيئة التطوير)"
|
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingoptions
|
#: anchordockstr.adrsdockingoptions
|
||||||
msgid "Docking options"
|
msgid "Docking options"
|
||||||
msgstr "خيارات التعشيق "
|
msgstr "خيارات التعشيق "
|
||||||
|
@ -65,10 +65,6 @@ msgstr ""
|
|||||||
msgid "Docking / Anchordocking"
|
msgid "Docking / Anchordocking"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingenabledrequiresarestartoftheide
|
|
||||||
msgid "Docking enabled (Requires a restart of the IDE)"
|
|
||||||
msgstr "Ukotvení povoleno (Vyžaduje restart IDE)"
|
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingoptions
|
#: anchordockstr.adrsdockingoptions
|
||||||
msgid "Docking options"
|
msgid "Docking options"
|
||||||
msgstr "Volby ukotvení"
|
msgstr "Volby ukotvení"
|
||||||
|
@ -65,10 +65,6 @@ msgstr ""
|
|||||||
msgid "Docking / Anchordocking"
|
msgid "Docking / Anchordocking"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingenabledrequiresarestartoftheide
|
|
||||||
msgid "Docking enabled (Requires a restart of the IDE)"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingoptions
|
#: anchordockstr.adrsdockingoptions
|
||||||
msgid "Docking options"
|
msgid "Docking options"
|
||||||
msgstr "Docking-Einstellungen"
|
msgstr "Docking-Einstellungen"
|
||||||
|
@ -65,10 +65,6 @@ msgstr "Sitio de anclaje personalizado %s%s%s puede tener sólo un sitio."
|
|||||||
msgid "Docking / Anchordocking"
|
msgid "Docking / Anchordocking"
|
||||||
msgstr "Acoplamiento / Anclaje de acoplamiento"
|
msgstr "Acoplamiento / Anclaje de acoplamiento"
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingenabledrequiresarestartoftheide
|
|
||||||
msgid "Docking enabled (Requires a restart of the IDE)"
|
|
||||||
msgstr "Acoplamiento habilitado (requiere un reinicio del IDE)"
|
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingoptions
|
#: anchordockstr.adrsdockingoptions
|
||||||
msgid "Docking options"
|
msgid "Docking options"
|
||||||
msgstr "Opciones de acoplamiento"
|
msgstr "Opciones de acoplamiento"
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
Massimo Soricetti <notturno@quipo.it>, 2011.
|
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"PO-Revision-Date: 2011-04-21 23:43+0200\n"
|
"PO-Revision-Date: 2011-04-21 23:43+0200\n"
|
||||||
@ -67,10 +66,6 @@ msgstr "Il sito di docking personalizzato %s%s%s può avere un solo sito."
|
|||||||
msgid "Docking / Anchordocking"
|
msgid "Docking / Anchordocking"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingenabledrequiresarestartoftheide
|
|
||||||
msgid "Docking enabled (Requires a restart of the IDE)"
|
|
||||||
msgstr "docking abilitato (richiede il riavvio dell'IDE)"
|
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingoptions
|
#: anchordockstr.adrsdockingoptions
|
||||||
msgid "Docking options"
|
msgid "Docking options"
|
||||||
msgstr "Opzioni di docking"
|
msgstr "Opzioni di docking"
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
Valdas Jankunas <zmuogs@gmail.com>, 2012.
|
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
@ -68,10 +67,6 @@ msgstr "Savoje pritvirtinimo vietoje %s%s%s gali būti tik viena vieta pritvirti
|
|||||||
msgid "Docking / Anchordocking"
|
msgid "Docking / Anchordocking"
|
||||||
msgstr "Pritvirtinimas / Prieraišų pritvirtinimas"
|
msgstr "Pritvirtinimas / Prieraišų pritvirtinimas"
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingenabledrequiresarestartoftheide
|
|
||||||
msgid "Docking enabled (Requires a restart of the IDE)"
|
|
||||||
msgstr "Pritvirtinimas įgalintas (IKA būtina paleisti iš naujo)"
|
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingoptions
|
#: anchordockstr.adrsdockingoptions
|
||||||
msgid "Docking options"
|
msgid "Docking options"
|
||||||
msgstr "Pritvirtinimo parinktys"
|
msgstr "Pritvirtinimo parinktys"
|
||||||
|
@ -57,10 +57,6 @@ msgstr ""
|
|||||||
msgid "Docking / Anchordocking"
|
msgid "Docking / Anchordocking"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingenabledrequiresarestartoftheide
|
|
||||||
msgid "Docking enabled (Requires a restart of the IDE)"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingoptions
|
#: anchordockstr.adrsdockingoptions
|
||||||
msgid "Docking options"
|
msgid "Docking options"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -67,10 +67,6 @@ msgstr "Local de ancoragem customizado %s%s%s só pode ter um local."
|
|||||||
msgid "Docking / Anchordocking"
|
msgid "Docking / Anchordocking"
|
||||||
msgstr "Docking / Anchordocking"
|
msgstr "Docking / Anchordocking"
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingenabledrequiresarestartoftheide
|
|
||||||
msgid "Docking enabled (Requires a restart of the IDE)"
|
|
||||||
msgstr "Ancoragem habilitada (Requer reinicio da IDE)"
|
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingoptions
|
#: anchordockstr.adrsdockingoptions
|
||||||
msgid "Docking options"
|
msgid "Docking options"
|
||||||
msgstr "Opções Ancoragem"
|
msgstr "Opções Ancoragem"
|
||||||
|
@ -65,10 +65,6 @@ msgstr "Пользовательская область стыковки %s%s%s
|
|||||||
msgid "Docking / Anchordocking"
|
msgid "Docking / Anchordocking"
|
||||||
msgstr "Стыковка / Anchordocking"
|
msgstr "Стыковка / Anchordocking"
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingenabledrequiresarestartoftheide
|
|
||||||
msgid "Docking enabled (Requires a restart of the IDE)"
|
|
||||||
msgstr "Включить стыковку (требует перезапуска IDE)"
|
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingoptions
|
#: anchordockstr.adrsdockingoptions
|
||||||
msgid "Docking options"
|
msgid "Docking options"
|
||||||
msgstr "Параметры стыковки"
|
msgstr "Параметры стыковки"
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
Igor Paliychuk <mansonigor@gmail.com>, 2012.
|
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
@ -69,10 +68,6 @@ msgstr "Користув. область стикування %s%s%s може м
|
|||||||
msgid "Docking / Anchordocking"
|
msgid "Docking / Anchordocking"
|
||||||
msgstr "Стикування / Якірне Стикування"
|
msgstr "Стикування / Якірне Стикування"
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingenabledrequiresarestartoftheide
|
|
||||||
msgid "Docking enabled (Requires a restart of the IDE)"
|
|
||||||
msgstr "Стикування ввімкнене (Потребує перезавантажння IDE)"
|
|
||||||
|
|
||||||
#: anchordockstr.adrsdockingoptions
|
#: anchordockstr.adrsdockingoptions
|
||||||
msgid "Docking options"
|
msgid "Docking options"
|
||||||
msgstr "Параметри стикування"
|
msgstr "Параметри стикування"
|
||||||
|
Loading…
Reference in New Issue
Block a user