summaryrefslogtreecommitdiffstats
path: root/kexi/widget/relations/kexirelationview.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/relations/kexirelationview.h')
-rw-r--r--kexi/widget/relations/kexirelationview.h59
1 files changed, 30 insertions, 29 deletions
diff --git a/kexi/widget/relations/kexirelationview.h b/kexi/widget/relations/kexirelationview.h
index 2de6620d..b5d1785d 100644
--- a/kexi/widget/relations/kexirelationview.h
+++ b/kexi/widget/relations/kexirelationview.h
@@ -21,16 +21,16 @@
#ifndef KEXIRELATIONVIEW_H
#define KEXIRELATIONVIEW_H
-#include <qguardedptr.h>
-#include <qscrollview.h>
-#include <qptrlist.h>
-#include <qdict.h>
+#include <tqguardedptr.h>
+#include <tqscrollview.h>
+#include <tqptrlist.h>
+#include <tqdict.h>
#include <kexidb/tableschema.h>
#include "kexirelationviewconnection.h"
-class QFrame;
+class TQFrame;
class KexiRelationViewTable;
class KexiRelationViewTableContainer;
@@ -43,17 +43,17 @@ namespace KexiDB
class Connection;
}
-typedef QDict<KexiRelationViewTableContainer> TablesDict;
-typedef QDictIterator<KexiRelationViewTableContainer> TablesDictIterator;
-typedef QPtrList<KexiRelationViewConnection> ConnectionList;
-typedef QPtrListIterator<KexiRelationViewConnection> ConnectionListIterator;
+typedef TQDict<KexiRelationViewTableContainer> TablesDict;
+typedef TQDictIterator<KexiRelationViewTableContainer> TablesDictIterator;
+typedef TQPtrList<KexiRelationViewConnection> ConnectionList;
+typedef TQPtrListIterator<KexiRelationViewConnection> ConnectionListIterator;
struct SourceConnection
{
- QString masterTable;
- QString detailsTable;
- QString masterField;
- QString detailsField;
+ TQString masterTable;
+ TQString detailsTable;
+ TQString masterField;
+ TQString detailsField;
};
/*! @short provides a view for displaying relations between database tables.
@@ -65,23 +65,24 @@ struct SourceConnection
The class is for displaying only - retrieving data and updating data on the backend side is implemented
in KexiRelationWidget, and more specifically in: Kexi Relation Part and Kexi Query Part.
*/
-class KEXIRELATIONSVIEW_EXPORT KexiRelationView : public QScrollView
+class KEXIRELATIONSVIEW_EXPORT KexiRelationView : public TQScrollView
{
Q_OBJECT
+ TQ_OBJECT
public:
- KexiRelationView(QWidget *parent, const char *name=0);
+ KexiRelationView(TQWidget *tqparent, const char *name=0);
virtual ~KexiRelationView();
//! \return a dictionary of added tables
TablesDict* tables() { return &m_tables; }
/*! Adds a table \a t to the area. This changes only visual representation.
- If \a rect is valid, table widget geometry will be initialized.
+ If \a rect is valid, table widget tqgeometry will be initialized.
\return added table container or 0 on failure.
*/
KexiRelationViewTableContainer* addTableContainer(KexiDB::TableSchema *t,
- const QRect &rect = QRect());
+ const TQRect &rect = TQRect());
/*! \return table container for table \a t. */
KexiRelationViewTableContainer * tableContainer(KexiDB::TableSchema *t) const;
@@ -95,16 +96,16 @@ class KEXIRELATIONSVIEW_EXPORT KexiRelationView : public QScrollView
inline KexiRelationViewTableContainer* focusedTableView() const { return m_focusedTableView; }
- virtual QSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
const ConnectionList* connections() const { return &m_connectionViews; }
// KexiRelationViewTableContainer* containerForTable(KexiDB::TableSchema* tableSchema);
signals:
- void tableContextMenuRequest( const QPoint& pos );
- void connectionContextMenuRequest( const QPoint& pos );
- void emptyAreaContextMenuRequest( const QPoint& pos );
+ void tableContextMenuRequest( const TQPoint& pos );
+ void connectionContextMenuRequest( const TQPoint& pos );
+ void emptyAreaContextMenuRequest( const TQPoint& pos );
void tableViewGotFocus();
void connectionViewGotFocus();
void emptyAreaGotFocus();
@@ -126,7 +127,7 @@ class KEXIRELATIONSVIEW_EXPORT KexiRelationView : public QScrollView
/*! Hides all tables except \a tables. */
void hideAllTablesExcept( KexiDB::TableSchema::List* tables );
- void slotTableScrolling(const QString&);
+ void slotTableScrolling(const TQString&);
//! removes selected table or connection
void removeSelectedObject();
@@ -134,7 +135,7 @@ class KEXIRELATIONSVIEW_EXPORT KexiRelationView : public QScrollView
protected slots:
void containerMoved(KexiRelationViewTableContainer *c);
- void slotListUpdate(QObject *s);
+ void slotListUpdate(TQObject *s);
void slotTableViewEndDrag();
void slotTableViewGotFocus();
@@ -142,15 +143,15 @@ class KEXIRELATIONSVIEW_EXPORT KexiRelationView : public QScrollView
// /*! executes popup menu at \a pos, or,
// if \a pos not specified: at center of selected table view (if any selected),
// or at center point of the relations view. */
-// void executePopup( QPoint pos = QPoint(-1,-1) );
+// void executePopup( TQPoint pos = TQPoint(-1,-1) );
- void drawContents(QPainter *p, int cx, int cy, int cw, int ch);
- void contentsMousePressEvent(QMouseEvent *ev);
- virtual void keyPressEvent(QKeyEvent *ev);
+ void drawContents(TQPainter *p, int cx, int cy, int cw, int ch);
+ void contentsMousePressEvent(TQMouseEvent *ev);
+ virtual void keyPressEvent(TQKeyEvent *ev);
void recalculateSize(int width, int height);
void stretchExpandSize();
-// void invalidateActions();
+// void tqinvalidateActions();
// void clearTableSelection();
// void clearConnSelection();
@@ -161,7 +162,7 @@ class KEXIRELATIONSVIEW_EXPORT KexiRelationView : public QScrollView
bool m_readOnly;
ConnectionList m_connectionViews;
KexiRelationViewConnection* m_selectedConnection;
- QGuardedPtr<KexiRelationViewTableContainer> m_focusedTableView;
+ TQGuardedPtr<KexiRelationViewTableContainer> m_focusedTableView;
};
#endif