added i386 define for fpc source dir, more localization from Olivier

git-svn-id: trunk@3892 -
This commit is contained in:
mattias 2003-03-05 08:33:13 +00:00
parent 4c988adbf1
commit f543b67dcd
6 changed files with 127 additions and 38 deletions

View File

@ -161,6 +161,7 @@ ResourceString
ctsSrcPathInitialization = 'SrcPath Initialization'; ctsSrcPathInitialization = 'SrcPath Initialization';
ctsNestedCommentsOn = 'Nested Comments On'; ctsNestedCommentsOn = 'Nested Comments On';
ctsCompiler = 'Compiler'; ctsCompiler = 'Compiler';
ctsDefineProzessorType = 'Define processor type';
ctsRuntimeLibrary = 'Runtime library'; ctsRuntimeLibrary = 'Runtime library';
ctsProcessorSpecific = 'processor specific'; ctsProcessorSpecific = 'processor specific';
ctsFreePascalComponentLibrary = 'Free Pascal Component Library'; ctsFreePascalComponentLibrary = 'Free Pascal Component Library';

View File

@ -2370,6 +2370,10 @@ begin
CompilerDir:=TDefineTemplate.Create('Compiler',ctsCompiler,'','compiler', CompilerDir:=TDefineTemplate.Create('Compiler',ctsCompiler,'','compiler',
da_Directory); da_Directory);
MainDir.AddChild(CompilerDir); MainDir.AddChild(CompilerDir);
// define 'i386' ToDo: other types like m68k
DefTempl:=TDefineTemplate.Create('Define i386',
ctsDefineProzessorType,'i386','',da_DefineRecurse);
CompilerDir.AddChild(DefTempl);
// rtl // rtl
RTLDir:=TDefineTemplate.Create('RTL',ctsRuntimeLibrary,'','rtl',da_Directory); RTLDir:=TDefineTemplate.Create('RTL',ctsRuntimeLibrary,'','rtl',da_Directory);
@ -2385,6 +2389,10 @@ begin
Format(ctsIncludeDirectoriesPlusDirs, Format(ctsIncludeDirectoriesPlusDirs,
['objpas, inc,'+TargetProcessor+','+SrcOS]), ['objpas, inc,'+TargetProcessor+','+SrcOS]),
ExternalMacroStart+'IncPath',s,da_DefineRecurse)); ExternalMacroStart+'IncPath',s,da_DefineRecurse));
// define 'i386' ToDo: other types like m68k
DefTempl:=TDefineTemplate.Create('Define i386',
ctsDefineProzessorType,'i386','',da_DefineRecurse);
RTLDir.AddChild(DefTempl);
// fcl // fcl
FCLDir:=TDefineTemplate.Create('FCL',ctsFreePascalComponentLibrary,'','fcl', FCLDir:=TDefineTemplate.Create('FCL',ctsFreePascalComponentLibrary,'','fcl',

View File

@ -1244,10 +1244,11 @@ end;
constructor TEnvironmentOptionsDialog.Create(AOwner:TComponent); constructor TEnvironmentOptionsDialog.Create(AOwner:TComponent);
begin begin
inherited Create(AOwner); inherited Create(AOwner);
if LazarusResources.Find(ClassName)=nil then begin if LazarusResources.Find(ClassName)=nil then
begin
Position:=poScreenCenter; Position:=poScreenCenter;
IDEDialogLayoutList.ApplyLayout(Self,485,435); IDEDialogLayoutList.ApplyLayout(Self,485,435);
Caption:=dlgEnvOpts; Caption:=lisMenuGeneralOptions;
OnResize:=@EnvironmentOptionsDialogResize; OnResize:=@EnvironmentOptionsDialogResize;
NoteBook:=TNoteBook.Create(Self); NoteBook:=TNoteBook.Create(Self);
@ -2432,7 +2433,7 @@ begin
Top:=FormEditMiscGroupBox.Top+FormEditMiscGroupBox.Height+5; Top:=FormEditMiscGroupBox.Top+FormEditMiscGroupBox.Height+5;
Width:=GridGroupBox.Width; Width:=GridGroupBox.Width;
Height:=120; Height:=120;
Caption:='Rubberband'; Caption:=dlgRubberBandGroup;
end; end;
SetupRubberbandBox; SetupRubberbandBox;

View File

@ -33,7 +33,8 @@ unit IDEOptionDefs;
interface interface
uses uses
Classes, SysUtils, Laz_XMLCfg, Forms, Controls, StdCtrls, Buttons; Classes, SysUtils, Laz_XMLCfg, Forms, Controls, StdCtrls, Buttons,
LazarusIDEStrConsts;
const const
// form names for non modal IDE windows: // form names for non modal IDE windows:
@ -698,41 +699,49 @@ var
end; end;
end; end;
const function GetRadioBtnCaptions(aPos : TIDEWindowPlacement) : String;
RadioBtnCaptions: array[TIDEWindowPlacement] of string = ( begin
'Use windowmanager setting', Result:='?';
'Default', Case aPos of
'Restore window geometry', iwpUseWindowManagerSetting : Result:= rsiwpUseWindowManagerSetting;
'Docked', iwpDefault : Result:= rsiwpDefault;
'Custom position', iwpRestoreWindowGeometry : Result:= rsiwpRestoreWindowGeometry;
'Restore window size' iwpDocked : Result:= rsiwpDocked;
); iwpCustomPosition : Result:= rsiwpCustomPosition;
iwpRestoreWindowSize : Result:= rsiwpRestoreWindowSize;
end;
end;
begin begin
if AnLayout=nil then exit; if AnLayout=nil then exit;
CurY:=5; CurY:=5;
for APlacement:=Low(TIDEWindowPlacement) to High(TIDEWindowPlacement) do begin for APlacement:=Low(TIDEWindowPlacement) to High(TIDEWindowPlacement) do
if APlacement in AnLayout.WindowPlacementsAllowed then begin begin
if APlacement in AnLayout.WindowPlacementsAllowed then
begin
if PlacementRadioButtons[APlacement]=nil then if PlacementRadioButtons[APlacement]=nil then
PlacementRadioButtons[APlacement]:=TRadioButton.Create(Self); PlacementRadioButtons[APlacement]:=TRadioButton.Create(Self);
with PlacementRadioButtons[APlacement] do begin with PlacementRadioButtons[APlacement] do
begin
Parent:=Self; Parent:=Self;
SetBounds(5,CurY,Self.ClientWidth-Left,Height); SetBounds(5,CurY,Self.ClientWidth-Left,Height);
inc(CurY,Height+2); inc(CurY,Height+2);
OnClick:=@RadioButtonClick; OnClick:=@RadioButtonClick;
Caption:=RadioBtnCaptions[APlacement]; Caption:=GetRadioBtnCaptions(APlacement);
Checked:=(APlacement=AnLayout.WindowPlacement); Checked:=(APlacement=AnLayout.WindowPlacement);
Visible:=true; Visible:=true;
end; end;
case APlacement of case APlacement of
iwpCustomPosition: iwpCustomPosition:
begin begin
// custom window position // custom window position
SetLabelAndEdit(LeftLabel,LeftEdit,'Left:',15,CurY); SetLabelAndEdit(LeftLabel,LeftEdit,dlgLeftPos,15,CurY);
SetLabelAndEdit(TopLabel,TopEdit,'Top:', SetLabelAndEdit(TopLabel,TopEdit,dlgTopPos,
LeftEdit.Left+LeftEdit.Width+15,CurY); LeftEdit.Left+LeftEdit.Width+15,CurY);
inc(CurY,LeftEdit.Height+3); inc(CurY,LeftEdit.Height+3);
SetLabelAndEdit(WidthLabel,WidthEdit,'Width:',15,CurY); SetLabelAndEdit(WidthLabel,WidthEdit,dlgWidthPos,15,CurY);
SetLabelAndEdit(HeightLabel,HeightEdit,'Height:', SetLabelAndEdit(HeightLabel,HeightEdit,DlgHeightPos,
WidthEdit.Left+WidthEdit.Width+15,CurY); WidthEdit.Left+WidthEdit.Width+15,CurY);
inc(CurY,WidthEdit.Height+3); inc(CurY,WidthEdit.Height+3);
if AnLayout.CustomCoordinatesAreValid then begin if AnLayout.CustomCoordinatesAreValid then begin
@ -748,30 +757,38 @@ begin
end; end;
end; end;
end; end;
end else begin end else
if PlacementRadioButtons[APlacement]<>nil then begin begin
PlacementRadioButtons[APlacement].Free; if PlacementRadioButtons[APlacement]<>nil then
PlacementRadioButtons[APlacement]:=nil; begin
end; PlacementRadioButtons[APlacement].Free;
PlacementRadioButtons[APlacement]:=nil;
end;
end;
end; end;
end;
inc(CurY,2); inc(CurY,2);
if ApplyButton=nil then ApplyButton:=TButton.Create(Self); if ApplyButton=nil then
with ApplyButton do begin ApplyButton:=TButton.Create(Self);
with ApplyButton do
begin
Parent:=Self; Parent:=Self;
SetBounds(5,CurY,70,Height); SetBounds(5,CurY,70,Height);
OnClick:=@ApplyButtonClick; OnClick:=@ApplyButtonClick;
Caption:='Apply'; Caption:=dlgButApply;
Visible:=true; Visible:=true;
end; end;
if iwpCustomPosition in AnLayout.WindowPlacementsAllowed then begin if iwpCustomPosition in AnLayout.WindowPlacementsAllowed then
begin
if GetWindowPositionButton=nil then if GetWindowPositionButton=nil then
GetWindowPositionButton:=TButton.Create(Self); GetWindowPositionButton:=TButton.Create(Self);
with GetWindowPositionButton do begin with GetWindowPositionButton do
begin
Parent:=Self; Parent:=Self;
SetBounds(85,CurY,110,Height); SetBounds(85,CurY,110,Height);
OnClick:=@GetWindowPositionButtonClick; OnClick:=@GetWindowPositionButtonClick;
Caption:='Get position'; Caption:=dlgGetPosition;
Visible:=true; Visible:=true;
end; end;
end; end;

View File

@ -304,7 +304,7 @@ resourcestring
//Environment dialog //Environment dialog
dlgBakDirectory='(no subdirectoy)'; dlgBakDirectory='(no subdirectoy)';
dlgEnvOpts = 'Environment Options'; //dlgEnvOpts = 'Environment Options'; = lisMenuGeneralOptions
dlgDesktop = 'Desktop'; dlgDesktop = 'Desktop';
dlgFrmEditor = 'Form Editor'; dlgFrmEditor = 'Form Editor';
dlgObjInsp = 'Object Inspector'; dlgObjInsp = 'Object Inspector';
@ -367,6 +367,7 @@ resourcestring
dlgRuberbandSelectionColor = 'Selection'; dlgRuberbandSelectionColor = 'Selection';
dlgRuberbandCreationColor = 'Creation'; dlgRuberbandCreationColor = 'Creation';
dlgRubberbandSelectsGrandChilds = 'Select grand childs'; dlgRubberbandSelectsGrandChilds = 'Select grand childs';
dlgRubberBandGroup='Rubber band';
dlgPasExt = 'Default pascal extension'; dlgPasExt = 'Default pascal extension';
dlgPasLower = 'Save pascal files lowercase'; dlgPasLower = 'Save pascal files lowercase';
dlgAmbigFileAct = 'Ambigious file action:'; dlgAmbigFileAct = 'Ambigious file action:';
@ -656,6 +657,19 @@ resourcestring
dlgDownWord = 'Down'; dlgDownWord = 'Down';
dlgReplaceAll = 'Replace All'; dlgReplaceAll = 'Replace All';
//IDEOptionDefs
dlgGetPosition = 'Get position';
dlgLeftPos = 'Left:';
dlgWidthPos = 'Width:';
dlgTopPos = 'Top:';
DlgHeightPos = 'Height:';
rsiwpUseWindowManagerSetting = 'Use windowmanager setting';
rsiwpDefault = 'Default';
rsiwpRestoreWindowGeometry = 'Restore window geometry';
rsiwpDocked = 'Docked';
rsiwpCustomPosition = 'Custom position';
rsiwpRestoreWindowSize = 'Restore window size';
// Code Explorer // Code Explorer
lisCodeExplorer = 'Code Explorer'; lisCodeExplorer = 'Code Explorer';

View File

@ -587,6 +587,10 @@ msgstr "Commandes de d
msgid "Cursor row in current editor" msgid "Cursor row in current editor"
msgstr "Ligne du curseur dans l'éditeur courant" msgstr "Ligne du curseur dans l'éditeur courant"
#: lazarusidestrconsts:rsiwpcustomposition
msgid "Custom position"
msgstr "Position personnalisée"
#: lazarusidestrconsts:lismenucut #: lazarusidestrconsts:lismenucut
msgid "Cut" msgid "Cut"
msgstr "Couper" msgstr "Couper"
@ -623,6 +627,10 @@ msgstr "Type de d
msgid "Debugging:" msgid "Debugging:"
msgstr "Débugueur" msgstr "Débugueur"
#: lazarusidestrconsts:rsiwpdefault
msgid "Default"
msgstr "Défaut"
#: lazarusidestrconsts:dlgpasext #: lazarusidestrconsts:dlgpasext
msgid "Default pascal extension" msgid "Default pascal extension"
msgstr "Extension pascal par défaut" msgstr "Extension pascal par défaut"
@ -735,6 +743,10 @@ msgstr "Pas de ligne de s
msgid "Do not split line In front of:" msgid "Do not split line In front of:"
msgstr "Pas de ligne de séparation devant " msgstr "Pas de ligne de séparation devant "
#: lazarusidestrconsts:rsiwpdocked
msgid "Docked"
msgstr ""
#: lazarusidestrconsts:dlgdoubleclickline #: lazarusidestrconsts:dlgdoubleclickline
msgid "Double click line" msgid "Double click line"
msgstr "Double-clic sélectionne la ligne" msgstr "Double-clic sélectionne la ligne"
@ -1007,6 +1019,10 @@ msgstr "G
msgid "Generate:" msgid "Generate:"
msgstr "Vous produisez" msgstr "Vous produisez"
#: lazarusidestrconsts:dlggetposition
msgid "Get position"
msgstr "Récupérer"
#: lazarusidestrconsts:dlgglobal #: lazarusidestrconsts:dlgglobal
msgid "Global" msgid "Global"
msgstr "Globale" msgstr "Globale"
@ -1073,7 +1089,7 @@ msgstr "Grille"
#: lazarusidestrconsts:dlggridcolor #: lazarusidestrconsts:dlggridcolor
msgid "Grid color" msgid "Grid color"
msgstr "Couleur de la grille" msgstr "Couleur"
#: lazarusidestrconsts:dlggridx #: lazarusidestrconsts:dlggridx
msgid "Grid size X" msgid "Grid size X"
@ -1119,6 +1135,10 @@ msgstr ""
msgid "Heap Size" msgid "Heap Size"
msgstr "Taille de tas" msgstr "Taille de tas"
#: lazarusidestrconsts:dlgheightpos
msgid "Height:"
msgstr "Hauteur:"
#: lazarusidestrconsts:srvk_help #: lazarusidestrconsts:srvk_help
msgid "Help" msgid "Help"
msgstr "Aide" msgstr "Aide"
@ -1423,6 +1443,10 @@ msgstr "Gauche"
msgid "left windows key" msgid "left windows key"
msgstr "Touche Windows gauche" msgstr "Touche Windows gauche"
#: lazarusidestrconsts:dlgleftpos
msgid "Left:"
msgstr "Gauche:"
#: lazarusidestrconsts:dlglevel1opt #: lazarusidestrconsts:dlglevel1opt
msgid "Level 1 (Quick Optimizations)" msgid "Level 1 (Quick Optimizations)"
msgstr "Niveau 1 (Optimisation rapide)" msgstr "Niveau 1 (Optimisation rapide)"
@ -1657,7 +1681,7 @@ msgstr "Les composants s
#: lazarusidestrconsts:dlgnaming #: lazarusidestrconsts:dlgnaming
msgid "Naming" msgid "Naming"
msgstr "Extension" msgstr "Appellation"
#: lazarusidestrconsts:srkmecnew #: lazarusidestrconsts:srkmecnew
msgid "New" msgid "New"
@ -1995,6 +2019,14 @@ msgstr ""
msgid "Report" msgid "Report"
msgstr "Rapport" msgstr "Rapport"
#: lazarusidestrconsts:rsiwprestorewindowgeometry
msgid "Restore window geometry"
msgstr "Restaurer les dimensions"
#: lazarusidestrconsts:rsiwprestorewindowsize
msgid "Restore window size"
msgstr "Restaurer les dimensions"
#: lazarusidestrconsts:srvk_return #: lazarusidestrconsts:srvk_return
msgid "Return" msgid "Return"
msgstr "Entrée" msgstr "Entrée"
@ -2019,6 +2051,10 @@ msgstr "Couleur de la marge droite"
msgid "right windows key" msgid "right windows key"
msgstr "Touche Windows droite" msgstr "Touche Windows droite"
#: lazarusidestrconsts:dlgrubberbandgroup
msgid "Rubber band"
msgstr "Bande élastique"
#: lazarusidestrconsts:lismenuprojectrun #: lazarusidestrconsts:lismenuprojectrun
msgid "Run" msgid "Run"
msgstr "Exécuter" msgstr "Exécuter"
@ -2173,7 +2209,7 @@ msgstr "S
#: lazarusidestrconsts:dlgrubberbandselectsgrandchilds #: lazarusidestrconsts:dlgrubberbandselectsgrandchilds
msgid "Select grand childs" msgid "Select grand childs"
msgstr "Choisir les grands enfants" msgstr "Choisir les grands"
#: lazarusidestrconsts:lismenuselectline #: lazarusidestrconsts:lismenuselectline
msgid "Select line" msgid "Select line"
@ -2643,6 +2679,10 @@ msgstr "ToolTip d'
msgid "Tooltip symbol Tools" msgid "Tooltip symbol Tools"
msgstr "Tooltip d'identification des symboles" msgstr "Tooltip d'identification des symboles"
#: lazarusidestrconsts:dlgtoppos
msgid "Top:"
msgstr "Haut:"
#: lazarusidestrconsts:dlgbp7cptb #: lazarusidestrconsts:dlgbp7cptb
msgid "TP/BP 7.0 Compatible" msgid "TP/BP 7.0 Compatible"
msgstr "Compatibilité TB/BP 7.0" msgstr "Compatibilité TB/BP 7.0"
@ -2759,6 +2799,10 @@ msgstr "Utilise le d
msgid "Use syntax highlight" msgid "Use syntax highlight"
msgstr "Mise en évidence de la syntaxe" msgstr "Mise en évidence de la syntaxe"
#: lazarusidestrconsts:rsiwpusewindowmanagersetting
msgid "Use windowmanager setting"
msgstr "Utiliser le gestionnaire de fenêtre"
#: lazarusidestrconsts:dlgedcustomext #: lazarusidestrconsts:dlgedcustomext
msgid "User defined extension" msgid "User defined extension"
msgstr "Extension utilisateur" msgstr "Extension utilisateur"
@ -2879,6 +2923,10 @@ msgstr "Points de suivi"
msgid "Whole Words Only" msgid "Whole Words Only"
msgstr "Mots entiers seulement" msgstr "Mots entiers seulement"
#: lazarusidestrconsts:dlgwidthpos
msgid "Width:"
msgstr "Largeur:"
#: lazarusidestrconsts:dlgwinpos #: lazarusidestrconsts:dlgwinpos
msgid "Window Positions" msgid "Window Positions"
msgstr "Positions de fenêtre" msgstr "Positions de fenêtre"