LCL: gtk2: fixed uses section

git-svn-id: trunk@45601 -
This commit is contained in:
mattias 2014-06-22 08:57:16 +00:00
parent f86ca1636d
commit 7abd5e6276
24 changed files with 88 additions and 49 deletions

View File

@ -1,4 +1,4 @@
// included by gtkglobals.pp
{%MainUnit gtkglobals.pp}
{
*****************************************************************************
This file is part of the Lazarus Component Library (LCL)

View File

@ -25,8 +25,12 @@ unit Gtk2CellRenderer;
interface
uses
Classes, SysUtils, LCLType, LCLProc, Controls, StdCtrls, ComCtrls, LMessages,
Gtk2Int, gtk2, gdk2, glib2, Gtk2Proc, Gtk2Def;
// RTL
Classes, SysUtils,
gtk2, gdk2, glib2,
// LCL
LCLType, LCLProc, Controls, StdCtrls, ComCtrls, LMessages,
Gtk2Int, Gtk2Proc, Gtk2Def;
type
PLCLIntfCellRenderer = ^TLCLIntfCellRenderer;
@ -65,7 +69,9 @@ procedure LCLIntfCellRenderer_CellDataFunc(cell_layout:PGtkCellLayout;
data: gpointer); cdecl;
implementation
uses Gtk2Extra;
uses
Gtk2Extra;
type
TCustomListViewAccess = class(TCustomListView);

View File

@ -25,6 +25,7 @@ unit Gtk2Debug;
interface
uses
// RTL
gdk2pixbuf, gdk2, gtk2,
sysutils;

View File

@ -25,9 +25,11 @@ unit Gtk2Def;
interface
uses
glib2, gdk2pixbuf, pango, gdk2, gtk2,
// RTL
Classes, SysUtils, glib2, gdk2pixbuf, pango, gdk2, gtk2,
// LCL
Gtk2Extra,
Classes, SysUtils, LCLIntf, LCLProc, LCLType, LCLMemManager, DynHashArray,
LCLIntf, LCLProc, LCLType, LCLMemManager, DynHashArray,
GraphType, Gtk2Globals;
{$ifdef TraceGdiCalls}

View File

@ -1,4 +1,3 @@
{ $Id$ }
{
---------------------------------------------------------------------------
gtk2extra.pp - GTK(2) widgetset - additional gdk/gtk functions

View File

@ -13,8 +13,10 @@ unit Gtk2FontCache;
interface
uses
Classes, SysUtils, LCLProc, LCLType, AvgLvlTree, Gtk2Def,
glib2, pango,
// RTL
Classes, SysUtils, glib2, pango,
// LCL
LCLProc, LCLType, AvgLvlTree, Gtk2Def,
LCLResCache;
type

View File

@ -13,8 +13,11 @@ unit Gtk2Globals;
interface
uses
SysUtils, Classes, InterfaceBase,
// RTL
SysUtils, Classes,
Pango, glib2, gdk2, gtk2,
// LCL
InterfaceBase,
LMessages, LCLProc, Controls, ComCtrls, Forms, LCLIntf, LCLType,
DynHashArray;

View File

@ -27,19 +27,19 @@ interface
{$I gtk2defines.inc}
uses
// RTL
{$ifdef Unix}
BaseUnix, Unix,
{$endif}
Types, Classes, SysUtils, Math, maps,
Types, Classes, SysUtils, Math,
{$IfNDef GTK2_2}
{$IfDef HasX}
XLib, xatom, X, gdk2x, //XUtil,
{$EndIf}
{$EndIf}
gdk2pixbuf, gtk2, gdk2, glib2, Pango,
// LCL
FileUtil, Dialogs, Controls, Forms, LCLStrConsts,
Maps, FileUtil, Dialogs, Controls, Forms, LCLStrConsts,
LMessages, LCLProc, LCLIntf, LCLType, DynHashArray, GraphType, GraphMath,
Graphics, Menus, Themes, WSLCLClasses,
@ -47,7 +47,6 @@ uses
ComCtrls, Spin,
ExtCtrls, LResources,
gdk2pixbuf, gtk2, gdk2, glib2, Pango,
InterfaceBase,
Gtk2WinApiWindow,
Gtk2Globals, Gtk2Proc,

View File

@ -1,3 +1,4 @@
{%MainUnit gtk2int.pp}
{******************************************************************************
gtklistslh.inc
TGtkListStringList and TGtkCListStringList

View File

@ -1,3 +1,4 @@
{%MainUnit gtk2wsstdctrls.pp}
{$IFDEF MEMOHEADER}
type

View File

@ -20,7 +20,10 @@ unit Gtk2MsgQueue;
interface
uses LazLinkedList, LCLType, LMessages, Gtk2Globals, DynHashArray, Gtk2Proc
uses
// RTL
// LCL
LazLinkedList, LCLType, LMessages, Gtk2Globals, DynHashArray, Gtk2Proc
{$IFNDEF USE_GTK_MAIN_OLD_ITERATION}
, glib2
{$ENDIF}

View File

@ -28,9 +28,10 @@ unit Gtk2WinapiWindow;
interface
uses
SysUtils, LCLProc,
Gtk2Extra, glib2, gdk2, gtk2,
Controls, Gtk2Proc, Gtk2Def;
// RTL
SysUtils, glib2, gdk2, gtk2,
// LCL
LCLProc, Gtk2Extra, Controls, Gtk2Proc, Gtk2Def;
{ $Define VerboseCaret}
// the gtk has a function to draw the cursor, but it does not support xor

View File

@ -20,7 +20,9 @@ unit Gtk2WSButtons;
interface
uses
// RTL
glib2, gtk2, gdk2, gdk2pixbuf,
// LCL
////////////////////////////////////////////////////
LCLType, Controls, Buttons, Graphics, GraphType,
////////////////////////////////////////////////////

View File

@ -21,10 +21,10 @@ unit Gtk2WSCalendar;
interface
uses
// Bindings
glib2, gdk2, gtk2,
// RTL
glib2, gdk2, gtk2, SysUtils, Types, Classes,
// RTL, FCL, LCL
SysUtils, Types, Classes, Controls, Calendar, LCLType, LMessages,
Controls, Calendar, LCLType, LMessages,
InterfaceBase, LCLProc,
// Widgetset
Gtk2Proc, Gtk2Def, Gtk2Int, Gtk2WsControls,

View File

@ -21,15 +21,17 @@ unit Gtk2WSCheckLst;
interface
uses
Gtk2, GLib2, Gtk2Def,
// RTL
SysUtils, Classes,
Gtk2, GLib2, Gtk2Def,
// LCL
////////////////////////////////////////////////////
// I M P O R T A N T
////////////////////////////////////////////////////
// To get as little as posible circles,
// uncomment only when needed for registration
////////////////////////////////////////////////////
CheckLst, StdCtrls, Controls, LCLType, SysUtils, Classes, LMessages, LCLProc,
CheckLst, StdCtrls, Controls, LCLType, LMessages, LCLProc,
////////////////////////////////////////////////////
WSCheckLst, WSLCLClasses;

View File

@ -21,6 +21,10 @@ unit Gtk2WSControls;
interface
uses
// RTL
Classes, SysUtils,
Gtk2, Gdk2, Glib2, gdk2pixbuf,
// LCL
////////////////////////////////////////////////////
// I M P O R T A N T
////////////////////////////////////////////////////
@ -29,11 +33,9 @@ uses
////////////////////////////////////////////////////
Controls, ComCtrls,
////////////////////////////////////////////////////
Classes, SysUtils,
Graphics,
gdk2pixbuf,
Gtk2, Gdk2, Glib2, Gtk2Globals, Gtk2Def,
Gtk2Globals, Gtk2Def,
Gtk2Proc, LCLType, LCLProc,
WSControls, WSProc, Gtk2WinapiWindow;

View File

@ -21,10 +21,12 @@ unit Gtk2WSDialogs;
interface
uses
// Bindings
Gtk2, Glib2, gdk2, pango, Gtk2Extra,
// RTL, FCL and LCL
SysUtils, Classes, Graphics, Controls, Dialogs, ExtDlgs, LCLType,
// RTL
Gtk2, Glib2, gdk2, pango,
SysUtils, Classes,
// LCL
Gtk2Extra,
Graphics, Controls, Dialogs, ExtDlgs, LCLType,
FileUtil, LCLStrConsts, LCLProc, InterfaceBase,
// Widgetset
Gtk2Int, Gtk2Globals, Gtk2Def, Gtk2Proc,

View File

@ -25,11 +25,13 @@ unit Gtk2WSExtCtrls;
interface
uses
// libs
GLib2, Gtk2, Gdk2, Gdk2Pixbuf, Gtk2Int, Gtk2Def,
{$ifdef UseStatusIcon}Gtk2Ext, {$endif}
// RTL
GLib2, Gtk2, Gdk2, Gdk2Pixbuf,
Classes, SysUtils, Types,
// LCL
LCLProc, ExtCtrls, Classes, Controls, SysUtils, types, Graphics, LCLType,
Gtk2Int, Gtk2Def,
{$ifdef UseStatusIcon}Gtk2Ext, {$endif}
LCLProc, ExtCtrls, Controls, Graphics, LCLType,
// widgetset
WSExtCtrls, WSLCLClasses,
Gtk2WSControls, Gtk2Proc, Gtk2Globals;

View File

@ -3,8 +3,12 @@ unit Gtk2WSFactory;
{$mode objfpc}{$H+}
interface
uses
Classes, Controls, ComCtrls, Calendar, StdCtrls, Spin,
// RTL
Classes,
// LCL
Controls, ComCtrls, Calendar, StdCtrls, Spin,
Dialogs, ExtCtrls, ExtDlgs, Buttons, CheckLst, Forms, Grids, Menus,
PairSplitter, WSLCLClasses;
@ -99,6 +103,7 @@ function RegisterCustomRubberBand: Boolean;
function RegisterLazDeviceAPIs: Boolean;
implementation
uses
Gtk2WSButtons,
Gtk2WSCalendar,

View File

@ -21,12 +21,14 @@ unit Gtk2WSForms;
interface
uses
// Bindings
// RTL
Gtk2, Glib2, Gdk2, Gdk2Pixbuf,
{$IFDEF HASX}
Gdk2x, X, XLib,
{$ENDIF}
Math, types, Classes, LazLogger, LCLType, Controls, LMessages, InterfaceBase,
Math, types, Classes,
// LCL
LazLogger, LCLType, Controls, LMessages, InterfaceBase,
Graphics, Forms, WSForms, WSProc,
Gtk2Int, Gtk2Proc, Gtk2Def, Gtk2Extra, Gtk2Globals, Gtk2WSControls;

View File

@ -21,9 +21,12 @@ unit Gtk2WSMenus;
interface
uses
// RTL
glib2, gdk2, gtk2,
Classes,
// LCL
Gtk2Int, Gtk2Proc, Gtk2Globals, Gtk2Def, Gtk2Extra,
Classes, InterfaceBase, Types, LCLProc, LCLType, WSMenus, WSLCLClasses,
InterfaceBase, Types, LCLProc, LCLType, WSMenus, WSLCLClasses,
LMessages, Graphics, Menus, Forms, LCLIntf;
type

View File

@ -27,8 +27,9 @@ interface
uses
// libs
Gtk2, Glib2, Gdk2,
Classes, SysUtils,
// LCL
LCLType, LMessages, LCLProc, Controls, Classes, SysUtils, Forms,
LCLType, LMessages, LCLProc, Controls, Forms,
// widgetset
WSControls, WSLCLClasses, WSProc,
// interface

View File

@ -21,10 +21,10 @@ unit Gtk2WSSpin;
interface
uses
// Bindings
glib2, gtk2,
// RTL, FCL, LCL
SysUtils, Math, Controls, LCLType, LCLProc, Spin, StdCtrls,
// RTL
glib2, gtk2, SysUtils, Math,
// LCL
Controls, LCLType, LCLProc, Spin, StdCtrls,
// Widgetset
Gtk2Extra, Gtk2Def, Gtk2WSStdCtrls,
Gtk2Proc, WSLCLClasses, WSProc, WSSpin;

View File

@ -21,11 +21,11 @@ unit Gtk2WSStdCtrls;
interface
uses
// Bindings
// RTL
glib2, gdk2, gtk2,
// RTL, FCL, LCL
Classes, SysUtils, Math, Controls, Graphics,
StdCtrls, LMessages, LCLType, LCLProc,
Classes, SysUtils, Math,
// LCL
Controls, Graphics, StdCtrls, LMessages, LCLType, LCLProc,
// Widgetset
WSControls, WSProc, WSStdCtrls, Gtk2Int, Gtk2Def,
Gtk2CellRenderer, Gtk2Globals, Gtk2Proc, InterfaceBase,