summaryrefslogtreecommitdiffstats
path: root/lib/compatibility/kmdi/qextmdi/kdockwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compatibility/kmdi/qextmdi/kdockwidget.h')
-rw-r--r--lib/compatibility/kmdi/qextmdi/kdockwidget.h145
1 files changed, 77 insertions, 68 deletions
diff --git a/lib/compatibility/kmdi/qextmdi/kdockwidget.h b/lib/compatibility/kmdi/qextmdi/kdockwidget.h
index 9c738d3c..8fffb002 100644
--- a/lib/compatibility/kmdi/qextmdi/kdockwidget.h
+++ b/lib/compatibility/kmdi/qextmdi/kdockwidget.h
@@ -37,9 +37,9 @@
- KDockWidget - IMPORTANT CLASS: the one and only dockwidget class
- KDockManager - helper class
- KDockMainWindow - IMPORTANT CLASS: a special KMainWindow that can have dockwidgets
- - KDockArea - like KDockMainWindow but inherits just QWidget
+ - KDockArea - like KDockMainWindow but inherits just TQWidget
- IMPORTANT Note: This file compiles also in Qt-only mode by using the NO_KDE2 precompiler definition!
+ IMPORTANT Note: This file compiles also in TQt-only mode by using the NO_KDE2 precompiler definition!
*/
@@ -102,18 +102,19 @@ namespace KMDI
*
* @author Max Judin (documentation: Falk Brettschneider).
*/
-class KDockWidgetAbstractHeader : public QFrame
+class KDockWidgetAbstractHeader : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructs this.
*
- * @param parent the parent widget (usually a dockwidget)
+ * @param tqparent the tqparent widget (usually a dockwidget)
* @param name the object instance name
*/
- KDockWidgetAbstractHeader( KDockWidget* parent, const char* name = 0L );
+ KDockWidgetAbstractHeader( KDockWidget* tqparent, const char* name = 0L );
/**
* Destructs this.
@@ -151,19 +152,20 @@ private:
*
* @author Max Judin (documentation: Falk Brettschneider).
*/
-class KDEUI_EXPORT KDockWidgetAbstractHeaderDrag : public QFrame
+class KDEUI_EXPORT KDockWidgetAbstractHeaderDrag : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructs this.
*
- * @param parent the parent widget (usually a dockwidget header)
+ * @param tqparent the tqparent widget (usually a dockwidget header)
* @param dock the dockwidget where it belongs to
* @param name the object instance name
*/
- KDockWidgetAbstractHeaderDrag( KDockWidgetAbstractHeader* parent,
+ KDockWidgetAbstractHeaderDrag( KDockWidgetAbstractHeader* tqparent,
KDockWidget* dock, const char* name = 0L );
/**
@@ -199,16 +201,17 @@ private:
class KDEUI_EXPORT KDockWidgetHeaderDrag : public KDockWidgetAbstractHeaderDrag
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructs this.
*
- * @param parent the parent widget (usually a dockwidget header)
+ * @param tqparent the tqparent widget (usually a dockwidget header)
* @param dock the dockwidget where it belongs to
* @param name the object instance name
*/
- KDockWidgetHeaderDrag( KDockWidgetAbstractHeader* parent, KDockWidget* dock,
+ KDockWidgetHeaderDrag( KDockWidgetAbstractHeader* tqparent, KDockWidget* dock,
const char* name = 0L );
/**
@@ -240,15 +243,16 @@ private:
class KDEUI_EXPORT KDockWidgetHeader : public KDockWidgetAbstractHeader
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructs this.
*
- * @param parent the parent widget (usually a dockwidget)
+ * @param tqparent the tqparent widget (usually a dockwidget)
* @param name the object instance name
*/
- KDockWidgetHeader( KDockWidget* parent, const char* name = 0L );
+ KDockWidgetHeader( KDockWidget* tqparent, const char* name = 0L );
/**
* Destructs this.
@@ -324,9 +328,9 @@ protected slots:
protected:
/**
- * A layout manager for placing the embedded buttons (close and stay)
+ * A tqlayout manager for placing the embedded buttons (close and stay)
*/
- TQHBoxLayout* layout;
+ TQHBoxLayout* tqlayout;
/**
* a little button for closing (undocking and hiding) the dockwidget
@@ -362,15 +366,16 @@ private:
*
* @author Max Judin (documentation: Falk Brettschneider).
*/
-class KDEUI_EXPORT KDockTabGroup : public QTabWidget
+class KDEUI_EXPORT KDockTabGroup : public TQTabWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructs this. It just calls the method of the base class.
*/
- KDockTabGroup( TQWidget *parent = 0, const char *name = 0 )
- :TQTabWidget( parent, name ){};
+ KDockTabGroup( TQWidget *tqparent = 0, const char *name = 0 )
+ :TQTabWidget( tqparent, name ){};
/**
* Destructs a KDockTabGroup.
@@ -391,7 +396,7 @@ private:
* encapsulate the actual widgets (and member of the dockwidget class
* set).
*
- * You just grip the double-lined panel, tear it off its parent
+ * You just grip the double-lined panel, tear it off its tqparent
* widget, drag it somewhere and let it loose. Depending on the
* position where you leave it, the dockwidget becomes a toplevel
* window on the desktop (floating mode) or docks to a new widget
@@ -410,7 +415,7 @@ private:
* KDockMainWindow* mainWidget;
* ...
* KDockWidget* dock = 0L;
- * dock = mainWidget->createDockWidget( "Any window caption", nicePixmap, 0L, i18n("window caption")); // 0L==no parent
+ * dock = mainWidget->createDockWidget( "Any window caption", nicePixmap, 0L, i18n("window caption")); // 0L==no tqparent
* TQWidget* actualWidget = new TQWidget( dock);
* dock->setWidget( actualWidget); // embed it
* dock->setToolTipString(i18n("That's me")); // available when appearing as tab page
@@ -422,9 +427,10 @@ private:
*
* @author Max Judin (documentation: Falk Brettschneider).
*/
-class KDEUI_EXPORT KDockWidget: public QWidget
+class KDEUI_EXPORT KDockWidget: public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
friend class KDockManager;
friend class KDockSplitter;
friend class KDockMainWindow;
@@ -441,14 +447,14 @@ public:
* @param dockManager The responsible manager (dock helper)
* @param name Object instance name
* @param pixmap An icon (for instance shown when docked centered)
- * @param parent Parent widget
+ * @param tqparent Parent widget
* @param strCaption Title of the dockwidget window (shown when toplevel)
* @param strTabPageLabel The title of the tab page (shown when in tab page mode), if it is "", only the icon will be shown, if it is 0L, the label is set to strCaption
- * @param f Qt::WidgetFlags widget flags
+ * @param f TQt::WidgetFlags widget flags
*/
KDockWidget( KDockManager* dockManager, const char* name,
- const TQPixmap &pixmap, TQWidget* parent = 0L, const TQString& strCaption = TQString::null,
- const TQString& strTabPageLabel = TQString::fromLatin1( " " ), WFlags f = 0);
+ const TQPixmap &pixmap, TQWidget* tqparent = 0L, const TQString& strCaption = TQString(),
+ const TQString& strTabPageLabel = TQString::tqfromLatin1( " " ), WFlags f = 0);
/**
* Destructs a dockwidget.
@@ -481,8 +487,8 @@ public:
*
* If the target is null, it will become a toplevel dockwidget at position pos;
* Note: Docking to another dockwidget means exactly:
- * A new parent dockwidget will be created, that replaces the target dockwidget and contains another single helper widget (tab widget or panner)
- * which contains both dockwidgets, this and the target dockwidget. So consider parent<->child relationships change completely during such actions.
+ * A new tqparent dockwidget will be created, that replaces the target dockwidget and contains another single helper widget (tab widget or panner)
+ * which contains both dockwidgets, this and the target dockwidget. So consider tqparent<->child relationships change completely during such actions.
*
* @param target The dockwidget to dock to
* @param dockPos One of the DockPositions this is going to dock to
@@ -490,7 +496,7 @@ public:
* @param pos The dock position, mainly of interest for docking to the desktop (as toplevel dockwidget)
* @param check Only for internal use;
* @param tabIndex The position index of the tab widget (when in tab page mode), -1 (default) means append
- * @return result The group dockwidget that replaces the target dockwidget and will be grandparent of target and @p this.
+ * @return result The group dockwidget that replaces the target dockwidget and will be grandtqparent of target and @p this.
*/
KDockWidget* manualDock( KDockWidget* target, DockPosition dockPos, int spliPos = 50, TQPoint pos = TQPoint(0,0), bool check = false, int tabIndex = -1);
@@ -562,7 +568,7 @@ public:
* There are reasons that it's impossible:
* @li It is a (tab) group.
* @li It is already invisible ;-)
- * @li The parent of this is the KDockMainWindow.
+ * @li The tqparent of this is the KDockMainWindow.
* @li It isn't able to dock to another widget.
*/
bool mayBeHide() const;
@@ -572,7 +578,7 @@ public:
* There are reasons that it's impossible:
* @li It is a (tab) group.
* @li It is already visible ;-)
- * @li The parent of this is the @p KDockMainWindow.
+ * @li The tqparent of this is the @p KDockMainWindow.
*/
bool mayBeShow() const;
@@ -624,12 +630,12 @@ public:
*/
virtual void show();
/**
- * @return the parent widget of this if it inherits class KDockTabGroup
+ * @return the tqparent widget of this if it inherits class KDockTabGroup
*/
- KDockTabGroup* parentDockTabGroup() const;
+ KDockTabGroup* tqparentDockTabGroup() const;
/// @since 3.1
- TQWidget *parentDockContainer() const;
+ TQWidget *tqparentDockContainer() const;
#ifndef NO_KDE2
@@ -642,7 +648,7 @@ public:
#endif
- void setDockWindowTransient (TQWidget *parent, bool transientEnabled);
+ void setDockWindowTransient (TQWidget *tqparent, bool transientEnabled);
/**
* Returns the widget this dockwidget is set transient to, otherwise 0
@@ -732,7 +738,7 @@ protected:
/**
* Checks some conditions and shows or hides the dockwidget header (drag panel).
* The header is hidden if:
- * @li the parent widget is the KDockMainWindow
+ * @li the tqparent widget is the KDockMainWindow
* @li this is a (tab) group dockwidget
* @li it is not able to dock to another dockwidget
*/
@@ -831,7 +837,7 @@ private:
void setDockTabName( KDockTabGroup* g);
/**
- * Reparent to s or set this to the KDockMainWindow's view if s is that dockmainwindow.
+ * Retqparent to s or set this to the KDockMainWindow's view if s is that dockmainwindow.
* If s is O, simply move the widget.
*
* @param s the target widget to reparent to
@@ -850,9 +856,9 @@ private:
TQWidget* widget;
/**
- * the layout manager that takes care about proper resizing and moving the embedded widget and the header
+ * the tqlayout manager that takes care about proper resizing and moving the embedded widget and the header
*/
- TQVBoxLayout* layout;
+ TQVBoxLayout* tqlayout;
/**
* the responsible dockmanager
@@ -882,7 +888,7 @@ private:
// GROUP data
TQString firstName;
TQString lastName;
- Orientation splitterOrientation;
+ Qt::Orientation splitterOrientation;
bool isGroup;
bool isTabGroup;
protected:
@@ -903,9 +909,10 @@ private:
*
* @author Max Judin (documentation: Falk Brettschneider).
*/
-class KDEUI_EXPORT KDockManager: public QObject
+class KDEUI_EXPORT KDockManager: public TQObject
{
Q_OBJECT
+ TQ_OBJECT
friend class KDockWidget;
friend class KDockMainWindow;
@@ -925,7 +932,7 @@ public:
* @li Some state variables are set
*
* @param mainWindow the main window controlled by this
- * @param name the internal QOject name
+ * @param name the internal TQOject name
*/
KDockManager( TQWidget* mainWindow, const char* name = 0L );
@@ -939,14 +946,14 @@ public:
#ifndef NO_KDE2
/**
* Saves the current state of the dockmanager and of all controlled widgets.
- * State means here to save the geometry, visibility, parents, internal object names, orientation,
+ * State means here to save the tqgeometry, visibility, tqparents, internal object names, orientation,
* separator positions, dockwidget-group information, tab widget states (if it is a tab group) and
* last but not least some necessary things for recovering the dockmainwindow state.
*
* @param c the KDE configuration saver
* @param group the name of the section in KConfig
*/
- void writeConfig( KConfig* c = 0L, TQString group = TQString::null );
+ void writeConfig( KConfig* c = 0L, TQString group = TQString() );
/**
* Like writeConfig but reads the whole stuff in.
@@ -956,7 +963,7 @@ public:
* (TQObject::name) in the childDock variable of
* KDockManager. This list in turn contains all
* KDockWidgets (according to the KDockWidget constructor).
- * So in principle, in order to restore a window layout,
+ * So in principle, in order to restore a window tqlayout,
* one must first construct all widgets, put each of them in a
* KDockWidget and then call readConfig(). And for all that
* to work, each widget must have a unique name.
@@ -964,24 +971,24 @@ public:
* @param c the KDE configuration saver
* @param group the name of the section in KConfig
*/
- void readConfig ( KConfig* c = 0L, TQString group = TQString::null );
+ void readConfig ( KConfig* c = 0L, TQString group = TQString() );
#endif
/// @since 3.1
void setMainDockWidget2(KDockWidget *);
/**
- * Saves the current dock window layout into a DOM tree below the given element.
+ * Saves the current dock window tqlayout into a DOM tree below the given element.
*/
void writeConfig(TQDomElement &base);
/**
- * Reads the current dock window layout from a DOM tree below the given element.
+ * Reads the current dock window tqlayout from a DOM tree below the given element.
*/
void readConfig(TQDomElement &base);
/**
* Shows all encapsulated widgets of all controlled dockwidgets and shows all dockwidgets which are
- * parent of a dockwidget tab group.
+ * tqparent of a dockwidget tab group.
*/
void activate();
@@ -1083,7 +1090,7 @@ signals:
void replaceDock( KDockWidget* oldDock, KDockWidget* newDock );
/**
- * Signals a dockwidget without parent (toplevel) is shown.
+ * Signals a dockwidget without tqparent (toplevel) is shown.
*/
void setDockDefaultPos( KDockWidget* );
@@ -1137,7 +1144,7 @@ private:
* Finds the TQWidget recursively at the position given as parameter
*
* @param w a variable where the method puts the TQWidget at that position (instead of a return value)
- * @param p the parent widget where the recursive search should start from
+ * @param p the tqparent widget where the recursive search should start from
* @param pos global (desktop) position of the wanted dockwidget
*/
void findChildDockWidget( TQWidget*& w, const TQWidget* p, const TQPoint& pos );
@@ -1145,7 +1152,7 @@ private:
/**
* Finds all dockwidgets which are child, grandchild and so on of p.
*
- * @param p the parent widget where the recursive search starts from
+ * @param p the tqparent widget where the recursive search starts from
* @param l the widget list that contains the search result after the return of this method
*/
void findChildDockWidget( const TQWidget* p, TQWidgetList*& l);
@@ -1202,7 +1209,7 @@ private:
KDockWidget::DockPosition curPos;
/**
- * A QList of all objects that are important for docking.
+ * A TQList of all objects that are important for docking.
* Some serve as group widgets of dockwidgets, others encapsulate normal widgets.
*/
TQObjectList* childDock;
@@ -1302,6 +1309,7 @@ private:
class KDEUI_EXPORT KDockMainWindow : public KMainWindow
{
Q_OBJECT
+ TQ_OBJECT
friend class KDockManager;
@@ -1310,16 +1318,16 @@ public:
/**
* Constructs a dockmainwindow. It calls its base class constructor and does additional things concerning
* to the dock stuff:
- * @li information about the dock state of this' children gets initialized
+ * @li information about the dock state of this' tqchildren gets initialized
* @li a dockmanager is created...
* @li ...and gets initialized
* @li the main dockwidget is set to 0
*
- * @param parent Parent widget for the dock main widget
+ * @param tqparent Parent widget for the dock main widget
* @param name internal object name
- * @param f Qt::WidgetFlags widget flags
+ * @param f TQt::WidgetFlags widget flags
*/
- KDockMainWindow( TQWidget* parent = 0L, const char *name = 0L, WFlags f = WType_TopLevel | WDestructiveClose );
+ KDockMainWindow( TQWidget* tqparent = 0L, const char *name = 0L, WFlags f = WType_TopLevel | WDestructiveClose );
/**
* Destructs a dockmainwindow.
@@ -1354,20 +1362,20 @@ public:
*
* @param name TQObject name (default dockwidget caption)
* @param pixmap window icon (for instance shown when docked as tabwidget entry)
- * @param parent parent widget for the new dockwidget
+ * @param tqparent tqparent widget for the new dockwidget
* @param strCaption window title (shown when toplevel)
* @param strTabPageLabel title of the tab page (visible when in tab page mode), if it is "", only the icon will be shown; if it is 0L, the label is set to strCaption
* @return a pointer to the new created dockwidget
*/
- KDockWidget* createDockWidget( const TQString& name, const TQPixmap &pixmap, TQWidget* parent = 0L,
- const TQString& strCaption = TQString::null, const TQString& strTabPageLabel = TQString::fromLatin1( " " ) );
+ KDockWidget* createDockWidget( const TQString& name, const TQPixmap &pixmap, TQWidget* tqparent = 0L,
+ const TQString& strCaption = TQString(), const TQString& strTabPageLabel = TQString::tqfromLatin1( " " ) );
/**
- * Saves the current dock window layout into a DOM tree below the given element.
+ * Saves the current dock window tqlayout into a DOM tree below the given element.
*/
void writeDockConfig(TQDomElement &base);
/**
- * Reads the current dock window layout from a DOM tree below the given element.
+ * Reads the current dock window tqlayout from a DOM tree below the given element.
*/
void readDockConfig(TQDomElement &base);
@@ -1378,7 +1386,7 @@ public:
* @param c KDE class for saving configurations
* @param group name of section to write to
*/
- void writeDockConfig( KConfig* c = 0L, TQString group = TQString::null );
+ void writeDockConfig( KConfig* c = 0L, TQString group = TQString() );
/**
* It reads the current dock state from the given section of KConfig.
@@ -1386,7 +1394,7 @@ public:
* @param c KDE class for saving configurations
* @param group name of section to read from
*/
- void readDockConfig ( KConfig* c = 0L, TQString group = TQString::null );
+ void readDockConfig ( KConfig* c = 0L, TQString group = TQString() );
#endif
/**
@@ -1465,16 +1473,17 @@ private:
KDockMainWindowPrivate *d;
};
-class KDEUI_EXPORT KDockArea : public QWidget
+class KDEUI_EXPORT KDockArea : public TQWidget
{
Q_OBJECT
+ TQ_OBJECT
friend class KDockManager;
public:
- KDockArea( TQWidget* parent = 0L, const char *name = 0L);
+ KDockArea( TQWidget* tqparent = 0L, const char *name = 0L);
virtual ~KDockArea();
@@ -1484,15 +1493,15 @@ public:
void setMainDockWidget( KDockWidget* );
KDockWidget* getMainDockWidget(){ return mainDockWidget; }
- KDockWidget* createDockWidget( const TQString& name, const TQPixmap &pixmap, TQWidget* parent = 0L,
- const TQString& strCaption = TQString::null, const TQString& strTabPageLabel = TQString::fromLatin1( " " ) );
+ KDockWidget* createDockWidget( const TQString& name, const TQPixmap &pixmap, TQWidget* tqparent = 0L,
+ const TQString& strCaption = TQString(), const TQString& strTabPageLabel = TQString::tqfromLatin1( " " ) );
void writeDockConfig(TQDomElement &base);
void readDockConfig(TQDomElement &base);
#ifndef NO_KDE2
- void writeDockConfig( KConfig* c = 0L, TQString group = TQString::null );
- void readDockConfig ( KConfig* c = 0L, TQString group = TQString::null );
+ void writeDockConfig( KConfig* c = 0L, TQString group = TQString() );
+ void readDockConfig ( KConfig* c = 0L, TQString group = TQString() );
#endif