diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-13 19:30:17 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-13 19:30:17 +0200 |
commit | 357ddeb8afd82d69ef871c146f4fc8f2c67fb17e (patch) | |
tree | dc3ef0e6fedd64f5fb177c114f72e1515a07cd1b /src/scanviewer.h | |
parent | c6cbd71bc169ac0e927e52325dbbbcb506abbc73 (diff) | |
download | klamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.tar.gz klamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.zip |
Conversion Qt3->TQt
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/scanviewer.h')
-rw-r--r-- | src/scanviewer.h | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/src/scanviewer.h b/src/scanviewer.h index ffb8d11..00de43b 100644 --- a/src/scanviewer.h +++ b/src/scanviewer.h @@ -17,22 +17,22 @@ class KPrinter; class KToggleAction; class KURL; -class QLineEdit; -class QComboBox; -class QCheckBox; -class QListBox; -class QListView; -class QListViewItem; -class QPushButton; -class QLabel; +class TQLineEdit; +class TQComboBox; +class TQCheckBox; +class TQListBox; +class TQListView; +class TQListViewItem; +class TQPushButton; +class TQLabel; class KProcIO; class KConfig; class KURLRequester; class KProgress; class K3bJobProgressOSD; class KProgressDialog; -class QDir; -class QGridLayout; +class TQDir; +class TQGridLayout; /** * This class serves as the main window for ScanViewer. It handles the @@ -42,14 +42,14 @@ class QGridLayout; * @author $AUTHOR <$EMAIL> * @version $APP_VERSION */ -class ScanViewer : public QWidget +class ScanViewer : public TQWidget { Q_OBJECT public: /** * Default Constructor */ - ScanViewer(QWidget *parent, const char *name=0); + ScanViewer(TQWidget *parent, const char *name=0); /** * Default Destructor @@ -60,18 +60,18 @@ public: * Use this method to load whatever file/URL you have */ - //void setDirName(QString); - void slotScan(const QStringList & filepattern, int mode, bool recursive, bool dcopscan); + //void setDirName(TQString); + void slotScan(const TQStringList & filepattern, int mode, bool recursive, bool dcopscan); void slotCancel(); void slotStartAgain(); bool scanGoingOn(); protected: /** - * Overridden virtuals for Qt drag 'n drop (XDND) + * Overridden virtuals for TQt drag 'n drop (XDND) */ - /*virtual void dragEnterEvent(QDragEnterEvent *event); - virtual void dropEvent(QDropEvent *event);*/ + /*virtual void dragEnterEvent(TQDragEnterEvent *event); + virtual void dropEvent(TQDropEvent *event);*/ protected: /** @@ -91,19 +91,19 @@ protected: private slots: void slotProg(); - void slotOnItem( QListViewItem * lineitem); + void slotOnItem( TQListViewItem * lineitem); void slotOffItem(); private: void setupAccel(); void setupActions(); - void startProgressDialog( const QString & text ); + void startProgressDialog( const TQString & text ); private: signals: - void itemSelected(QString abs_filename, int line); - void scanFinished(QWidget *); - void scanStartingAgain(QWidget *); + void itemSelected(TQString abs_filename, int line); + void scanFinished(TQWidget *); + void scanStartingAgain(TQWidget *); public slots: @@ -113,68 +113,68 @@ private slots: void childExited(); void resetSysTray(); void receivedOutput(KProcIO *); - //void itemSelected(const QString&); + //void itemSelected(const TQString&); void slotClear(); - void slotRMB( QListViewItem *, const QPoint &, int ); + void slotRMB( TQListViewItem *, const TQPoint &, int ); void slotQuarantineSelected(); void slotVirusPool(); void slotVirusList(); void slotGoogle(); void slotTrendMicro(); void slotCancelScanTime(); - //void patternTextChanged( const QString &); + //void patternTextChanged( const TQString &); private: void processOutput(); void finish(); void getout(); void Quarantine(); void askUser(); - int countFiles( QDir & root); + int countFiles( TQDir & root); //void ScanViewer::startProgress(); - QLineEdit *template_edit; - QComboBox *files_combo, *pattern_combo, *check_combo; + TQLineEdit *template_edit; + TQComboBox *files_combo, *pattern_combo, *check_combo; //KComboBox *dir_combo; - QCheckBox *recursive_box; - QCheckBox *recursive_box2; - QListView *resultview; - QPushButton *search_button, *cancel_button; - QLabel *status_label, *status2_label,*matches_label,*matches2_label; + TQCheckBox *recursive_box; + TQCheckBox *recursive_box2; + TQListView *resultview; + TQPushButton *search_button, *cancel_button; + TQLabel *status_label, *status2_label,*matches_label,*matches2_label; KProcIO *childproc; - QString buf; + TQString buf; KConfig* config; - QStringList lastSearchItems; - QStringList lastScanPaths; - QStringList lastQuarItems; - QStringList QuarantineList; + TQStringList lastSearchItems; + TQStringList lastScanPaths; + TQStringList lastQuarItems; + TQStringList QuarantineList; bool errorsEncountered; - QPopupMenu* menu; - QPushButton* adv_options; - QPushButton* schedule; - QString selectedVirus; + TQPopupMenu* menu; + TQPushButton* adv_options; + TQPushButton* schedule; + TQString selectedVirus; bool multiScan; - QString urlsToScan; + TQString urlsToScan; bool scanInProgress; bool scanCancelled; - QString prevdir; - QStringList listOfUrlsToScan; + TQString prevdir; + TQStringList listOfUrlsToScan; bool multi_recursive; int m_mode; - QStringList m_filepattern; + TQStringList m_filepattern; bool m_recursive; int filesscanned; int cnt; KProgressDialog* progress; KProgress* prog; K3bJobProgressOSD* progosd; - QBoxLayout *status2_layout; - QFrame *status2_frame; - QGridLayout *layout; + TQBoxLayout *status2_layout; + TQFrame *status2_frame; + TQGridLayout *layout; KProgressDialog *progressDialog; - QTimer *timer; - QPushButton* scan_time; + TQTimer *timer; + TQPushButton* scan_time; bool calculateTime; bool showProgress; - QFrame *status_frame; + TQFrame *status_frame; }; #endif // _SCANVIEWER_H_ |