diff options
Diffstat (limited to 'krusader/UserAction/kraction.h')
-rw-r--r-- | krusader/UserAction/kraction.h | 91 |
1 files changed, 47 insertions, 44 deletions
diff --git a/krusader/UserAction/kraction.h b/krusader/UserAction/kraction.h index 2d8b81b..dec91e1 100644 --- a/krusader/UserAction/kraction.h +++ b/krusader/UserAction/kraction.h @@ -19,10 +19,10 @@ #include "kractionbase.h" class UserActionProperties; -class QTextEdit; +class TQTextEdit; class KActionCollection; -class QDomElement; -class QDomDocument; +class TQDomElement; +class TQDomDocument; /** * This subclass of KAction extends it with an individual executor and a struct UserActionProperties. It is used to integrate useractions into KDE's KAction-System @@ -30,8 +30,9 @@ class QDomDocument; */ class KrAction: public KAction, public KrActionBase { Q_OBJECT + TQ_OBJECT public: - KrAction( KActionCollection *parent, const char* name ); + KrAction( KActionCollection *tqparent, const char* name ); ~KrAction(); /** @@ -41,22 +42,22 @@ class KrAction: public KAction, public KrActionBase { */ bool isAvailable( const KURL& currentURL ); - bool xmlRead( const QDomElement& element ); - QDomElement xmlDump( QDomDocument& doc ) const; + bool xmlRead( const TQDomElement& element ); + TQDomElement xmlDump( TQDomDocument& doc ) const; void setName( const char* ) { /* empty reimplementation to prevent a name-change */ }; - QString category() const { return _category; }; - void setCategory( const QString& category ) { _category = category; }; + TQString category() const { return _category; }; + void setCategory( const TQString& category ) { _category = category; }; - QString command() const { return _command; }; - void setCommand( const QString& command ) { _command = command; }; + TQString command() const { return _command; }; + void setCommand( const TQString& command ) { _command = command; }; - QString user() const { return _user; }; - void setUser( const QString& user ) { _user = user; }; + TQString user() const { return _user; }; + void setUser( const TQString& user ) { _user = user; }; - QString startpath() const { return _startpath; }; - void setStartpath( const QString& startpath ) { _startpath = startpath; }; + TQString startpath() const { return _startpath; }; + void setStartpath( const TQString& startpath ) { _startpath = startpath; }; ExecType execType() const { return _execType; }; void setExecType( ExecType execType ) { _execType = execType; }; @@ -67,23 +68,23 @@ class KrAction: public KAction, public KrActionBase { bool confirmExecution() const { return _confirmExecution; }; void setConfirmExecution(const bool& confirmExecution) { _confirmExecution = confirmExecution; }; - QStringList showonlyProtocol() const { return _showonlyProtocol; }; - void setShowonlyProtocol( const QStringList& showonlyProtocol ) { _showonlyProtocol = showonlyProtocol; }; + TQStringList showonlyProtocol() const { return _showonlyProtocol; }; + void setShowonlyProtocol( const TQStringList& showonlyProtocol ) { _showonlyProtocol = showonlyProtocol; }; - QStringList showonlyPath() const { return _showonlyPath; }; - void setShowonlyPath( const QStringList& showonlyPath ) { _showonlyPath = showonlyPath; }; + TQStringList showonlyPath() const { return _showonlyPath; }; + void setShowonlyPath( const TQStringList& showonlyPath ) { _showonlyPath = showonlyPath; }; - QStringList showonlyMime() const { return _showonlyMime; }; - void setShowonlyMime( const QStringList& showonlyMime ) { _showonlyMime = showonlyMime; }; + TQStringList showonlyMime() const { return _showonlyMime; }; + void setShowonlyMime( const TQStringList& showonlyMime ) { _showonlyMime = showonlyMime; }; - QStringList showonlyFile() const { return _showonlyFile; }; - void setShowonlyFile( const QStringList& showonlyFile ) { _showonlyFile = showonlyFile; }; + TQStringList showonlyFile() const { return _showonlyFile; }; + void setShowonlyFile( const TQStringList& showonlyFile ) { _showonlyFile = showonlyFile; }; bool doSubstitution() const { return true; } - QString text() const { + TQString text() const { return KAction::text(); } @@ -94,35 +95,36 @@ class KrAction: public KAction, public KrActionBase { private: - void readCommand( const QDomElement& element ); - QDomElement dumpCommand( QDomDocument& doc ) const; + void readCommand( const TQDomElement& element ); + TQDomElement dumpCommand( TQDomDocument& doc ) const; - void readAvailability( const QDomElement& element ); - QDomElement dumpAvailability( QDomDocument& doc ) const; + void readAvailability( const TQDomElement& element ); + TQDomElement dumpAvailability( TQDomDocument& doc ) const; - QString _category; - QString _command; - QString _user; - QString _startpath; + TQString _category; + TQString _command; + TQString _user; + TQString _startpath; ExecType _execType; bool _acceptURLs; bool _confirmExecution; - QStringList _showonlyProtocol; - QStringList _showonlyPath; - QStringList _showonlyMime; - QStringList _showonlyFile; + TQStringList _showonlyProtocol; + TQStringList _showonlyPath; + TQStringList _showonlyMime; + TQStringList _showonlyFile; }; -class QFont; +class TQFont; /** * This displays the output of a process * @author Shie Erlich, Jonas Bähr */ class KrActionProcDlg: public KDialogBase { Q_OBJECT + TQ_OBJECT public: - KrActionProcDlg( QString caption, bool enableStderr = false, QWidget *parent = 0 ); + KrActionProcDlg( TQString caption, bool enableStderr = false, TQWidget *tqparent = 0 ); protected slots: void addStderr( KProcess *proc, char *buffer, int buflen ); @@ -131,8 +133,8 @@ class KrActionProcDlg: public KDialogBase { void slotUser1(); ///< This is used to save the buffer to disc private: - QTextEdit *_stdout, *_stderr, *_currentTextEdit; - QFont normalFont, fixedFont; + TQTextEdit *_stdout, *_stderr, *_currentTextEdit; + TQFont normalFont, fixedFont; private slots: void currentTextEditChanged(); }; @@ -142,14 +144,15 @@ class KrActionProcDlg: public KDialogBase { * @author Shie Erlich, Jonas Bähr * @todo jonas: call a list of commands separately (I began it but it doesn't work) */ -class KrActionProc: public QObject { +class KrActionProc: public TQObject { Q_OBJECT + TQ_OBJECT public: KrActionProc( KrActionBase* action ); virtual ~KrActionProc(); - void start( QString cmdLine ); - void start( QStringList cmdLineList ); + void start( TQString cmdLine ); + void start( TQStringList cmdLineList ); protected slots: void kill() { _proc->kill( SIGINT ); } @@ -158,8 +161,8 @@ class KrActionProc: public QObject { private: KrActionBase* _action; KProcess *_proc; - QString _stdout; - QString _stderr; + TQString _stdout; + TQString _stderr; KrActionProcDlg *_output; }; |