summaryrefslogtreecommitdiff
path: root/extras/mseide_templates/fpgui
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-05-10 09:43:57 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-05-10 09:43:57 +0200
commitcff4840af9102887c3055f58adb29de1c11ad685 (patch)
tree6131ff3cdcda1650939f5ba231258c99f53b61c2 /extras/mseide_templates/fpgui
parente9bc31a59594c2524fcd435d18e152819f940572 (diff)
downloadfpGUI-cff4840af9102887c3055f58adb29de1c11ad685.tar.xz
Added an MSEide template project for creating fpGUI apps with MSEide.
Diffstat (limited to 'extras/mseide_templates/fpgui')
-rw-r--r--extras/mseide_templates/fpgui/frm_main.pas41
-rw-r--r--extras/mseide_templates/fpgui/mainform.pas41
-rw-r--r--extras/mseide_templates/fpgui/program.pas29
-rw-r--r--extras/mseide_templates/fpgui/project.pas29
-rw-r--r--extras/mseide_templates/fpgui/simpleform.pas41
-rw-r--r--extras/mseide_templates/fpgui/units/i386-linux/placeholder.txt0
-rw-r--r--extras/mseide_templates/fpgui/units/i386-win32/placeholder.txt0
-rw-r--r--extras/mseide_templates/fpgui/units/x86_64-linux/placeholder.txt0
8 files changed, 181 insertions, 0 deletions
diff --git a/extras/mseide_templates/fpgui/frm_main.pas b/extras/mseide_templates/fpgui/frm_main.pas
new file mode 100644
index 00000000..bd0230f4
--- /dev/null
+++ b/extras/mseide_templates/fpgui/frm_main.pas
@@ -0,0 +1,41 @@
+unit frm_main;
+
+{$mode objfpc}{$H+}
+
+interface
+
+uses
+ SysUtils, Classes, fpg_base, fpg_main, fpg_form;
+
+type
+
+ TMainForm = class(TfpgForm)
+ private
+ {@VFD_HEAD_BEGIN: MainForm}
+ {@VFD_HEAD_END: MainForm}
+ public
+ procedure AfterCreate; override;
+ end;
+
+{@VFD_NEWFORM_DECL}
+
+implementation
+
+{@VFD_NEWFORM_IMPL}
+
+procedure TMainForm.AfterCreate;
+begin
+ {%region 'Auto-generated GUI code' -fold}
+ {@VFD_BODY_BEGIN: MainForm}
+ Name := 'MainForm';
+ SetPosition(374, 228, 490, 258);
+ WindowTitle := 'MainForm';
+ Hint := '';
+ WindowPosition := wpOneThirdDown;
+
+ {@VFD_BODY_END: MainForm}
+ {%endregion}
+end;
+
+
+end.
diff --git a/extras/mseide_templates/fpgui/mainform.pas b/extras/mseide_templates/fpgui/mainform.pas
new file mode 100644
index 00000000..bd0230f4
--- /dev/null
+++ b/extras/mseide_templates/fpgui/mainform.pas
@@ -0,0 +1,41 @@
+unit frm_main;
+
+{$mode objfpc}{$H+}
+
+interface
+
+uses
+ SysUtils, Classes, fpg_base, fpg_main, fpg_form;
+
+type
+
+ TMainForm = class(TfpgForm)
+ private
+ {@VFD_HEAD_BEGIN: MainForm}
+ {@VFD_HEAD_END: MainForm}
+ public
+ procedure AfterCreate; override;
+ end;
+
+{@VFD_NEWFORM_DECL}
+
+implementation
+
+{@VFD_NEWFORM_IMPL}
+
+procedure TMainForm.AfterCreate;
+begin
+ {%region 'Auto-generated GUI code' -fold}
+ {@VFD_BODY_BEGIN: MainForm}
+ Name := 'MainForm';
+ SetPosition(374, 228, 490, 258);
+ WindowTitle := 'MainForm';
+ Hint := '';
+ WindowPosition := wpOneThirdDown;
+
+ {@VFD_BODY_END: MainForm}
+ {%endregion}
+end;
+
+
+end.
diff --git a/extras/mseide_templates/fpgui/program.pas b/extras/mseide_templates/fpgui/program.pas
new file mode 100644
index 00000000..4338fda3
--- /dev/null
+++ b/extras/mseide_templates/fpgui/program.pas
@@ -0,0 +1,29 @@
+program ${%PROJECTNAME%};
+
+{$mode objfpc}{$H+}
+
+uses
+ {$IFDEF UNIX}{$IFDEF UseCThreads}
+ cthreads,
+ {$ENDIF}{$ENDIF}
+ Classes, fpg_main, frm_main;
+
+
+procedure MainProc;
+var
+ frm: TMainForm;
+begin
+ fpgApplication.Initialize;
+ frm := TMainForm.Create(nil);
+ try
+ frm.Show;
+ fpgApplication.Run;
+ finally
+ frm.Free;
+ end;
+end;
+
+begin
+ MainProc;
+end.
+
diff --git a/extras/mseide_templates/fpgui/project.pas b/extras/mseide_templates/fpgui/project.pas
new file mode 100644
index 00000000..4338fda3
--- /dev/null
+++ b/extras/mseide_templates/fpgui/project.pas
@@ -0,0 +1,29 @@
+program ${%PROJECTNAME%};
+
+{$mode objfpc}{$H+}
+
+uses
+ {$IFDEF UNIX}{$IFDEF UseCThreads}
+ cthreads,
+ {$ENDIF}{$ENDIF}
+ Classes, fpg_main, frm_main;
+
+
+procedure MainProc;
+var
+ frm: TMainForm;
+begin
+ fpgApplication.Initialize;
+ frm := TMainForm.Create(nil);
+ try
+ frm.Show;
+ fpgApplication.Run;
+ finally
+ frm.Free;
+ end;
+end;
+
+begin
+ MainProc;
+end.
+
diff --git a/extras/mseide_templates/fpgui/simpleform.pas b/extras/mseide_templates/fpgui/simpleform.pas
new file mode 100644
index 00000000..a17cf812
--- /dev/null
+++ b/extras/mseide_templates/fpgui/simpleform.pas
@@ -0,0 +1,41 @@
+unit ${%UNITNAME%};
+
+{$mode objfpc}{$H+}
+
+interface
+
+uses
+ SysUtils, Classes, fpg_base, fpg_main, fpg_form;
+
+type
+
+ T${%FORMNAME%} = class(TfpgForm)
+ private
+ {@VFD_HEAD_BEGIN: ${%FORMNAME%}}
+ {@VFD_HEAD_END: ${%FORMNAME%}}
+ public
+ procedure AfterCreate; override;
+ end;
+
+{@VFD_NEWFORM_DECL}
+
+implementation
+
+{@VFD_NEWFORM_IMPL}
+
+procedure T${%FORMNAME%}.AfterCreate;
+begin
+ {%region 'Auto-generated GUI code' -fold}
+ {@VFD_BODY_BEGIN: MainForm}
+ Name := '${%FORMNAME%}';
+ SetPosition(374, 228, 490, 258);
+ WindowTitle := 'NewForm';
+ Hint := '';
+ WindowPosition := wpOneThirdDown;
+
+ {@VFD_BODY_END: ${%FORMNAME%}}
+ {%endregion}
+end;
+
+
+end.
diff --git a/extras/mseide_templates/fpgui/units/i386-linux/placeholder.txt b/extras/mseide_templates/fpgui/units/i386-linux/placeholder.txt
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/extras/mseide_templates/fpgui/units/i386-linux/placeholder.txt
diff --git a/extras/mseide_templates/fpgui/units/i386-win32/placeholder.txt b/extras/mseide_templates/fpgui/units/i386-win32/placeholder.txt
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/extras/mseide_templates/fpgui/units/i386-win32/placeholder.txt
diff --git a/extras/mseide_templates/fpgui/units/x86_64-linux/placeholder.txt b/extras/mseide_templates/fpgui/units/x86_64-linux/placeholder.txt
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/extras/mseide_templates/fpgui/units/x86_64-linux/placeholder.txt