summaryrefslogtreecommitdiffstats
path: root/src/idsuggestionswidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/idsuggestionswidget.h')
-rw-r--r--src/idsuggestionswidget.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/src/idsuggestionswidget.h b/src/idsuggestionswidget.h
index 103029c..dc2a675 100644
--- a/src/idsuggestionswidget.h
+++ b/src/idsuggestionswidget.h
@@ -20,24 +20,24 @@
#ifndef KBIBTEXIDSUGGESTIONSWIDGET_H
#define KBIBTEXIDSUGGESTIONSWIDGET_H
-#include <qwidget.h>
-#include <qdialog.h>
+#include <ntqwidget.h>
+#include <ntqdialog.h>
-class QCheckBox;
-class QScrollView;
-class QSpinBox;
+class TQCheckBox;
+class TQScrollView;
+class TQSpinBox;
class KComboBox;
class KLineEdit;
class KPushButton;
namespace KBibTeX
{
- class IdSuggestionComponent: public QFrame
+ class IdSuggestionComponent: public TQFrame
{
Q_OBJECT
public:
- IdSuggestionComponent( const QString& title, QWidget *parent );
- virtual QString text() const = 0;
+ IdSuggestionComponent( const TQString& title, TQWidget *parent );
+ virtual TQString text() const = 0;
void setEnableUpDown( bool enableUp, bool enableDown );
signals:
@@ -46,11 +46,11 @@ namespace KBibTeX
void deleted();
protected:
- QWidget *moveWidgets( QWidget *parent );
+ TQWidget *moveWidgets( TQWidget *parent );
bool m_toBeDeleted;
- QString m_title;
- QWidget *m_parent;
+ TQString m_title;
+ TQWidget *m_parent;
KPushButton *m_pushButtonDel;
KPushButton *m_pushButtonUp;
KPushButton *m_pushButtonDown;
@@ -64,32 +64,32 @@ namespace KBibTeX
class IdSuggestionComponentAuthor: public IdSuggestionComponent
{
public:
- IdSuggestionComponentAuthor( const QString &text, QWidget *parent );
- QString text() const;
+ IdSuggestionComponentAuthor( const TQString &text, TQWidget *parent );
+ TQString text() const;
protected:
KComboBox *m_comboBoxWhichAuthors;
KComboBox *m_comboBoxCasing;
KLineEdit *m_lineEditInBetween;
- QSpinBox *m_spinBoxLen;
+ TQSpinBox *m_spinBoxLen;
};
class IdSuggestionComponentTitle: public IdSuggestionComponent
{
public:
- IdSuggestionComponentTitle( const QString &text, QWidget *parent );
- QString text() const;
+ IdSuggestionComponentTitle( const TQString &text, TQWidget *parent );
+ TQString text() const;
protected:
- QCheckBox *m_checkBoxRemoveSmallWords;
+ TQCheckBox *m_checkBoxRemoveSmallWords;
KComboBox *m_comboBoxCasing;
KLineEdit *m_lineEditInBetween;
- QSpinBox *m_spinBoxLen;
+ TQSpinBox *m_spinBoxLen;
};
class IdSuggestionComponentYear: public IdSuggestionComponent
{
public:
- IdSuggestionComponentYear( const QString &text, QWidget *parent );
- QString text() const;
+ IdSuggestionComponentYear( const TQString &text, TQWidget *parent );
+ TQString text() const;
protected:
KComboBox *m_comboBoxDigits;
};
@@ -97,55 +97,55 @@ namespace KBibTeX
class IdSuggestionComponentText: public IdSuggestionComponent
{
public:
- IdSuggestionComponentText( const QString &text, QWidget *parent );
- QString text() const;
+ IdSuggestionComponentText( const TQString &text, TQWidget *parent );
+ TQString text() const;
protected:
KLineEdit *m_lineEditInBetween;
};
- class IdSuggestionsScrollView : public QScrollView
+ class IdSuggestionsScrollView : public TQScrollView
{
Q_OBJECT
public:
- IdSuggestionsScrollView( QWidget *parent, const char*name = NULL );
+ IdSuggestionsScrollView( TQWidget *parent, const char*name = NULL );
~IdSuggestionsScrollView();
- void setMainWidget( QWidget *widget ) {m_widget = widget;}
+ void setMainWidget( TQWidget *widget ) {m_widget = widget;}
protected:
- void viewportResizeEvent( QResizeEvent * );
+ void viewportResizeEvent( TQResizeEvent * );
private:
- QWidget *m_widget;
+ TQWidget *m_widget;
};
/**
@author Thomas Fischer <[email protected]>
*/
- class IdSuggestionsWidget : public QWidget
+ class IdSuggestionsWidget : public TQWidget
{
Q_OBJECT
public:
~IdSuggestionsWidget();
int numComponents();
- static QDialog::DialogCode execute( QString &formatStr, QWidget *parent = 0, const char *name = 0 );
+ static TQDialog::DialogCode execute( TQString &formatStr, TQWidget *parent = 0, const char *name = 0 );
protected:
- IdSuggestionsWidget( const QString &formatStr, KDialogBase *parent, const char *name = 0 );
+ IdSuggestionsWidget( const TQString &formatStr, KDialogBase *parent, const char *name = 0 );
- QString m_originalFormatStr;
+ TQString m_originalFormatStr;
int m_componentCount;
- void reset( const QString& formatStr );
- void apply( QString& formatStr );
+ void reset( const TQString& formatStr );
+ void apply( TQString& formatStr );
private:
- static QString exampleBibTeXEntry;
+ static TQString exampleBibTeXEntry;
BibTeX::Entry *m_example;
IdSuggestionsScrollView *m_scrollViewComponents;
- QLabel *m_labelExample;
- QWidget *m_listOfComponents;
+ TQLabel *m_labelExample;
+ TQWidget *m_listOfComponents;
KPushButton *m_pushButtonAdd;
KDialogBase *m_parent;