summaryrefslogtreecommitdiffstats
path: root/src/commonwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/commonwidget.h')
-rw-r--r--src/commonwidget.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/src/commonwidget.h b/src/commonwidget.h
index 30e2a78..306d634 100644
--- a/src/commonwidget.h
+++ b/src/commonwidget.h
@@ -27,43 +27,43 @@
# include <config.h>
#endif
-#include <qwidget.h>
+#include <ntqwidget.h>
#include "global.h"
// forward class definitions
// =========================
-class KConfig;
-class QCheckBox;
-class QComboBox;
-class QLineEdit;
-class QListBox;
-class QListBoxItem;
-class QPushButton;
-class QRadioButton;
-class QStringList;
+class TDEConfig;
+class TQCheckBox;
+class TQComboBox;
+class TQLineEdit;
+class TQListBox;
+class TQListBoxItem;
+class TQPushButton;
+class TQRadioButton;
+class TQStringList;
// CommonWidget class definition
// =============================
-class CommonWidget : public QWidget
+class CommonWidget : public TQWidget
{ Q_OBJECT
public:
- CommonWidget( QWidget* parent, const char* name = NULL );
+ CommonWidget( TQWidget* parent, const char* name = NULL );
virtual ~CommonWidget( );
void finaliseInitialisation( );
bool getOptions( );
- void readProfile( KConfig* config );
- void saveProfile( KConfig* config );
+ void readProfile( TDEConfig* config );
+ void saveProfile( TDEConfig* config );
void setInitialValues( );
- QString getHostName( ) const;
+ TQString getHostName( ) const;
int hostCurrentItem( ) const { return m_hostCurrentItem; }
- QString host( ) const { return m_host; }
+ TQString host( ) const { return m_host; }
int portRangeCurrentItem( ) const { return m_portRangeCurrentItem; }
- QStringList* portRanges( ) const { return m_portRanges; }
+ TQStringList* portRanges( ) const { return m_portRanges; }
bool portRangesState( ) const { return m_portRangesState; }
bool resovleAlwaysState( ) const { return m_resovleAlwaysState; }
bool resovleDefaultState( ) const { return m_resovleDefaultState; }
@@ -71,11 +71,11 @@ class CommonWidget : public QWidget
signals:
void disableFastScan( );
- void displayDocBook( const QString& );
- void displayHelp( const QString& );
+ void displayDocBook( const TQString& );
+ void displayHelp( const TQString& );
void displayUnknown( );
void optionsDirty( );
- void targetChanged( const QString& );
+ void targetChanged( const TQString& );
public slots:
void slotDisablePortRanges( );
@@ -83,26 +83,26 @@ class CommonWidget : public QWidget
private slots:
void slotHostActivated( int index );
void slotHostButtonClicked( );
- void slotHostTextChanged( const QString& text );
+ void slotHostTextChanged( const TQString& text );
void slotPortRangeActivated( int index );
void slotPortRangeAddClicked( );
void slotPortRangeDeleteClicked( );
void slotPortRangeButtonClicked( );
- void slotPortRangeDoubleClicked( QListBoxItem* item );
+ void slotPortRangeDoubleClicked( TQListBoxItem* item );
void slotPortRangeHighlighted( );
void slotPortRangesClicked( );
- void slotPortRangeTextChanged( const QString& text );
+ void slotPortRangeTextChanged( const TQString& text );
void slotWhatsThisClicked( );
private:
bool buildPortRangesTables( const boolPtr tcpPorts, const boolPtr udpPorts );
void createLayout( );
void enablePortRangeWidgets( );
- void getHosts( QStringList* hosts );
- void getPortRanges( QStringList* portRanges );
+ void getHosts( TQStringList* hosts );
+ void getPortRanges( TQStringList* portRanges );
bool portRangesOverlapping( const ushort portFirst, const ushort portLast );
- bool validatePortRange( QString& text );
- bool validatePortRangeText( QString& text, uint& portFirst, uint& portLast );
+ bool validatePortRange( TQString& text );
+ bool validatePortRangeText( TQString& text, uint& portFirst, uint& portLast );
// protocol indices
// ================
@@ -113,27 +113,27 @@ class CommonWidget : public QWidget
UDPProtocol
};
- QString m_host;
- QPushButton* m_hostButton;
- QComboBox* m_hostComboBox;
+ TQString m_host;
+ TQPushButton* m_hostButton;
+ TQComboBox* m_hostComboBox;
int m_hostCurrentItem;
- QStringList* m_hosts;
- QPushButton* m_portRangeAddButton;
- QPushButton* m_portRangeButton;
- QComboBox* m_portRangeComboBox;
+ TQStringList* m_hosts;
+ TQPushButton* m_portRangeAddButton;
+ TQPushButton* m_portRangeButton;
+ TQComboBox* m_portRangeComboBox;
int m_portRangeCurrentItem;
- QPushButton* m_portRangeDeleteButton;
+ TQPushButton* m_portRangeDeleteButton;
bool m_portRangeIgnoreChange;
- QLineEdit* m_portRangeLineEdit;
- QListBox* m_portRangeListBox;
- QStringList* m_portRanges;
- QCheckBox* m_portRangesCheckBox;
+ TQLineEdit* m_portRangeLineEdit;
+ TQListBox* m_portRangeListBox;
+ TQStringList* m_portRanges;
+ TQCheckBox* m_portRangesCheckBox;
bool m_portRangesState;
- QRadioButton* m_resovleAlwaysRadio;
+ TQRadioButton* m_resovleAlwaysRadio;
bool m_resovleAlwaysState;
- QRadioButton* m_resovleDefaultRadio;
+ TQRadioButton* m_resovleDefaultRadio;
bool m_resovleDefaultState;
- QRadioButton* m_resovleNeverRadio;
+ TQRadioButton* m_resovleNeverRadio;
bool m_resovleNeverState;
};