Difference between revisions of "Gestinux util"

From Gestinux Wiki
Jump to navigation Jump to search
Line 39: Line 39:
 
* [[TGSpinEdit]]
 
* [[TGSpinEdit]]
 
* [[TGMemo]]
 
* [[TGMemo]]
 +
* [[TGGrid]]
  
 
=== Display only components ===
 
=== Display only components ===
  
Translation or columms titles is searched in language files.
+
* [[TGDbGrid]]  
Column widths and order are saved in the user's inifile when changed.
+
* [[TGButton]]
Other useful things are specific to each grid
+
* [[TGSpeedButton]]
 
 
* [[TGGrid]] : read-write TStringGrid with methods to insert and delete lines.
 
* [[TGDbGrid]] : read-only TDbGrid connected to a [[TGQuery]], with column sorting.
 
 
 
=== Buttons and menus ===
 
All are reading translation of caption and hint in the translation file.
 
 
 
* [[TGButton]] : a TBitBtn.
 
* [[TGSpeedButton]] : a TSpeedButton.
 
 
* TGMainMenu : a descendant of TMainMenu with automatic translation of captions and hints of all menu items, from the language file.  
 
* TGMainMenu : a descendant of TMainMenu with automatic translation of captions and hints of all menu items, from the language file.  
 
* TGPopupMenu : a similar descendant of TPopupMenu  
 
* TGPopupMenu : a similar descendant of TPopupMenu  

Revision as of 14:21, 8 March 2013

Gestinux_util is an utility package containing visual and non-visual components.

It is the base of Gestinux and it allows even quicker developments.

Currently, it is a part of Gestinux, and sources are located in on of it's subdirectory. In the future, it could become more independant.


Database Non-Visual components

They are only for database connection and management.

Currently based on Zeos Dbo components, with some methods added to create (and update) table structure from the datamodule.

Gestinux uses only descendants of TZConnection, TZQuery and TZTable.

Other midleware, specially the interface provided with Lazarus are said to be faster. One bad point is that components are specific to only one DBMS, and not following DBMS versions quickly enough. However, if someone wants to develop the same functionnalities and compare, he is welcome !

Visual components

Data Entry components

These components are containing a label and an entry component. In Gestinux, Data entry must use only TGxxxx components, because these components are handling translations, and should handle soon text orientation (LTR/RTL) automatically.

Display only components

  • TGDbGrid
  • TGButton
  • TGSpeedButton
  • TGMainMenu : a descendant of TMainMenu with automatic translation of captions and hints of all menu items, from the language file.
  • TGPopupMenu : a similar descendant of TPopupMenu
  • TGPageControl : a descendant of TPageControl with automatic translation of captions and hints of tabsheets, from the language file. .

Others