mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 08:29:06 +02:00
added test dialog for all common dialog descendants (issue #1735)
git-svn-id: trunk@8775 -
This commit is contained in:
parent
8b421f305e
commit
fcf6f19164
@ -16,8 +16,6 @@
|
||||
<LazDoc Paths=""/>
|
||||
<PublishOptions>
|
||||
<Version Value="2"/>
|
||||
<DestinationDirectory Value="$(TestDir)\publishedproject\"/>
|
||||
<IgnoreBinaries Value="False"/>
|
||||
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
|
||||
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
|
||||
</PublishOptions>
|
||||
|
@ -305,7 +305,7 @@ type
|
||||
{ TFileDialogComponentEditor
|
||||
The default componenteditor for TFileDialog }
|
||||
|
||||
TFileDialogComponentEditor = class(TComponentEditor)
|
||||
TCommonDialogComponentEditor = class(TComponentEditor)
|
||||
private
|
||||
procedure TestDialog;
|
||||
public
|
||||
@ -1319,28 +1319,28 @@ begin
|
||||
Result:=TToolBar(GetComponent);
|
||||
end;
|
||||
|
||||
{ TFileDialogComponentEditor }
|
||||
{ TCommonDialogComponentEditor }
|
||||
|
||||
procedure TFileDialogComponentEditor.TestDialog;
|
||||
procedure TCommonDialogComponentEditor.TestDialog;
|
||||
begin
|
||||
with Component as TFileDialog do Execute;
|
||||
with Component as TCommonDialog do Execute;
|
||||
end;
|
||||
|
||||
function TFileDialogComponentEditor.GetVerbCount: integer;
|
||||
function TCommonDialogComponentEditor.GetVerbCount: integer;
|
||||
begin
|
||||
Result:=1;
|
||||
end;
|
||||
|
||||
function TFileDialogComponentEditor.GetVerb(Index: integer): string;
|
||||
function TCommonDialogComponentEditor.GetVerb(Index: integer): string;
|
||||
begin
|
||||
case Index of
|
||||
0:Result:='Test dialog...';
|
||||
0:Result:=oisTestDialog;
|
||||
else
|
||||
Result:=inherited GetVerb(Index);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TFileDialogComponentEditor.ExecuteVerb(Index: integer);
|
||||
procedure TCommonDialogComponentEditor.ExecuteVerb(Index: integer);
|
||||
begin
|
||||
case Index of
|
||||
0:TestDialog;
|
||||
@ -1349,7 +1349,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TFileDialogComponentEditor.Edit;
|
||||
procedure TCommonDialogComponentEditor.Edit;
|
||||
begin
|
||||
TestDialog;
|
||||
end;
|
||||
@ -1382,7 +1382,7 @@ initialization
|
||||
RegisterComponentEditor(TCheckListBox,TCheckListBoxComponentEditor);
|
||||
RegisterComponentEditor(TCheckGroup,TCheckGroupComponentEditor);
|
||||
RegisterComponentEditor(TToolBar,TToolBarComponentEditor);
|
||||
RegisterComponentEditor(TFileDialog, TFileDialogComponentEditor);
|
||||
RegisterComponentEditor(TCommonDialog, TCommonDialogComponentEditor);
|
||||
|
||||
finalization
|
||||
InternalFinal;
|
||||
|
@ -258,6 +258,9 @@ resourcestring
|
||||
oisSelectAFile = 'Select a file';
|
||||
oisPropertiesOf = 'Properties of %s';
|
||||
oisAllFiles = 'All files';
|
||||
|
||||
// TCommonDialogComponentEditor
|
||||
oisTestDialog = 'Test dialog...';
|
||||
|
||||
// property editors
|
||||
oisSort = 'Sort';
|
||||
|
@ -778,6 +778,10 @@ msgstr "Editor de la cadena de la graella"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Diàleg editor de les cadenes"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr ""
|
||||
|
@ -789,6 +789,10 @@ msgstr "StringGrid Editor"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Zeichenketteneditordialog"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr ""
|
||||
|
@ -788,6 +788,10 @@ msgstr "Editor de StringGrid"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Diálogo Editor de Strings"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr ""
|
||||
|
@ -778,6 +778,10 @@ msgstr "StringGrid muokkain"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Merkkijonojen muokkain"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr "Maskin testauspaikka"
|
||||
|
@ -778,6 +778,10 @@ msgstr "Editeur de tableau"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Dialogue d'éditeur de chaînes"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr ""
|
||||
|
@ -788,6 +788,10 @@ msgstr "Editor StringGrid"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Finestra di dialogo editor delle stringhe"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr ""
|
||||
|
@ -788,6 +788,10 @@ msgstr "Editor StringGrid"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Finestra di dialogo editor delle stringhe"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr ""
|
||||
|
@ -778,6 +778,10 @@ msgstr "StringGrid Bewerker"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Strings Editor Dialoog"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr "Test Invoer"
|
||||
|
@ -778,6 +778,10 @@ msgstr "Editeur de tableau"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Dialogo de edição de texto"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr ""
|
||||
|
@ -789,6 +789,10 @@ msgstr "Edytor StringGrid"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr ""
|
||||
|
@ -789,6 +789,10 @@ msgstr "Edytor StringGrid"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr ""
|
||||
|
@ -789,6 +789,10 @@ msgstr "Edytor StringGrid"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr ""
|
||||
|
@ -818,6 +818,10 @@ msgstr ""
|
||||
msgid "All files"
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oissort
|
||||
msgid "Sort"
|
||||
msgstr ""
|
||||
|
@ -789,6 +789,10 @@ msgstr "Редактор StringGrid"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Диалог ввода строк"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr "Тестовый ввод"
|
||||
|
@ -778,6 +778,10 @@ msgstr "Редактор StringGrid"
|
||||
msgid "Strings Editor Dialog"
|
||||
msgstr "Редактор рядків"
|
||||
|
||||
#: objinspstrconsts:oistestdialog
|
||||
msgid "Test dialog..."
|
||||
msgstr ""
|
||||
|
||||
#: objinspstrconsts:oistestinput
|
||||
msgid "Test Input"
|
||||
msgstr "Тестове Введення"
|
||||
|
Loading…
Reference in New Issue
Block a user