summaryrefslogtreecommitdiffstats
path: root/kexi/widget/tableview/kexidataawareobjectiface.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/tableview/kexidataawareobjectiface.h')
-rw-r--r--kexi/widget/tableview/kexidataawareobjectiface.h116
1 files changed, 58 insertions, 58 deletions
diff --git a/kexi/widget/tableview/kexidataawareobjectiface.h b/kexi/widget/tableview/kexidataawareobjectiface.h
index 4cf2aa6a..e6e9a357 100644
--- a/kexi/widget/tableview/kexidataawareobjectiface.h
+++ b/kexi/widget/tableview/kexidataawareobjectiface.h
@@ -26,16 +26,16 @@
#ifndef KEXIDATAAWAREOBJECTINTERFACE_H
#define KEXIDATAAWAREOBJECTINTERFACE_H
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kdebug.h>
#include <widget/utils/kexiarrowtip.h>
#include <kexisearchandreplaceiface.h>
#include "kexitableviewdata.h"
-class QObject;
-class QScrollBar;
+class TQObject;
+class TQScrollBar;
class KPopupMenu;
class KexiTableItem;
class KexiTableViewData;
@@ -54,7 +54,7 @@ namespace KexiDB {
//! \brief The KexiDataAwareObjectInterface is an interface for record-based data object.
/** This interface is implemented by KexiTableView and KexiFormView
and used by KexiDataAwareView. If yu're implementing this interface,
- add KEXI_DATAAWAREOBJECTINTERFACE convenience macro just after Q_OBJECT.
+ add KEXI_DATAAWAREOBJECTINTERFACE convenience macro just after TQ_OBJECT.
You should add following code to your destructor so data is deleted:
\code
@@ -267,14 +267,14 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
Does not clear columns information.
Does not destroy KexiTableViewData object (if present) but only clears its contents.
Displays confirmation dialog if \a ask is true (the default is false).
- Repaints widget if \a repaint is true (the default).
+ Repaints widget if \a tqrepaint is true (the default).
For empty tables, true is returned immediately.
If isDeleteEnabled() is false, false is returned.
For spreadsheet mode all current rows are just replaced by empty rows.
\return true on success, false on failure, and cancelled if user cancelled deletion
(only possible if \a ask is true).
*/
- tristate deleteAllRows(bool ask = false, bool repaint = true);
+ tristate deleteAllRows(bool ask = false, bool tqrepaint = true);
/*! \return maximum number of rows that can be displayed per one "page"
for current view's size. */
@@ -356,7 +356,7 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
virtual bool acceptEditor();
//! Creates editors and shows it, what usually means the beginning of a cell editing
- virtual void createEditor(int row, int col, const QString& addText = QString::null,
+ virtual void createEditor(int row, int col, const TQString& addText = TQString(),
bool removeOld = false) = 0;
/*! Used when Return key is pressed on cell, the cell has been double clicked
@@ -365,7 +365,7 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
was displayed (in this case, \a setText is usually not empty, what means
that text will be set in the cell replacing previous value).
*/
- virtual void startEditCurrentCell(const QString& setText = QString::null);
+ virtual void startEditCurrentCell(const TQString& setText = TQString());
/*! Deletes currently selected cell's contents, if allowed.
In most cases delete is not accepted immediately but "row editing" mode is just started. */
@@ -386,13 +386,13 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
bool hasDefaultValueAt(const KexiTableViewColumn& tvcol);
- const QVariant* bufferedValueAt(int col, bool useDefaultValueIfPossible = true);
+ const TQVariant* bufferedValueAt(int col, bool useDefaultValueIfPossible = true);
//! \return a type of column \a col - one of KexiDB::Field::Type
int columnType(int col);
//! \return default value for column \a col
- QVariant columnDefaultValue(int col) const;
+ TQVariant columnDefaultValue(int col) const;
/*! \return true is column \a col is editable.
Default implementation takes information about 'readOnly' flag from data member.
@@ -408,7 +408,7 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
//! signals
virtual void itemChanged(KexiTableItem *, int row, int col) = 0;
- virtual void itemChanged(KexiTableItem *, int row, int col, QVariant oldValue) = 0;
+ virtual void itemChanged(KexiTableItem *, int row, int col, TQVariant oldValue) = 0;
virtual void itemDeleteRequest(KexiTableItem *, int row, int col) = 0;
virtual void currentItemDeleteRequest() = 0;
//! Emitted for spreadsheet mode when an item was deleted and a new item has been appended
@@ -446,22 +446,22 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
we're starting to edit the cell and inverting it's state. */
virtual void boolToggled();
- virtual void connectCellSelectedSignal(const QObject* receiver,
+ virtual void connectCellSelectedSignal(const TQObject* receiver,
const char* intIntMember) = 0;
- virtual void connectRowEditStartedSignal(const QObject* receiver,
+ virtual void connectRowEditStartedSignal(const TQObject* receiver,
const char* intMember) = 0;
- virtual void connectRowEditTerminatedSignal(const QObject* receiver,
+ virtual void connectRowEditTerminatedSignal(const TQObject* receiver,
const char* voidMember) = 0;
- virtual void connectReloadActionsSignal(const QObject* receiver,
+ virtual void connectReloadActionsSignal(const TQObject* receiver,
const char* voidMember) = 0;
- virtual void connectDataSetSignal(const QObject* receiver,
+ virtual void connectDataSetSignal(const TQObject* receiver,
const char* kexiTableViewDataMember) = 0;
- virtual void connectToReloadDataSlot(const QObject* sender,
+ virtual void connectToReloadDataSlot(const TQObject* sender,
const char* voidSignal) = 0;
virtual void slotDataDestroying();
@@ -490,7 +490,7 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
\return true if value has been found, false if value has not been found,
and cancelled if there is nothing to find or there is no data to search in. */
- virtual tristate find(const QVariant& valueToFind,
+ virtual tristate tqfind(const TQVariant& valueToFind,
const KexiSearchAndReplaceViewInterface::Options& options, bool next);
/*! Finds \a valueToFind within the data items and replaces with \a replacement
@@ -499,12 +499,12 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
has not been found and replaced, and cancelled if there is nothing
to find or there is no data to search in or the data is read only.
If \a replaceAll is true, all found values are replaced. */
- virtual tristate findNextAndReplace(const QVariant& valueToFind,
- const QVariant& replacement,
+ virtual tristate findNextAndReplace(const TQVariant& valueToFind,
+ const TQVariant& replacement,
const KexiSearchAndReplaceViewInterface::Options& options, bool replaceAll);
/*! \return vertical scrollbar */
- virtual QScrollBar* verticalScrollBar() const = 0;
+ virtual TQScrollBar* verticalScrollBar() const = 0;
/*! Used in KexiTableView::keyPressEvent() (and in continuous forms).
\return true when the key press event \e was consumed.
@@ -523,7 +523,7 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
can be other than the very first field in the form.
Used by KexiTableView::keyPressEvent() and KexiTableView::keyPressEvent(). */
- virtual bool handleKeyPress(QKeyEvent *e, int &curRow, int &curCol, bool fullRowSelection,
+ virtual bool handleKeyPress(TQKeyEvent *e, int &curRow, int &curCol, bool fullRowSelection,
bool *moveToFirstField = 0, bool *moveToLastField = 0);
protected:
@@ -537,18 +537,18 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
virtual void initDataContents();
/*! Clears columns information and thus all internal table data
- and its visible representation. Repaints widget if \a repaint is true. */
- virtual void clearColumns(bool repaint = true);
+ and its visible representation. Repaints widget if \a tqrepaint is true. */
+ virtual void clearColumns(bool tqrepaint = true);
/*! Called by clearColumns() to clear internals of the object.
For example, KexiTableView removes contents of it's horizontal header. */
- virtual void clearColumnsInternal(bool repaint) = 0;
+ virtual void clearColumnsInternal(bool tqrepaint) = 0;
/*! @internal for implementation
This should append another section within horizontal header or any sort of caption
for a field using provided names. \a width is a hint for new field's width. */
- virtual void addHeaderColumn(const QString& caption, const QString& description,
- const QIconSet& icon, int size) = 0;
+ virtual void addHeaderColumn(const TQString& caption, const TQString& description,
+ const TQIconSet& icon, int size) = 0;
/*! @internal for implementation
\return sorting order (within GUI): -1: descending, 1: ascending, 0: no sorting.
@@ -630,11 +630,11 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
/*! Updates contents of the widget. Just call update() here on your widget. */
virtual void updateWidgetContents() = 0;
- /*! Updates widget's contents size e.g. using QScrollView::resizeContents(). */
+ /*! Updates widget's contents size e.g. using TQScrollView::resizeContents(). */
virtual void updateWidgetContentsSize() = 0;
/*! Updates scrollbars of the widget.
- QScrollView::updateScrollbars() will be usually called here. */
+ TQScrollView::updateScrollbars() will be usually called here. */
virtual void updateWidgetScrollBars() = 0;
/*! @internal
@@ -654,18 +654,18 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
//! Handles KexiTableViewData::aboutToDeleteRow() signal. Prepares info for slotRowDeleted().
virtual void slotAboutToDeleteRow(KexiTableItem& item, KexiDB::ResultInfo* result,
- bool repaint);
+ bool tqrepaint);
- //! Handles KexiTableViewData::rowDeleted() signal to repaint when needed.
+ //! Handles KexiTableViewData::rowDeleted() signal to tqrepaint when needed.
virtual void slotRowDeleted();
- //! Handles KexiTableViewData::rowInserted() signal to repaint when needed.
- virtual void slotRowInserted(KexiTableItem *item, bool repaint);
+ //! Handles KexiTableViewData::rowInserted() signal to tqrepaint when needed.
+ virtual void slotRowInserted(KexiTableItem *item, bool tqrepaint);
//! Like above, not db-aware version
- virtual void slotRowInserted(KexiTableItem *item, uint row, bool repaint);
+ virtual void slotRowInserted(KexiTableItem *item, uint row, bool tqrepaint);
- virtual void slotRowsDeleted( const QValueList<int> & ) {}
+ virtual void slotRowsDeleted( const TQValueList<int> & ) {}
//! for sanity checks (return true if m_data is present; else: outputs warning)
inline bool hasData() const;
@@ -675,12 +675,12 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
virtual void selectCellInternal() {}
/*! Used in KexiDataAwareObjectInterface::slotRowDeleted()
- to repaint tow \a row and all visible below.
+ to tqrepaint tow \a row and all visible below.
Implemented if there is more than one row displayed, i.e. currently for KexiTableView. */
virtual void updateAllVisibleRowsBelow(int row) { Q_UNUSED( row ); }
//! Call this from the subclass. */
- virtual void focusOutEvent(QFocusEvent* e);
+ virtual void focusOutEvent(TQFocusEvent* e);
/*! Handles verticalScrollBar()'s valueChanged(int) signal.
Called when vscrollbar's value has been changed.
@@ -705,7 +705,7 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
This is per-interface global cache.
Needed for faster lookup because there could be lookup values.
Called whenever columns definition changes, i.e. in setData() and clearColumns().
- @see find() */
+ @see tqfind() */
void updateIndicesForVisibleValues();
//! data structure displayed for this object
@@ -833,7 +833,7 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
int m_rowWillBeDeleted;
/*! Displays passive error popup label used when invalid data has been entered. */
- QGuardedPtr<KexiArrowTip> m_errorMessagePopup;
+ TQGuardedPtr<KexiArrowTip> m_errorMessagePopup;
/*! Used to enable/disable execution of vScrollBarValueChanged()
when users navigate through rows using keyboard, so vscrollbar tooltips are not visible. */
@@ -842,8 +842,8 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
/*! True, if vscrollbar tooltips are enabled (true by default). */
bool m_scrollbarToolTipsEnabled : 1;
- QLabel* m_scrollBarTip; //!< scrollbar tooltip
- QTimer m_scrollBarTipTimer; //!< scrollbar tooltip's timer
+ TQLabel* m_scrollBarTip; //!< scrollbar tooltip
+ TQTimer m_scrollBarTipTimer; //!< scrollbar tooltip's timer
uint m_scrollBarTipTimerCnt; //!< helper for timeout counting (scrollbar tooltip)
//! Used to mark recently found value
@@ -856,19 +856,19 @@ class KEXIDATATABLE_EXPORT KexiDataAwareObjectInterface
bool exists : 1;
};
- /*! Used to mark recently found value. Updated on succesful execution of find().
+ /*! Used to mark recently found value. Updated on succesful execution of tqfind().
If the current cursor's position changes, or data in the current cell changes,
positionOfRecentlyFoundValue.exists is set to false. */
PositionOfValue m_positionOfRecentlyFoundValue;
/*! Used to compare whether we're looking for new value. */
- QVariant m_recentlySearchedValue;
+ TQVariant m_recentlySearchedValue;
/*! Used to compare whether the search direction has changed. */
KexiSearchAndReplaceViewInterface::Options::SearchDirection m_recentSearchDirection;
- //! Setup by updateIndicesForVisibleValues() and used by find()
- QValueVector<uint> m_indicesForVisibleValues;
+ //! Setup by updateIndicesForVisibleValues() and used by tqfind()
+ TQValueVector<uint> m_indicesForVisibleValues;
};
inline bool KexiDataAwareObjectInterface::hasData() const
@@ -895,24 +895,24 @@ inline KexiTableItem *KexiDataAwareObjectInterface::itemAt(int row) const
//! Convenience macro used for KexiDataAwareObjectInterface implementations.
#define KEXI_DATAAWAREOBJECTINTERFACE \
public: \
- void connectCellSelectedSignal(const QObject* receiver, const char* intIntMember) { \
- connect(this, SIGNAL(cellSelected(int,int)), receiver, intIntMember); \
+ void connectCellSelectedSignal(const TQObject* receiver, const char* intIntMember) { \
+ connect(this, TQT_SIGNAL(cellSelected(int,int)), receiver, intIntMember); \
} \
- void connectRowEditStartedSignal(const QObject* receiver, const char* intMember) { \
- connect(this, SIGNAL(rowEditStarted(int)), receiver, intMember); \
+ void connectRowEditStartedSignal(const TQObject* receiver, const char* intMember) { \
+ connect(this, TQT_SIGNAL(rowEditStarted(int)), receiver, intMember); \
} \
- void connectRowEditTerminatedSignal(const QObject* receiver, const char* voidMember) { \
- connect(this, SIGNAL(rowEditTerminated(int)), receiver, voidMember); \
+ void connectRowEditTerminatedSignal(const TQObject* receiver, const char* voidMember) { \
+ connect(this, TQT_SIGNAL(rowEditTerminated(int)), receiver, voidMember); \
} \
- void connectReloadActionsSignal(const QObject* receiver, const char* voidMember) { \
- connect(this, SIGNAL(reloadActions()), receiver, voidMember); \
+ void connectReloadActionsSignal(const TQObject* receiver, const char* voidMember) { \
+ connect(this, TQT_SIGNAL(reloadActions()), receiver, voidMember); \
} \
- void connectDataSetSignal(const QObject* receiver, \
+ void connectDataSetSignal(const TQObject* receiver, \
const char* kexiTableViewDataMember) { \
- connect(this, SIGNAL(dataSet(KexiTableViewData*)), receiver, kexiTableViewDataMember); \
+ connect(this, TQT_SIGNAL(dataSet(KexiTableViewData*)), receiver, kexiTableViewDataMember); \
} \
- void connectToReloadDataSlot(const QObject* sender, const char* voidSignal) { \
- connect(sender, voidSignal, this, SLOT(reloadData())); \
+ void connectToReloadDataSlot(const TQObject* sender, const char* voidSignal) { \
+ connect(sender, voidSignal, this, TQT_SLOT(reloadData())); \
}
#endif