summaryrefslogtreecommitdiffstats
path: root/kdict/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'kdict/options.h')
-rw-r--r--kdict/options.h124
1 files changed, 62 insertions, 62 deletions
diff --git a/kdict/options.h b/kdict/options.h
index ecef7606..c37ee30e 100644
--- a/kdict/options.h
+++ b/kdict/options.h
@@ -18,7 +18,7 @@
#ifndef _KDICT_OPTIONS_H_
#define _KDICT_OPTIONS_H_
-#include <qlistbox.h>
+#include <tqlistbox.h>
#include <kdialogbase.h>
#include <kglobalsettings.h>
@@ -49,57 +49,57 @@ public:
void write();
// colors...
- const QColor& color(int i) { return c_olors[i]; }
- const QString& colorName(int i) { return c_olorNames[i]; }
+ const TQColor& color(int i) { return c_olors[i]; }
+ const TQString& colorName(int i) { return c_olorNames[i]; }
int colorCount() const { return COL_CNT; }
- QColor defaultColor(int i);
+ TQColor defaultColor(int i);
bool useCustomColors;
- QColor textColor();
- QColor backgroundColor();
- QColor headingsTextColor();
- QColor headingsBackgroundColor();
- QColor linksColor();
- QColor visitedLinksColor();
+ TQColor textColor();
+ TQColor backgroundColor();
+ TQColor headingsTextColor();
+ TQColor headingsBackgroundColor();
+ TQColor linksColor();
+ TQColor visitedLinksColor();
// fonts...
- const QFont& font(int i) { return f_onts[i]; }
- const QString& fontName(int i) { return f_ontNames[i]; }
+ const TQFont& font(int i) { return f_onts[i]; }
+ const TQString& fontName(int i) { return f_ontNames[i]; }
int fontCount() const { return FNT_CNT; }
- QFont defaultFont(int);
+ TQFont defaultFont(int);
bool useCustomFonts;
- QFont textFont();
- QFont headingsFont();
+ TQFont textFont();
+ TQFont headingsFont();
- QString encryptStr(const QString& aStr);
+ TQString encryptStr(const TQString& aStr);
bool defineClipboard; // define clipboard content on startup?
- QSize optSize,setsSize,matchSize; // window geometry
+ TQSize optSize,setsSize,matchSize; // window geometry
bool showMatchList;
- QValueList<int> splitterSizes;
+ TQValueList<int> splitterSizes;
KGlobalSettings::Completion queryComboCompletionMode;
- QStringList queryHistory;
+ TQStringList queryHistory;
bool saveHistory; // save query history to disk on exit?
unsigned int maxHistEntrys, maxBrowseListEntrys, maxDefinitions;
int headLayout;
- QString server; // network client...
+ TQString server; // network client...
int port,timeout,pipeSize,idleHold;
- QString encoding;
+ TQString encoding;
bool authEnabled;
- QString user, secret;
- QStringList serverDatabases, databases, strategies;
- QPtrList<QStringList> databaseSets;
+ TQString user, secret;
+ TQStringList serverDatabases, databases, strategies;
+ TQPtrList<TQStringList> databaseSets;
unsigned int currentDatabase, currentStrategy;
- QColor c_olors[COL_CNT];
- QString c_olorNames[COL_CNT];
- QFont f_onts[FNT_CNT];
- QString f_ontNames[FNT_CNT];
+ TQColor c_olors[COL_CNT];
+ TQString c_olorNames[COL_CNT];
+ TQFont f_onts[FNT_CNT];
+ TQString f_ontNames[FNT_CNT];
- QWidget *topLevel;
+ TQWidget *topLevel;
};
extern GlobalData *global;
@@ -114,59 +114,59 @@ class OptionsDialog : public KDialogBase
public:
- OptionsDialog(QWidget *parent=0, const char *name=0);
+ OptionsDialog(TQWidget *parent=0, const char *name=0);
~OptionsDialog();
//===================================================================================
- class DialogListBox : public QListBox {
+ class DialogListBox : public TQListBox {
public:
// alwaysIgnore==false: enter is ignored when the widget isn't visible/out of focus
- DialogListBox(bool alwaysIgnore=false, QWidget * parent=0, const char * name=0);
+ DialogListBox(bool alwaysIgnore=false, TQWidget * parent=0, const char * name=0);
~DialogListBox();
protected:
- void keyPressEvent( QKeyEvent *e );
+ void keyPressEvent( TQKeyEvent *e );
bool a_lwaysIgnore;
};
//===================================================================================
- class ColorListItem : public QListBoxText {
+ class ColorListItem : public TQListBoxText {
public:
- ColorListItem( const QString &text, const QColor &color=Qt::black );
+ ColorListItem( const TQString &text, const TQColor &color=Qt::black );
~ColorListItem();
- const QColor& color() { return mColor; }
- void setColor( const QColor &color ) { mColor = color; }
+ const TQColor& color() { return mColor; }
+ void setColor( const TQColor &color ) { mColor = color; }
protected:
- virtual void paint( QPainter * );
- virtual int height( const QListBox * ) const;
- virtual int width( const QListBox * ) const;
+ virtual void paint( TQPainter * );
+ virtual int height( const TQListBox * ) const;
+ virtual int width( const TQListBox * ) const;
private:
- QColor mColor;
+ TQColor mColor;
};
//===================================================================================
- class FontListItem : public QListBoxText {
+ class FontListItem : public TQListBoxText {
public:
- FontListItem( const QString &name, const QFont & );
+ FontListItem( const TQString &name, const TQFont & );
~FontListItem();
- const QFont& font() { return f_ont; }
- void setFont( const QFont &);
+ const TQFont& font() { return f_ont; }
+ void setFont( const TQFont &);
protected:
- virtual void paint( QPainter * );
- virtual int width( const QListBox * ) const;
+ virtual void paint( TQPainter * );
+ virtual int width( const TQListBox * ) const;
private:
- QFont f_ont;
- QString fontInfo;
+ TQFont f_ont;
+ TQString fontInfo;
};
//===================================================================================
@@ -186,42 +186,42 @@ protected slots:
//colors
void slotColCheckBoxToggled(bool b);
- void slotColItemSelected(QListBoxItem *); // show color dialog for the entry
+ void slotColItemSelected(TQListBoxItem *); // show color dialog for the entry
void slotColDefaultBtnClicked();
void slotColChangeBtnClicked();
void slotColSelectionChanged();
//fonts
void slotFontCheckBoxToggled(bool b);
- void slotFontItemSelected(QListBoxItem *); // show font dialog for the entry
+ void slotFontItemSelected(TQListBoxItem *); // show font dialog for the entry
void slotFontDefaultBtnClicked();
void slotFontChangeBtnClicked();
void slotFontSelectionChanged();
private:
- QFrame *serverTab;
- QLabel *l_user, *l_secret;
+ TQFrame *serverTab;
+ TQLabel *l_user, *l_secret;
KLineEdit *w_server, *w_user, *w_secret, *w_port;
- QComboBox *w_encoding;
- QCheckBox *w_auth;
+ TQComboBox *w_encoding;
+ TQCheckBox *w_auth;
KIntSpinBox *w_idleHold,*w_timeout,*w_pipesize;
- QFrame *appTab;
+ TQFrame *appTab;
DialogListBox *c_List,
*f_List;
- QCheckBox *c_olorCB,
+ TQCheckBox *c_olorCB,
*f_ontCB;
- QPushButton *c_olDefBtn,
+ TQPushButton *c_olDefBtn,
*c_olChngBtn,
*f_ntDefBtn,
*f_ntChngBtn;
- QFrame *layoutTab;
- QRadioButton *w_layout[3];
+ TQFrame *layoutTab;
+ TQRadioButton *w_layout[3];
- QFrame *otherTab;
- QCheckBox *w_Clipboard, *w_Savehist;
+ TQFrame *otherTab;
+ TQCheckBox *w_Clipboard, *w_Savehist;
KIntSpinBox *w_Maxhist, *w_Maxbrowse, *w_MaxDefinitions;
bool configChanged;
};