summaryrefslogtreecommitdiff
path: root/src/corelib/gfx_constants.pas
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-09-27 18:24:54 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-09-27 18:24:54 +0000
commit8eb1030c56d6a1228d3145b247f75c733576e511 (patch)
treeb07af847fe22e6ea153e1c0088a257f72dd9f02f /src/corelib/gfx_constants.pas
parent1c50f4279f89d41dd1d85964645217860f5c0b9c (diff)
downloadfpGUI-8eb1030c56d6a1228d3145b247f75c733576e511.tar.xz
* Rename all corelib units to the new naming convention.
* Updated the UI Designer to use the new unit names.
Diffstat (limited to 'src/corelib/gfx_constants.pas')
-rw-r--r--src/corelib/gfx_constants.pas95
1 files changed, 0 insertions, 95 deletions
diff --git a/src/corelib/gfx_constants.pas b/src/corelib/gfx_constants.pas
deleted file mode 100644
index f204cbab..00000000
--- a/src/corelib/gfx_constants.pas
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- Constants used throughout fpGUI will be defined here. This includes
- language constants for localization.
-
- You only need to changes these defines if you want the default fpGUI language
- to be something other than English.
-
- Soon the lang_*.inc files will be auto generated from the actual *.po files.
- At which point only the .po files need to be maintained.
-}
-unit gfx_constants;
-
-{$mode objfpc}{$H+}
-
-interface
-
-uses
- SysUtils, gfxbase;
-
-resourcestring
-
-{ Define Compiler language symbol (eg: de for German) to include the correct
- language resource file otherwise the Default (English) resource file will
- be used. }
-
-{.$DEFINE de} // German
-{.$DEFINE ru} // Russian
-{.$DEFINE fr} // French
-{.$DEFINE pt} // Portuguese (Brazil)
-{.$DEFINE af} // Afrikaans
-{.$DEFINE it} // Italian
-{.$DEFINE es} // Spanish
-
-
-
-{$IF defined(de)}
- {$I lang_german.inc}
-
-{$ELSEIF defined(ru)}
- {$I lang_russian.inc}
-
-{$ELSEIF defined(fr)}
- {$I lang_french.inc}
-
-{$ELSEIF defined(pt)}
- {$I lang_portuguese.inc}
-
-{$ELSEIF defined(af)}
- {$I lang_afrikaans.inc}
-
-{$ELSEIF defined(it)}
- {$I lang_italian.inc}
-
-{$ELSEIF defined(es)}
- {$I lang_spanish.inc}
-
-{$ELSE}
- {$I lang_english.inc}
-{$IFEND}
-
-
-const
- // FPC 2.2.0 and earlier only
- {$if defined(VER2_0) or defined(VER2_2_0)}
- {$IFDEF UNIX}
- AllFilesMask = '*';
- {$ELSE}
- AllFilesMask = '*.*';
- {$ENDIF UNIX}
- {$endif}
-
-
- { Double click support }
- DOUBLECLICK_MS = 320; // the max time between left-clicks for doubleclick
- DOUBLECLICK_DISTANCE = 5; // max distance between points when doing doubleclick
-
- ONE_MILISEC = 1/MSecsPerDay;
-
-
-{ This is so that when we support LTR and RTL languages, the colon will be
- added at the correct place. }
-function fpgAddColon(const AText: TfpgString): TfpgString;
-
-
-implementation
-
-
-function fpgAddColon(const AText: TfpgString): TfpgString;
-begin
- { TODO : Check language direction and add colon at appropriate end. }
- result := AText + ':';
-end;
-
-end.
-