summaryrefslogtreecommitdiff
path: root/extras/tiopf/demos/StringGridMediatorDemo
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-04-07 12:36:55 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-04-07 12:36:55 +0200
commit42326029cbdcb072265beb9905e3549b7b872977 (patch)
tree7b961099bdc0462687b8dd1c1ead0875a2e6251d /extras/tiopf/demos/StringGridMediatorDemo
parent2b0bb6d1167e479404bd5d616f4d6155b1a92255 (diff)
downloadfpGUI-42326029cbdcb072265beb9905e3549b7b872977.tar.xz
All sample projects updated so all of them can compile correctly.
* Replaced ModalResult magic numbers with enum values. * Updated project unit output directories. * Updated tiOPF examples with latest unit names. * Updated outdated projects still references old fpGUI unit names.
Diffstat (limited to 'extras/tiopf/demos/StringGridMediatorDemo')
-rw-r--r--extras/tiopf/demos/StringGridMediatorDemo/frm_main.pas14
-rw-r--r--extras/tiopf/demos/StringGridMediatorDemo/frm_personmaint.pas9
-rw-r--r--extras/tiopf/demos/StringGridMediatorDemo/stringgridmediatordemo.lpi13
-rw-r--r--extras/tiopf/demos/StringGridMediatorDemo/stringgridmediatordemo.lpr2
4 files changed, 16 insertions, 22 deletions
diff --git a/extras/tiopf/demos/StringGridMediatorDemo/frm_main.pas b/extras/tiopf/demos/StringGridMediatorDemo/frm_main.pas
index 7adc3145..3878ad61 100644
--- a/extras/tiopf/demos/StringGridMediatorDemo/frm_main.pas
+++ b/extras/tiopf/demos/StringGridMediatorDemo/frm_main.pas
@@ -5,17 +5,17 @@ unit frm_main;
interface
uses
- SysUtils, Classes, gfxbase, fpgfx, gui_edit,
- gfx_widget, gui_form, gui_label, gui_button,
- gui_basegrid, gui_grid, gui_menu,
- gui_panel, gui_popupcalendar, gui_gauge, Model, tiCompositeMediators;
+ SysUtils, Classes, fpg_base, fpg_main, fpg_edit,
+ fpg_widget, fpg_form, fpg_label, fpg_button,
+ fpg_basegrid, fpg_grid, fpg_menu,
+ fpg_panel, fpg_popupcalendar, fpg_gauge, Model, tiListMediators;
type
TMainForm = class(TfpgForm)
private
FList: TPersonList;
- medGrid: TCompositeStringGridMediator;
+ medGrid: TtiStringGridMediatorView;
procedure SetupMediators;
procedure ValidateData;
procedure btnAddClicked(Sender: TObject);
@@ -49,13 +49,13 @@ type
implementation
uses
- gui_dialogs, frm_personmaint;
+ fpg_dialogs, frm_personmaint;
{@VFD_NEWFORM_IMPL}
procedure TMainForm.SetupMediators;
begin
- medGrid := TCompositeStringGridMediator.CreateCustom(FList, grdName1, 'Name(200);Age');
+ medGrid := TtiStringGridMediatorView.CreateCustom(FList, grdName1, 'Name(200);Age');
end;
procedure TMainForm.ValidateData;
diff --git a/extras/tiopf/demos/StringGridMediatorDemo/frm_personmaint.pas b/extras/tiopf/demos/StringGridMediatorDemo/frm_personmaint.pas
index 00296e96..96620e92 100644
--- a/extras/tiopf/demos/StringGridMediatorDemo/frm_personmaint.pas
+++ b/extras/tiopf/demos/StringGridMediatorDemo/frm_personmaint.pas
@@ -5,12 +5,9 @@ unit frm_personmaint;
interface
uses
- SysUtils, Classes, gfxbase, fpgfx, gui_edit,
- gfx_widget, gui_form, gui_label, gui_button,
- gui_listbox, gui_memo, gui_combobox, gui_basegrid, gui_grid,
- gui_dialogs, gui_checkbox, gui_tree, gui_trackbar,
- gui_progressbar, gui_radiobutton, gui_tab, gui_menu,
- gui_panel, gui_popupcalendar, gui_gauge, model, model_view;
+ SysUtils, Classes, fpg_base, fpg_main, fpg_edit,
+ fpg_form, fpg_label, fpg_button,
+ model, model_view;
type
diff --git a/extras/tiopf/demos/StringGridMediatorDemo/stringgridmediatordemo.lpi b/extras/tiopf/demos/StringGridMediatorDemo/stringgridmediatordemo.lpi
index c7b38fd4..b18e4bf3 100644
--- a/extras/tiopf/demos/StringGridMediatorDemo/stringgridmediatordemo.lpi
+++ b/extras/tiopf/demos/StringGridMediatorDemo/stringgridmediatordemo.lpi
@@ -1,15 +1,14 @@
<?xml version="1.0"?>
<CONFIG>
<ProjectOptions>
- <PathDelim Value="/"/>
- <Version Value="6"/>
+ <Version Value="7"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
+ <LRSInOutputDirectory Value="False"/>
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <IconPath Value="./"/>
<TargetFileExt Value=""/>
</General>
<VersionInfo>
@@ -66,20 +65,18 @@
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="5"/>
+ <Version Value="8"/>
<SearchPaths>
<OtherUnitFiles Value="../Common/"/>
+ <UnitOutputDirectory Value="units/$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
- <CodeGeneration>
- <Generate Value="Faster"/>
- </CodeGeneration>
<Linking>
<Debugging>
<GenerateDebugInfo Value="True"/>
</Debugging>
</Linking>
<Other>
- <CustomOptions Value="-FUunits
+ <CustomOptions Value="
"/>
<CompilerPath Value="$(CompPath)"/>
</Other>
diff --git a/extras/tiopf/demos/StringGridMediatorDemo/stringgridmediatordemo.lpr b/extras/tiopf/demos/StringGridMediatorDemo/stringgridmediatordemo.lpr
index 2a0a31e3..366718b0 100644
--- a/extras/tiopf/demos/StringGridMediatorDemo/stringgridmediatordemo.lpr
+++ b/extras/tiopf/demos/StringGridMediatorDemo/stringgridmediatordemo.lpr
@@ -6,7 +6,7 @@ uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
- Classes, fpgfx, frm_main, Model, Constants, tiOPFfpGUI, frm_personmaint,
+ Classes, fpg_main, frm_main, Model, Constants, tiOPFfpGUI, frm_personmaint,
Model_View;