summaryrefslogtreecommitdiffstats
path: root/khotkeys/shared/actions.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /khotkeys/shared/actions.h
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/shared/actions.h')
-rw-r--r--khotkeys/shared/actions.h92
1 files changed, 46 insertions, 46 deletions
diff --git a/khotkeys/shared/actions.h b/khotkeys/shared/actions.h
index 5295d5be9..828bbdb70 100644
--- a/khotkeys/shared/actions.h
+++ b/khotkeys/shared/actions.h
@@ -12,9 +12,9 @@
#define _ACTIONS_H_
-#include <qstring.h>
-#include <qptrlist.h>
-#include <qtimer.h>
+#include <tqstring.h>
+#include <tqptrlist.h>
+#include <tqtimer.h>
#include <kservice.h>
@@ -37,7 +37,7 @@ class KDE_EXPORT Action
Action( KConfig& cfg_P, Action_data* data_P );
virtual ~Action();
virtual void execute() = 0;
- virtual QString description() const = 0;
+ virtual TQString description() const = 0;
virtual void cfg_write( KConfig& cfg_P ) const;
virtual Action* copy( Action_data* data_P ) const = 0;
static Action* create_cfg_read( KConfig& cfg_P, Action_data* data_P );
@@ -47,16 +47,16 @@ class KDE_EXPORT Action
};
class KDE_EXPORT Action_list
- : public QPtrList< Action >
+ : public TQPtrList< Action >
{
public:
- Action_list( const QString& comment_P ); // CHECKME nebo i data ?
+ Action_list( const TQString& comment_P ); // CHECKME nebo i data ?
Action_list( KConfig& cfg_P, Action_data* data_P );
void cfg_write( KConfig& cfg_P ) const;
- typedef QPtrListIterator< Action > Iterator;
- const QString& comment() const;
+ typedef TQPtrListIterator< Action > Iterator;
+ const TQString& comment() const;
private:
- QString _comment;
+ TQString _comment;
KHOTKEYS_DISABLE_COPY( Action_list );
};
@@ -65,17 +65,17 @@ class KDE_EXPORT Command_url_action
{
typedef Action base;
public:
- Command_url_action( Action_data* data_P, const QString& command_url_P );
+ Command_url_action( Action_data* data_P, const TQString& command_url_P );
Command_url_action( KConfig& cfg_P, Action_data* data_P );
virtual void cfg_write( KConfig& cfg_P ) const;
virtual void execute();
- virtual QString description() const;
- const QString& command_url() const;
+ virtual TQString description() const;
+ const TQString& command_url() const;
virtual Action* copy( Action_data* data_P ) const;
protected:
- QTimer timeout;
+ TQTimer timeout;
private:
- QString _command_url;
+ TQString _command_url;
};
class KDE_EXPORT Menuentry_action
@@ -83,11 +83,11 @@ class KDE_EXPORT Menuentry_action
{
typedef Command_url_action base;
public:
- Menuentry_action( Action_data* data_P, const QString& menuentry_P );
+ Menuentry_action( Action_data* data_P, const TQString& menuentry_P );
Menuentry_action( KConfig& cfg_P, Action_data* data_P );
virtual void cfg_write( KConfig& cfg_P ) const;
virtual void execute();
- virtual QString description() const;
+ virtual TQString description() const;
virtual Action* copy( Action_data* data_P ) const;
KService::Ptr service() const;
private:
@@ -99,22 +99,22 @@ class KDE_EXPORT Dcop_action
{
typedef Action base;
public:
- Dcop_action( Action_data* data_P, const QString& app_P, const QString& obj_P,
- const QString& call_P, const QString& args_P );
+ Dcop_action( Action_data* data_P, const TQString& app_P, const TQString& obj_P,
+ const TQString& call_P, const TQString& args_P );
Dcop_action( KConfig& cfg_P, Action_data* data_P );
virtual void cfg_write( KConfig& cfg_P ) const;
virtual void execute();
- const QString& remote_application() const;
- const QString& remote_object() const;
- const QString& called_function() const;
- const QString& arguments() const;
- virtual QString description() const;
+ const TQString& remote_application() const;
+ const TQString& remote_object() const;
+ const TQString& called_function() const;
+ const TQString& arguments() const;
+ virtual TQString description() const;
virtual Action* copy( Action_data* data_P ) const;
private:
- QString app; // CHECKME QCString ?
- QString obj;
- QString call;
- QString args;
+ TQString app; // CHECKME TQCString ?
+ TQString obj;
+ TQString call;
+ TQString args;
};
class KDE_EXPORT Keyboard_input_action
@@ -122,22 +122,22 @@ class KDE_EXPORT Keyboard_input_action
{
typedef Action base;
public:
- Keyboard_input_action( Action_data* data_P, const QString& input_P,
+ Keyboard_input_action( Action_data* data_P, const TQString& input_P,
const Windowdef_list* dest_window_P, bool active_window_P );
Keyboard_input_action( KConfig& cfg_P, Action_data* data_P );
virtual ~Keyboard_input_action();
virtual void cfg_write( KConfig& cfg_P ) const;
virtual void execute();
- const QString& input() const;
+ const TQString& input() const;
// send to specific window: dest_window != NULL
// send to active window: dest_window == NULL && activeWindow() == true
// send to action window: dest_window == NULL && activeWindow() == false
const Windowdef_list* dest_window() const;
bool activeWindow() const;
- virtual QString description() const;
+ virtual TQString description() const;
virtual Action* copy( Action_data* data_P ) const;
private:
- QString _input;
+ TQString _input;
const Windowdef_list* _dest_window;
bool _active_window;
};
@@ -153,7 +153,7 @@ class KDE_EXPORT Activate_window_action
virtual void cfg_write( KConfig& cfg_P ) const;
virtual void execute();
const Windowdef_list* window() const;
- virtual QString description() const;
+ virtual TQString description() const;
virtual Action* copy( Action_data* data_P ) const;
private:
const Windowdef_list* _window;
@@ -185,14 +185,14 @@ Action::~Action()
// Action_list
inline
-Action_list::Action_list( const QString& comment_P )
- : QPtrList< Action >(), _comment( comment_P )
+Action_list::Action_list( const TQString& comment_P )
+ : TQPtrList< Action >(), _comment( comment_P )
{
setAutoDelete( true );
}
inline
-const QString& Action_list::comment() const
+const TQString& Action_list::comment() const
{
return _comment;
}
@@ -200,13 +200,13 @@ const QString& Action_list::comment() const
// Command_url_action
inline
-Command_url_action::Command_url_action( Action_data* data_P, const QString& command_url_P )
+Command_url_action::Command_url_action( Action_data* data_P, const TQString& command_url_P )
: Action( data_P ), _command_url( command_url_P )
{
}
inline
-const QString& Command_url_action::command_url() const
+const TQString& Command_url_action::command_url() const
{
return _command_url;
}
@@ -214,7 +214,7 @@ const QString& Command_url_action::command_url() const
// Menuentry_action
inline
-Menuentry_action::Menuentry_action( Action_data* data_P, const QString& menuentry_P )
+Menuentry_action::Menuentry_action( Action_data* data_P, const TQString& menuentry_P )
: Command_url_action( data_P, menuentry_P )
{
}
@@ -228,32 +228,32 @@ Menuentry_action::Menuentry_action( KConfig& cfg_P, Action_data* data_P )
// DCOP_action
inline
-Dcop_action::Dcop_action( Action_data* data_P, const QString& app_P, const QString& obj_P,
- const QString& call_P, const QString& args_P )
+Dcop_action::Dcop_action( Action_data* data_P, const TQString& app_P, const TQString& obj_P,
+ const TQString& call_P, const TQString& args_P )
: Action( data_P ), app( app_P ), obj( obj_P ), call( call_P ), args( args_P )
{
}
inline
-const QString& Dcop_action::remote_application() const
+const TQString& Dcop_action::remote_application() const
{
return app;
}
inline
-const QString& Dcop_action::remote_object() const
+const TQString& Dcop_action::remote_object() const
{
return obj;
}
inline
-const QString& Dcop_action::called_function() const
+const TQString& Dcop_action::called_function() const
{
return call;
}
inline
-const QString& Dcop_action::arguments() const
+const TQString& Dcop_action::arguments() const
{
return args;
}
@@ -261,14 +261,14 @@ const QString& Dcop_action::arguments() const
// Keyboard_input_action
inline
-Keyboard_input_action::Keyboard_input_action( Action_data* data_P, const QString& input_P,
+Keyboard_input_action::Keyboard_input_action( Action_data* data_P, const TQString& input_P,
const Windowdef_list* dest_window_P, bool active_window_P )
: Action( data_P ), _input( input_P ), _dest_window( dest_window_P ), _active_window( active_window_P )
{
}
inline
-const QString& Keyboard_input_action::input() const
+const TQString& Keyboard_input_action::input() const
{
return _input;
}