summaryrefslogtreecommitdiffstats
path: root/korn/account_input.h
diff options
context:
space:
mode:
Diffstat (limited to 'korn/account_input.h')
-rw-r--r--korn/account_input.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/korn/account_input.h b/korn/account_input.h
index 80f98903..0f7f2e23 100644
--- a/korn/account_input.h
+++ b/korn/account_input.h
@@ -30,7 +30,7 @@ class KURLRequester;
class QComboBox;
class QCheckBox;
-#include <qmap.h>
+#include <tqmap.h>
/**
* This classe contains methods to use in the creation of the protocol configuration box.
@@ -44,7 +44,7 @@ public:
*
* @param configName The name as the information is stored in the configuration-file.
*/
- AccountInput( const QString& configName );
+ AccountInput( const TQString& configName );
/**
* Destructor
*/
@@ -55,20 +55,20 @@ public:
* possible to make a left label and a right input box.
* @return The pointer to the widget.
*/
- virtual QWidget* leftWidget() = 0;
+ virtual TQWidget* leftWidget() = 0;
/**
* Implementations should return the right widget. In the configuration, it is
* possible to make a left label and a right input box.
* @return The pointer to the widget.
*/
- virtual QWidget* rightWidget() = 0;
+ virtual TQWidget* rightWidget() = 0;
/**
* This function return the config name. This is used for stored an retrieving information.
*
* @return The configName as used for this config field.
*/
- QString configName() const;
+ TQString configName() const;
/**
* Return the value of the configuration object. In most cases, this is the value the user typed in.
@@ -76,16 +76,16 @@ public:
*
* @return The value of the object
*/
- virtual QString value() const = 0;
+ virtual TQString value() const = 0;
/**
* Implementation should edit there widget such that value() would return the parameter.
*
* @param value The value that the object must get.
*/
- virtual void setValue( const QString& value ) = 0;
+ virtual void setValue( const TQString& value ) = 0;
protected:
- QString *_configName;
+ TQString *_configName;
};
/**
@@ -112,7 +112,7 @@ public:
* @param defaul The default value of this object
* @param configName The name it has in the configuration box.
*/
- TextInput( QWidget *parent, const QString& title, Type type, const QString& defaul, const QString& configName );
+ TextInput( TQWidget *parent, const TQString& title, Type type, const TQString& defaul, const TQString& configName );
/**
* Constructor. Use this one if you want to ensure a number is inserted.
*
@@ -123,7 +123,7 @@ public:
* @param defaul The default value of this object
* @param configName The name it has in the configuration box.
*/
- TextInput( QWidget *parent, const QString& title, int min, int max, const QString& defaul, const QString& configName );
+ TextInput( TQWidget *parent, const TQString& title, int min, int max, const TQString& defaul, const TQString& configName );
/**
* Destructor
*/
@@ -133,25 +133,25 @@ public:
* Returns a pointer to the label.
* @return A pointer to the label
*/
- virtual QWidget* leftWidget() { return (QWidget*)_left; }
+ virtual TQWidget* leftWidget() { return (TQWidget*)_left; }
/**
* Returns a pointer to the KLineEdit.
* @return A pointer to the KLineEdit
*/
- virtual QWidget* rightWidget() { return (QWidget*)_right; }
+ virtual TQWidget* rightWidget() { return (TQWidget*)_right; }
/**
* The value of the lineedit.
* @return The value of the lineedit.
*/
- virtual QString value() const;
+ virtual TQString value() const;
/**
* This function sets the text of the edit box.
* @param value The value to appear in the lineedit box.
*/
- virtual void setValue( const QString& value );
+ virtual void setValue( const TQString& value );
private:
- QLabel *_left;
+ TQLabel *_left;
KLineEdit *_right;
};
@@ -168,7 +168,7 @@ public:
* @param defaul The default value
* @param configName The name of the configuration entry
*/
- URLInput( QWidget *parent, const QString& title, const QString& defaul, const QString& configName );
+ URLInput( TQWidget *parent, const TQString& title, const TQString& defaul, const TQString& configName );
/**
* Destructor
*/
@@ -178,26 +178,26 @@ public:
* This return a pointer to the label of this object
* @return A pointer to the label of this object
*/
- virtual QWidget* leftWidget() { return (QWidget*)_left; }
+ virtual TQWidget* leftWidget() { return (TQWidget*)_left; }
/**
* This return a pointer to the KURLRequestor of this object
* @return A pointer to the KURLRequestor of this object
*/
- virtual QWidget* rightWidget() { return (QWidget*)_right; }
+ virtual TQWidget* rightWidget() { return (TQWidget*)_right; }
/**
* This function returns the url as given in the KURLRequestor
* @return The currently selected url
*/
- virtual QString value() const;
+ virtual TQString value() const;
/**
* Sets the currently selected url
* @param value The url to be set.
*/
- virtual void setValue( const QString& );
+ virtual void setValue( const TQString& );
private:
- QLabel *_left;
+ TQLabel *_left;
KURLRequester *_right;
};
@@ -217,8 +217,8 @@ public:
* @param default The default value of the combo box.
* @param configName The name in which the option is saved.
*/
- ComboInput( QWidget *parent, const QString& title, const QMap<QString,QString>& list,
- const QString& defaul, const QString& configName );
+ ComboInput( TQWidget *parent, const TQString& title, const TQMap<TQString,TQString>& list,
+ const TQString& defaul, const TQString& configName );
/**
* Destructor
*/
@@ -228,29 +228,29 @@ public:
* The left widget (a label with the title on it)
* @return A pointer to the label of this object.
*/
- virtual QWidget* leftWidget() { return (QWidget*)_left; }
+ virtual TQWidget* leftWidget() { return (TQWidget*)_left; }
/**
* The right widget (the combo box itselfs)
* @return A pointer to the combo box of this object
*/
- virtual QWidget* rightWidget() { return (QWidget*)_right; }
+ virtual TQWidget* rightWidget() { return (TQWidget*)_right; }
/**
* Return the value of the currently selected item
* @return The value of the currently selected item
*/
- virtual QString value() const;
+ virtual TQString value() const;
/**
* This function sets the combo box to an item which has @p value as value.
*
* @param value The value to be searched
*/
- virtual void setValue( const QString& value );
+ virtual void setValue( const TQString& value );
private:
- QLabel *_left;
- QComboBox *_right;
- QMap< QString, QString > *_list;
+ TQLabel *_left;
+ TQComboBox *_right;
+ TQMap< TQString, TQString > *_list;
};
@@ -269,7 +269,7 @@ public:
* @param defaul The default value ("true" for checked, "false" otherwise")
* @param configName The name of the configuration entry of this object
*/
- CheckboxInput( QWidget *parent, const QString& title, const QString& defaul, const QString& configName );
+ CheckboxInput( TQWidget *parent, const TQString& title, const TQString& defaul, const TQString& configName );
/**
* Destructor
*/
@@ -280,19 +280,19 @@ public:
*
* @return 0
*/
- virtual QWidget* leftWidget() { return 0; }
+ virtual TQWidget* leftWidget() { return 0; }
/**
* This function returns the checkbox.
* @return A pointer to the checkbox.
*/
- virtual QWidget* rightWidget() { return (QWidget*)_right; }
+ virtual TQWidget* rightWidget() { return (TQWidget*)_right; }
/**
* This gives the value of the checkbox: "true" if checked, "false" otherwise.
*
* @return "true" if the checkbox is checked, "false" otherwise.
*/
- virtual QString value() const;
+ virtual TQString value() const;
/**
* This function can change the state of the checkbox.
* It can check or uncheck it.
@@ -300,10 +300,10 @@ public:
* @param value If this parameter is "true", the checkbox gets checked,
* if it is "false", the checkbox get unchecked.
*/
- virtual void setValue( const QString& value );
+ virtual void setValue( const TQString& value );
private:
- QCheckBox *_right;
+ TQCheckBox *_right;
};
#endif