summaryrefslogtreecommitdiffstats
path: root/khotkeys
diff options
context:
space:
mode:
Diffstat (limited to 'khotkeys')
-rw-r--r--khotkeys/CMakeL10n.txt6
-rw-r--r--khotkeys/TODO2
-rw-r--r--khotkeys/app/CMakeLists.txt8
-rw-r--r--khotkeys/app/app.cpp117
-rw-r--r--khotkeys/app/app.h4
-rw-r--r--khotkeys/app/kded.cpp32
-rw-r--r--khotkeys/app/kded.h8
-rw-r--r--khotkeys/app/khotkeys.desktop13
-rw-r--r--khotkeys/arts/soundrecorder_arts.cpp6
-rw-r--r--khotkeys/arts/voicerecorder_arts.cpp2
-rw-r--r--khotkeys/data/trinity2b1.khotkeys1
-rw-r--r--khotkeys/kcontrol/CMakeL10n.txt7
-rw-r--r--khotkeys/kcontrol/CMakeLists.txt9
-rw-r--r--khotkeys/kcontrol/Makefile.am7
-rw-r--r--khotkeys/kcontrol/action_group_tab.cpp20
-rw-r--r--khotkeys/kcontrol/action_list_widget.cpp20
-rw-r--r--khotkeys/kcontrol/actions_listview_widget.cpp8
-rw-r--r--khotkeys/kcontrol/command_url_widget.cpp4
-rw-r--r--khotkeys/kcontrol/condition_list_widget.cpp22
-rw-r--r--khotkeys/kcontrol/dcop_widget.cpp16
-rw-r--r--khotkeys/kcontrol/general_settings_tab.cpp13
-rw-r--r--khotkeys/kcontrol/general_settings_tab.h2
-rw-r--r--khotkeys/kcontrol/general_tab.cpp32
-rw-r--r--khotkeys/kcontrol/gesture_triggers_tab.cpp16
-rw-r--r--khotkeys/kcontrol/gesturerecordpage.cpp8
-rw-r--r--khotkeys/kcontrol/gestures_settings_tab.cpp12
-rw-r--r--khotkeys/kcontrol/init.cpp47
-rw-r--r--khotkeys/kcontrol/kcmkhotkeys.cpp51
-rw-r--r--khotkeys/kcontrol/kcmkhotkeys.h15
-rw-r--r--khotkeys/kcontrol/keyboard_input_widget.cpp20
-rw-r--r--khotkeys/kcontrol/khotkeys.desktop3
-rw-r--r--khotkeys/kcontrol/main_buttons_widget.cpp20
-rw-r--r--khotkeys/kcontrol/menuedit.cpp35
-rw-r--r--khotkeys/kcontrol/menuedit.h16
-rw-r--r--khotkeys/kcontrol/menuentry_widget.cpp4
-rw-r--r--khotkeys/kcontrol/tab_widget.cpp14
-rw-r--r--khotkeys/kcontrol/triggers_tab.cpp36
-rw-r--r--khotkeys/kcontrol/ui/action_group_tab_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/action_list_widget_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/command_url_widget_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/condition_list_widget_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/dcop_widget_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/general_settings_tab_ui.ui12
-rw-r--r--khotkeys/kcontrol/ui/general_tab_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/gesture_triggers_tab_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/keyboard_input_widget_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/menuentry_widget_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/triggers_tab_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/voice_input_widget_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/windowdef_list_widget_ui.ui4
-rw-r--r--khotkeys/kcontrol/ui/windowdef_simple_widget_ui.ui4
-rw-r--r--khotkeys/kcontrol/voice_settings_tab.cpp2
-rw-r--r--khotkeys/kcontrol/voicerecorder.cpp6
-rw-r--r--khotkeys/kcontrol/voicerecordpage.cpp8
-rw-r--r--khotkeys/kcontrol/waiting_widget.cpp4
-rw-r--r--khotkeys/kcontrol/window_trigger_widget.cpp16
-rw-r--r--khotkeys/kcontrol/windowdef_list_widget.cpp26
-rw-r--r--khotkeys/kcontrol/windowdef_simple_widget.cpp52
-rw-r--r--khotkeys/kcontrol/windowselector.cpp8
-rw-r--r--khotkeys/shared/action_data.cpp10
-rw-r--r--khotkeys/shared/action_data.h16
-rw-r--r--khotkeys/shared/actions.cpp12
-rw-r--r--khotkeys/shared/actions.h16
-rw-r--r--khotkeys/shared/conditions.cpp8
-rw-r--r--khotkeys/shared/conditions.h16
-rw-r--r--khotkeys/shared/gestures.cpp16
-rw-r--r--khotkeys/shared/gestures.h6
-rw-r--r--khotkeys/shared/input.cpp10
-rw-r--r--khotkeys/shared/khlistbox.cpp16
-rw-r--r--khotkeys/shared/khlistview.cpp16
-rw-r--r--khotkeys/shared/khlistview.h4
-rw-r--r--khotkeys/shared/khotkeysglobal.cpp2
-rw-r--r--khotkeys/shared/khotkeysglobal.h10
-rw-r--r--khotkeys/shared/settings.cpp6
-rw-r--r--khotkeys/shared/settings.h3
-rw-r--r--khotkeys/shared/sound.h4
-rw-r--r--khotkeys/shared/soundrecorder.h4
-rw-r--r--khotkeys/shared/triggers.cpp20
-rw-r--r--khotkeys/shared/triggers.h14
-rw-r--r--khotkeys/shared/voices.cpp8
-rw-r--r--khotkeys/shared/voices.h4
-rw-r--r--khotkeys/shared/voicesignature.h4
-rw-r--r--khotkeys/shared/windows.cpp8
-rw-r--r--khotkeys/shared/windows.h10
-rw-r--r--khotkeys/update/update.cpp4
85 files changed, 502 insertions, 587 deletions
diff --git a/khotkeys/CMakeL10n.txt b/khotkeys/CMakeL10n.txt
index 9efb3961d..5a4d15337 100644
--- a/khotkeys/CMakeL10n.txt
+++ b/khotkeys/CMakeL10n.txt
@@ -3,3 +3,9 @@
tde_l10n_create_template( "khotkeys" )
tde_l10n_auto_add_subdirectories()
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/khotkeys.desktop/"
+ SOURCES app/khotkeys.desktop kcontrol/khotkeys.desktop
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
diff --git a/khotkeys/TODO b/khotkeys/TODO
index d8e7fd352..00e84a7cc 100644
--- a/khotkeys/TODO
+++ b/khotkeys/TODO
@@ -11,7 +11,7 @@ SOON :
pri modify gestures vymazat stav
nektere simple akce by mely mit i conditions (nebo alespon jedno okno)
QPtrList -> QValueList
-pouzit Q/KApp( nogui ? ) v daemonu ?
+pouzit Q/TDEApp( nogui ? ) v daemonu ?
class Condition + tab 'Windows' -> 'Conditions'
- asi rozdelit Command/URL na Command/URL a SwitchToWindow
- nebo udelat, ze Command_url_action_data ( atd. ) maji jen jednu shortcut a tak, tj. dalsi zjednoduseni UI ?
diff --git a/khotkeys/app/CMakeLists.txt b/khotkeys/app/CMakeLists.txt
index df2bd70db..470fdf1ce 100644
--- a/khotkeys/app/CMakeLists.txt
+++ b/khotkeys/app/CMakeLists.txt
@@ -22,6 +22,14 @@ link_directories(
)
+##### other data ################################
+
+tde_create_translated_desktop(
+ SOURCE khotkeys.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kded
+)
+
+
##### kded_khotkeys (module) ####################
tde_add_kpart( kded_khotkeys AUTOMOC
diff --git a/khotkeys/app/app.cpp b/khotkeys/app/app.cpp
index 27e78d90c..64da17c14 100644
--- a/khotkeys/app/app.cpp
+++ b/khotkeys/app/app.cpp
@@ -16,6 +16,7 @@
#include "app.h"
+#include <dcopclient.h>
#include <tdecmdlineargs.h>
#include <tdeconfig.h>
#include <tdelocale.h>
@@ -38,22 +39,20 @@ namespace KHotKeys
// KhotKeysApp
KHotKeysApp::KHotKeysApp()
- : KUniqueApplication( false, true ), // no styles
+ : TDEUniqueApplication( false, true ), // no styles
delete_helper( new TQObject )
{
init_global_data( true, delete_helper ); // grab keys
- // CHECKME triggery a dalsi vytvaret az tady za inicializaci
actions_root = NULL;
reread_configuration();
}
KHotKeysApp::~KHotKeysApp()
{
- // CHECKME triggery a dalsi rusit uz tady pred cleanupem
delete actions_root;
-// Many global data should be destroyed while the TQApplication object still
-// exists, and therefore 'this' cannot be the parent, as ~Object
-// for 'this' would be called after ~TQApplication - use proxy object
+ // Many global data should be destroyed while the TQApplication object still
+ // exists, and therefore 'this' cannot be the parent, as ~Object()
+ // for 'this' would be called after ~TQApplication() - use proxy object
delete delete_helper;
}
@@ -79,7 +78,7 @@ void KHotKeysApp::reread_configuration()
void KHotKeysApp::quit()
{
- kapp->quit();
+ tdeApp->quit();
}
} // namespace KHotKeys
@@ -92,67 +91,53 @@ using namespace KHotKeys;
static int khotkeys_screen_number = 0;
extern "C"
-int KDE_EXPORT kdemain( int argc, char** argv )
+int TDE_EXPORT kdemain( int argc, char** argv )
+{
+ // Check if khotkeys is already running as a kded module.
+ // In such case just exit.
+ DCOPClient *dcopClient = new DCOPClient;
+ if (!dcopClient->isAttached())
+ {
+ if (!dcopClient->attach())
+ {
+ kdWarning(1217) << "khotkeys [application]: could not register with DCOP. Exiting." << endl;
+ delete dcopClient;
+ return 1;
+ }
+ }
+ TQCString replyType;
+ TQByteArray replyData;
+ if (dcopClient->call("kded", "kded", "loadedModules()",
+ TQByteArray(), replyType, replyData))
+ {
+ if (replyType == "QCStringList")
{
- {
- // multiheaded hotkeys
- TQCString multiHead = getenv("TDE_MULTIHEAD");
- if (multiHead.lower() == "true") {
- Display *dpy = XOpenDisplay(NULL);
- if (! dpy) {
- fprintf(stderr, "%s: FATAL ERROR while trying to open display %s\n",
- argv[0], XDisplayName(NULL));
- exit(1);
- }
-
- int number_of_screens = ScreenCount(dpy);
- khotkeys_screen_number = DefaultScreen(dpy);
- int pos;
- TQCString displayname = XDisplayString(dpy);
- XCloseDisplay(dpy);
- dpy = 0;
-
- if ((pos = displayname.findRev('.')) != -1)
- displayname.remove(pos, 10);
-
- TQCString env;
- if (number_of_screens != 1) {
- for (int i = 0; i < number_of_screens; i++) {
- if (i != khotkeys_screen_number && fork() == 0) {
- khotkeys_screen_number = i;
- // break here because we are the child process, we don't
- // want to fork() anymore
- break;
- }
- }
-
- env.sprintf("DISPLAY=%s.%d", displayname.data(), khotkeys_screen_number);
- if (putenv(strdup(env.data()))) {
- fprintf(stderr,
- "%s: WARNING: unable to set DISPLAY environment variable\n",
- argv[0]);
- perror("putenv()");
- }
- }
- }
- }
-
- TQCString appname;
- if (khotkeys_screen_number == 0)
- appname = "khotkeys";
- else
- appname.sprintf("khotkeys-screen-%d", khotkeys_screen_number);
-
- // no need to i18n these, no GUI
- TDECmdLineArgs::init( argc, argv, appname, I18N_NOOP( "KHotKeys" ),
- I18N_NOOP( "KHotKeys daemon" ), KHOTKEYS_VERSION );
- KUniqueApplication::addCmdLineOptions();
- if( !KHotKeysApp::start()) // already running
- return 0;
- KHotKeysApp app;
- app.disableSessionManagement();
- return app.exec();
+ TQDataStream reply(replyData, IO_ReadOnly);
+ QCStringList modules;
+ reply >> modules;
+ if (modules.contains("khotkeys"))
+ {
+ // khotkeys is already running as a service, do nothing
+ kdWarning(1217) << "khotkeys is already running as a kded module. Exiting." << endl;
+ delete dcopClient;
+ return 2;
+ }
}
+ }
+ delete dcopClient;
+
+ // no need to i18n these, no GUI
+ TDECmdLineArgs::init( argc, argv, "khotkeys", I18N_NOOP( "KHotKeys" ),
+ I18N_NOOP( "KHotKeys daemon" ), KHOTKEYS_VERSION );
+ TDEUniqueApplication::addCmdLineOptions();
+ if( !KHotKeysApp::start()) // already running
+ {
+ return 0;
+ }
+ KHotKeysApp app;
+ app.disableSessionManagement();
+ return app.exec();
+}
#include "app.moc"
diff --git a/khotkeys/app/app.h b/khotkeys/app/app.h
index e0b3566ab..56c590886 100644
--- a/khotkeys/app/app.h
+++ b/khotkeys/app/app.h
@@ -11,7 +11,7 @@
#ifndef _KHOTKEYS_APP_H_
#define _KHOTKEYS_APP_H_
-#include <kuniqueapplication.h>
+#include <tdeuniqueapplication.h>
namespace KHotKeys
{
@@ -19,7 +19,7 @@ namespace KHotKeys
class Action_data_group;
class KHotKeysApp
- : public KUniqueApplication
+ : public TDEUniqueApplication
{
TQ_OBJECT
K_DCOP
diff --git a/khotkeys/app/kded.cpp b/khotkeys/app/kded.cpp
index afbd2bceb..debb08d80 100644
--- a/khotkeys/app/kded.cpp
+++ b/khotkeys/app/kded.cpp
@@ -16,6 +16,7 @@
#include "kded.h"
+#include <dcopclient.h>
#include <tdecmdlineargs.h>
#include <tdeconfig.h>
#include <tdelocale.h>
@@ -34,10 +35,18 @@
#include <voices.h>
extern "C"
-KDE_EXPORT KDEDModule *create_khotkeys( const TQCString& obj )
- {
- return new KHotKeys::KHotKeysModule( obj );
- }
+TDE_EXPORT KDEDModule *create_khotkeys( const TQCString& obj )
+{
+ // Check if khotkeys is already running as a stand alone application.
+ // In such case just exit.
+ if (tdeApp->dcopClient()->isApplicationRegistered("khotkeys"))
+ {
+ kdWarning(1217) << "khotkeys [kded module] is already running as a standalone application. Exiting." << endl;
+ return nullptr;
+ }
+
+ return new KHotKeys::KHotKeysModule( obj );
+}
namespace KHotKeys
{
@@ -47,22 +56,7 @@ namespace KHotKeys
KHotKeysModule::KHotKeysModule( const TQCString& obj )
: KDEDModule( obj )
{
- for( int i = 0;
- i < 5;
- ++i )
- {
- if( kapp->dcopClient()->isApplicationRegistered( "khotkeys" ))
- {
- TQByteArray data, replyData;
- TQCString reply;
- // wait for it to finish
- kapp->dcopClient()->call( "khotkeys*", "khotkeys", "quit()", data, reply, replyData );
- sleep( 1 );
- }
- }
- client.registerAs( "khotkeys", false ); // extra dcop connection (like if it was an app)
init_global_data( true, this ); // grab keys
- // CHECKME triggery a dalsi vytvaret az tady za inicializaci
actions_root = NULL;
reread_configuration();
}
diff --git a/khotkeys/app/kded.h b/khotkeys/app/kded.h
index b2740a3a1..026087abe 100644
--- a/khotkeys/app/kded.h
+++ b/khotkeys/app/kded.h
@@ -12,27 +12,27 @@
#define _KHOTKEYS_KDED_H_
#include <kdedmodule.h>
-#include <dcopclient.h>
namespace KHotKeys
{
class Action_data_group;
-class KHotKeysModule
- : public KDEDModule
+class KHotKeysModule : public KDEDModule
{
TQ_OBJECT
K_DCOP
+
k_dcop:
ASYNC reread_configuration();
ASYNC quit();
+
public:
KHotKeysModule( const TQCString& obj );
virtual ~KHotKeysModule();
+
private:
Action_data_group* actions_root;
- DCOPClient client;
};
//***************************************************************************
diff --git a/khotkeys/app/khotkeys.desktop b/khotkeys/app/khotkeys.desktop
new file mode 100644
index 000000000..b40b5a6e5
--- /dev/null
+++ b/khotkeys/app/khotkeys.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Type=Service
+
+Name=KHotkeys Daemon
+
+Comment=Handles input actions for the current session
+
+X-TDE-ServiceTypes=KDEDModule
+X-TDE-ModuleType=Library
+X-TDE-Library=khotkeys
+X-TDE-FactoryName=khotkeys
+X-TDE-Kded-autoload=true
+X-TDE-Kded-load-on-demand=false
diff --git a/khotkeys/arts/soundrecorder_arts.cpp b/khotkeys/arts/soundrecorder_arts.cpp
index 0fdc48ab9..e556d218f 100644
--- a/khotkeys/arts/soundrecorder_arts.cpp
+++ b/khotkeys/arts/soundrecorder_arts.cpp
@@ -41,7 +41,7 @@
#define ABS(X) ( ((X)>0) ? (X) : -(X) )
extern "C"
-KDE_EXPORT
+TDE_EXPORT
KHotKeys::SoundRecorder* khotkeys_soundrecorder_create( TQObject* parent, const char* name )
{
return new KHotKeys::SoundRecorderArts( parent, name );
@@ -61,7 +61,7 @@ SoundRecorderArts::SoundRecorderArts(TQObject *parent, const char *name)
( void ) check;
m_recStream->usePolling( false );
- connect( m_recStream, TQT_SIGNAL(data (TQByteArray &)), this, TQT_SLOT(slotDataReceived(TQByteArray& )));
+ connect( m_recStream, TQ_SIGNAL(data (TQByteArray &)), this, TQ_SLOT(slotDataReceived(TQByteArray& )));
}
SoundRecorderArts::~SoundRecorderArts()
@@ -80,7 +80,7 @@ void SoundRecorderArts::start()
void SoundRecorderArts::stop()
{
m_recStream->stop();
- TQTimer::singleShot(400,this,TQT_SLOT(slotEmitSignal()));
+ TQTimer::singleShot(400,this,TQ_SLOT(slotEmitSignal()));
}
void SoundRecorderArts::abort()
diff --git a/khotkeys/arts/voicerecorder_arts.cpp b/khotkeys/arts/voicerecorder_arts.cpp
index 8b5c752ad..b63e16cad 100644
--- a/khotkeys/arts/voicerecorder_arts.cpp
+++ b/khotkeys/arts/voicerecorder_arts.cpp
@@ -25,7 +25,7 @@
#include <arts/kplayobjectfactory.h>
extern "C"
-KDE_EXPORT
+TDE_EXPORT
void khotkeys_voicerecorder_arts_play( const TQString& file )
{
KHotKeys::VoiceRecorder::arts_play_fun check = khotkeys_voicerecorder_arts_play; // check the type matches
diff --git a/khotkeys/data/trinity2b1.khotkeys b/khotkeys/data/trinity2b1.khotkeys
index 7dfe3e0ec..967f389ad 100644
--- a/khotkeys/data/trinity2b1.khotkeys
+++ b/khotkeys/data/trinity2b1.khotkeys
@@ -395,7 +395,6 @@ MouseButton=2
Timeout=1000
[Main]
-Autostart=true
Disabled=false
Version=2
ImportId=trinity2b1
diff --git a/khotkeys/kcontrol/CMakeL10n.txt b/khotkeys/kcontrol/CMakeL10n.txt
deleted file mode 100644
index a51e4afa8..000000000
--- a/khotkeys/kcontrol/CMakeL10n.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-##### create translation templates ##############
-
-tde_l10n_create_template(
- CATALOG "desktop_files/khotkeys.desktop/"
- SOURCES khotkeys.desktop
- DESTINATION "${CMAKE_SOURCE_DIR}/translations"
-)
diff --git a/khotkeys/kcontrol/CMakeLists.txt b/khotkeys/kcontrol/CMakeLists.txt
index 902c5a0e6..b1bd06bdd 100644
--- a/khotkeys/kcontrol/CMakeLists.txt
+++ b/khotkeys/kcontrol/CMakeLists.txt
@@ -47,12 +47,3 @@ tde_add_kpart( kcm_khotkeys AUTOMOC
LINK ui-static
DESTINATION ${PLUGIN_INSTALL_DIR}
)
-
-
-##### kcm_khotkeys_init (module) ################
-
-tde_add_kpart( kcm_khotkeys_init AUTOMOC
- SOURCES init.cpp
- LINK tdecore-shared
- DESTINATION ${PLUGIN_INSTALL_DIR}
-)
diff --git a/khotkeys/kcontrol/Makefile.am b/khotkeys/kcontrol/Makefile.am
index 03a728ae3..8f0a18480 100644
--- a/khotkeys/kcontrol/Makefile.am
+++ b/khotkeys/kcontrol/Makefile.am
@@ -1,6 +1,6 @@
SUBDIRS = ui
-kde_module_LTLIBRARIES = kcm_khotkeys.la kcm_khotkeys_init.la
+kde_module_LTLIBRARIES = kcm_khotkeys.la
kcm_khotkeys_la_SOURCES = \
menuedit.cpp window_trigger_widget.cpp tab_widget.cpp main_buttons_widget.cpp \
@@ -15,11 +15,6 @@ kcm_khotkeys_la_SOURCES = \
kcm_khotkeys_la_LIBADD = ui/libui.la $(LIB_TDEUI) $(LIB_ARTS)
kcm_khotkeys_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined
-kcm_khotkeys_init_la_SOURCES = init.cpp
-
-kcm_khotkeys_init_la_LIBADD = $(LIB_TDECORE)
-kcm_khotkeys_init_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined
-
noinst_HEADERS = menuedit.h window_trigger_widget.h \
tab_widget.h main_buttons_widget.h actions_listview_widget.h menuentry_widget.h \
general_tab.h action_group_tab.h kcmkhotkeys.h windowdef_list_widget.h \
diff --git a/khotkeys/kcontrol/action_group_tab.cpp b/khotkeys/kcontrol/action_group_tab.cpp
index 1bdeffd75..8ba35f323 100644
--- a/khotkeys/kcontrol/action_group_tab.cpp
+++ b/khotkeys/kcontrol/action_group_tab.cpp
@@ -36,18 +36,18 @@ Action_group_tab::Action_group_tab( TQWidget* parent_P , const char* name_P )
{
clear_data();
// KHotKeys::Module::changed()
- connect( action_name_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
- connect( disable_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( comment_multilineedit, TQT_SIGNAL( textChanged()),
- module, TQT_SLOT( changed()));
+ connect( action_name_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
+ connect( disable_checkbox, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( comment_multilineedit, TQ_SIGNAL( textChanged()),
+ module, TQ_SLOT( changed()));
}
void Action_group_tab::clear_data()
{
- disconnect( action_name_lineedit, TQT_SIGNAL( textChanged( const TQString& )), this,
- TQT_SLOT( action_group_name_changed( const TQString& )));
+ disconnect( action_name_lineedit, TQ_SIGNAL( textChanged( const TQString& )), this,
+ TQ_SLOT( action_group_name_changed( const TQString& )));
action_name_lineedit->clear();
action_name_lineedit->setReadOnly( false );
disable_checkbox->setChecked( false );
@@ -71,8 +71,8 @@ void Action_group_tab::set_data( const Action_data_group* data_P )
else
disable_checkbox->setText( i18n( "&Disable" ));
comment_multilineedit->setText( data_P->comment());
- connect( action_name_lineedit, TQT_SIGNAL( textChanged( const TQString& )), this,
- TQT_SLOT( action_group_name_changed( const TQString& )));
+ connect( action_name_lineedit, TQ_SIGNAL( textChanged( const TQString& )), this,
+ TQ_SLOT( action_group_name_changed( const TQString& )));
system_group = data_P->system_group();
}
diff --git a/khotkeys/kcontrol/action_list_widget.cpp b/khotkeys/kcontrol/action_list_widget.cpp
index d007ab5f5..2f87132d8 100644
--- a/khotkeys/kcontrol/action_list_widget.cpp
+++ b/khotkeys/kcontrol/action_list_widget.cpp
@@ -50,7 +50,7 @@ Action_list_widget::Action_list_widget( TQWidget* parent_P, const char* name_P )
popup->insertItem( i18n( "Keyboard Input..." ), TYPE_KEYBOARD_INPUT_ACTION );
popup->insertItem( i18n( "Activate Window..." ), TYPE_ACTIVATE_WINDOW_ACTION );
popup->insertItem( i18n( "Waiting..." ), TYPE_WAITING_ACTION );
- connect( popup, TQT_SIGNAL( activated( int )), TQT_SLOT( new_selected( int )));
+ connect( popup, TQ_SIGNAL( activated( int )), TQ_SLOT( new_selected( int )));
new_button->setPopup( popup );
actions_listview->header()->hide();
actions_listview->addColumn( "" );
@@ -60,17 +60,17 @@ Action_list_widget::Action_list_widget( TQWidget* parent_P, const char* name_P )
modify_button->setEnabled( false );
delete_button->setEnabled( false );
clear_data();
- connect( actions_listview, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
- this, TQT_SLOT( modify_pressed() ) );
+ connect( actions_listview, TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
+ this, TQ_SLOT( modify_pressed() ) );
// KHotKeys::Module::changed()
- connect(new_button, TQT_SIGNAL(clicked()), module, TQT_SLOT(changed()));
- connect(copy_button, TQT_SIGNAL(clicked()), module, TQT_SLOT(changed()));
- connect(modify_button, TQT_SIGNAL(clicked()), module, TQT_SLOT(changed()));
- connect(delete_button, TQT_SIGNAL(clicked()), module, TQT_SLOT(changed()));
- connect(move_up_button, TQT_SIGNAL(clicked()), module, TQT_SLOT(changed()));
- connect(move_down_button, TQT_SIGNAL(clicked()), module, TQT_SLOT(changed()));
- connect(comment_lineedit, TQT_SIGNAL(textChanged(const TQString&)), module, TQT_SLOT(changed()));
+ connect(new_button, TQ_SIGNAL(clicked()), module, TQ_SLOT(changed()));
+ connect(copy_button, TQ_SIGNAL(clicked()), module, TQ_SLOT(changed()));
+ connect(modify_button, TQ_SIGNAL(clicked()), module, TQ_SLOT(changed()));
+ connect(delete_button, TQ_SIGNAL(clicked()), module, TQ_SLOT(changed()));
+ connect(move_up_button, TQ_SIGNAL(clicked()), module, TQ_SLOT(changed()));
+ connect(move_down_button, TQ_SIGNAL(clicked()), module, TQ_SLOT(changed()));
+ connect(comment_lineedit, TQ_SIGNAL(textChanged(const TQString&)), module, TQ_SLOT(changed()));
}
Action_list_widget::~Action_list_widget()
diff --git a/khotkeys/kcontrol/actions_listview_widget.cpp b/khotkeys/kcontrol/actions_listview_widget.cpp
index 1b6c7a743..9fe4716c2 100644
--- a/khotkeys/kcontrol/actions_listview_widget.cpp
+++ b/khotkeys/kcontrol/actions_listview_widget.cpp
@@ -39,10 +39,10 @@ Actions_listview_widget::Actions_listview_widget( TQWidget* parent_P, const char
actions_listview->header()->hide();
actions_listview->addColumn( "" );
actions_listview->setRootIsDecorated( true ); // CHECKME
- connect( actions_listview, TQT_SIGNAL( current_changed( TQListViewItem* )),
- TQT_SLOT( current_changed( TQListViewItem* )));
- connect( actions_listview, TQT_SIGNAL( moved( TQListViewItem*, TQListViewItem*, TQListViewItem* )),
- TQT_SLOT( item_moved( TQListViewItem*, TQListViewItem*, TQListViewItem* )));
+ connect( actions_listview, TQ_SIGNAL( current_changed( TQListViewItem* )),
+ TQ_SLOT( current_changed( TQListViewItem* )));
+ connect( actions_listview, TQ_SIGNAL( moved( TQListViewItem*, TQListViewItem*, TQListViewItem* )),
+ TQ_SLOT( item_moved( TQListViewItem*, TQListViewItem*, TQListViewItem* )));
// KHotKeys::Module::changed()
}
diff --git a/khotkeys/kcontrol/command_url_widget.cpp b/khotkeys/kcontrol/command_url_widget.cpp
index 133913360..5d06c1a16 100644
--- a/khotkeys/kcontrol/command_url_widget.cpp
+++ b/khotkeys/kcontrol/command_url_widget.cpp
@@ -37,8 +37,8 @@ Command_url_widget::Command_url_widget( TQWidget* parent_P, const char* name_P )
{
clear_data();
// KHotKeys::Module::changed()
- connect( command_url_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
+ connect( command_url_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
}
void Command_url_widget::clear_data()
diff --git a/khotkeys/kcontrol/condition_list_widget.cpp b/khotkeys/kcontrol/condition_list_widget.cpp
index 817602a12..f0a43cb93 100644
--- a/khotkeys/kcontrol/condition_list_widget.cpp
+++ b/khotkeys/kcontrol/condition_list_widget.cpp
@@ -49,10 +49,10 @@ Condition_list_widget::Condition_list_widget( TQWidget* parent_P, const char* na
popup->insertItem( i18n( "Not_condition", "Not" ), TYPE_NOT );
popup->insertItem( i18n( "And_condition", "And" ), TYPE_AND );
popup->insertItem( i18n( "Or_condition", "Or" ), TYPE_OR );
- connect( conditions_listview, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
- this, TQT_SLOT( modify_pressed() ) );
+ connect( conditions_listview, TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
+ this, TQ_SLOT( modify_pressed() ) );
- connect( popup, TQT_SIGNAL( activated( int )), TQT_SLOT( new_selected( int )));
+ connect( popup, TQ_SIGNAL( activated( int )), TQ_SLOT( new_selected( int )));
new_button->setPopup( popup );
conditions_listview->header()->hide();
conditions_listview->addColumn( "" );
@@ -66,14 +66,14 @@ Condition_list_widget::Condition_list_widget( TQWidget* parent_P, const char* na
move_down_button->setEnabled( false );
clear_data();
// KHotKeys::Module::changed()
- connect(new_button, TQT_SIGNAL(clicked()), module, TQT_SLOT(changed()));
- connect(copy_button, TQT_SIGNAL(clicked()), module, TQT_SLOT(changed()));
- connect(modify_button, TQT_SIGNAL(clicked()), module, TQT_SLOT( changed()));
- connect(delete_button, TQT_SIGNAL(clicked()), module, TQT_SLOT( changed()));
- connect(move_up_button, TQT_SIGNAL(clicked()), module, TQT_SLOT(changed()));
- connect(move_down_button, TQT_SIGNAL(clicked()), module, TQT_SLOT(changed()));
- connect(comment_lineedit, TQT_SIGNAL(textChanged(const TQString&)),
- module, TQT_SLOT(changed()));
+ connect(new_button, TQ_SIGNAL(clicked()), module, TQ_SLOT(changed()));
+ connect(copy_button, TQ_SIGNAL(clicked()), module, TQ_SLOT(changed()));
+ connect(modify_button, TQ_SIGNAL(clicked()), module, TQ_SLOT( changed()));
+ connect(delete_button, TQ_SIGNAL(clicked()), module, TQ_SLOT( changed()));
+ connect(move_up_button, TQ_SIGNAL(clicked()), module, TQ_SLOT(changed()));
+ connect(move_down_button, TQ_SIGNAL(clicked()), module, TQ_SLOT(changed()));
+ connect(comment_lineedit, TQ_SIGNAL(textChanged(const TQString&)),
+ module, TQ_SLOT(changed()));
}
Condition_list_widget::~Condition_list_widget()
diff --git a/khotkeys/kcontrol/dcop_widget.cpp b/khotkeys/kcontrol/dcop_widget.cpp
index bee149860..d986e5a51 100644
--- a/khotkeys/kcontrol/dcop_widget.cpp
+++ b/khotkeys/kcontrol/dcop_widget.cpp
@@ -36,14 +36,14 @@ Dcop_widget::Dcop_widget( TQWidget* parent_P, const char* name_P )
clear_data();
try_button->setText( i18n( "to try", "&Try" )); // Qt designer can't do this
// KHotKeys::Module::changed()
- connect( remote_app_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
- connect( remote_object_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
- connect( called_function_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
- connect( arguments_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
+ connect( remote_app_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
+ connect( remote_object_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
+ connect( called_function_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
+ connect( arguments_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
}
void Dcop_widget::clear_data()
diff --git a/khotkeys/kcontrol/general_settings_tab.cpp b/khotkeys/kcontrol/general_settings_tab.cpp
index cf2337446..07382c4ed 100644
--- a/khotkeys/kcontrol/general_settings_tab.cpp
+++ b/khotkeys/kcontrol/general_settings_tab.cpp
@@ -26,9 +26,6 @@ namespace KHotKeys
General_settings_tab::General_settings_tab( TQWidget* parent_P, const char* name_P )
: General_settings_tab_ui( parent_P, name_P )
{
- // KHotKeys::Module::changed()
- connect( disable_daemon_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
}
void General_settings_tab::import_clicked()
@@ -36,16 +33,6 @@ void General_settings_tab::import_clicked()
module->import();
}
-void General_settings_tab::write_data() const
- {
- module->set_daemon_disabled( disable_daemon_checkbox->isChecked());
- }
-
-void General_settings_tab::read_data()
- {
- disable_daemon_checkbox->setChecked( module->daemon_disabled());
- }
-
void General_settings_tab::clear_data()
{
// "global" tab, not action specific, do nothing
diff --git a/khotkeys/kcontrol/general_settings_tab.h b/khotkeys/kcontrol/general_settings_tab.h
index ba76bf68e..962111b36 100644
--- a/khotkeys/kcontrol/general_settings_tab.h
+++ b/khotkeys/kcontrol/general_settings_tab.h
@@ -22,8 +22,6 @@ class General_settings_tab
TQ_OBJECT
public:
General_settings_tab( TQWidget* parent = NULL, const char* name = NULL );
- void read_data();
- void write_data() const;
public slots:
void clear_data();
protected slots:
diff --git a/khotkeys/kcontrol/general_tab.cpp b/khotkeys/kcontrol/general_tab.cpp
index 1cd98d461..21ca6f952 100644
--- a/khotkeys/kcontrol/general_tab.cpp
+++ b/khotkeys/kcontrol/general_tab.cpp
@@ -73,22 +73,22 @@ General_tab::General_tab( TQWidget* parent_P, const char* name_P )
}
clear_data();
// KHotKeys::Module::changed()
- connect( action_name_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
- connect( disable_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( comment_multilineedit, TQT_SIGNAL( textChanged()),
- module, TQT_SLOT( changed()));
- connect( action_type_combo, TQT_SIGNAL( activated( int )),
- module, TQT_SLOT( changed()));
+ connect( action_name_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
+ connect( disable_checkbox, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( comment_multilineedit, TQ_SIGNAL( textChanged()),
+ module, TQ_SLOT( changed()));
+ connect( action_type_combo, TQ_SIGNAL( activated( int )),
+ module, TQ_SLOT( changed()));
}
void General_tab::clear_data()
{
- disconnect( action_name_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- this, TQT_SLOT( action_name_changed( const TQString& )));
- disconnect( action_type_combo, TQT_SIGNAL( activated( int )),
- this, TQT_SIGNAL( action_type_changed( int ))); // CHECKME neodpoji to sloty od nej ?
+ disconnect( action_name_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ this, TQ_SLOT( action_name_changed( const TQString& )));
+ disconnect( action_type_combo, TQ_SIGNAL( activated( int )),
+ this, TQ_SIGNAL( action_type_changed( int ))); // CHECKME neodpoji to sloty od nej ?
action_name_lineedit->clear();
disable_checkbox->setChecked( false );
disable_checkbox->setText( i18n( "&Disable" ));
@@ -113,10 +113,10 @@ void General_tab::set_data( const Action_data* data_P )
comment_multilineedit->setText( data_P->comment());
action_type_combo->setCurrentItem( Tab_widget::type( data_P ));
// module->set_action_type( data_P->type());
- connect( action_name_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- TQT_SLOT( action_name_changed( const TQString& )));
- connect( action_type_combo, TQT_SIGNAL( activated( int )),
- TQT_SIGNAL( action_type_changed( int )));
+ connect( action_name_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ TQ_SLOT( action_name_changed( const TQString& )));
+ connect( action_type_combo, TQ_SIGNAL( activated( int )),
+ TQ_SIGNAL( action_type_changed( int )));
}
void General_tab::get_data( TQString& name_O, TQString& comment_O, bool& enabled_O )
diff --git a/khotkeys/kcontrol/gesture_triggers_tab.cpp b/khotkeys/kcontrol/gesture_triggers_tab.cpp
index b00f60963..52c41cd9e 100644
--- a/khotkeys/kcontrol/gesture_triggers_tab.cpp
+++ b/khotkeys/kcontrol/gesture_triggers_tab.cpp
@@ -35,12 +35,12 @@ Gesture_triggers_tab::Gesture_triggers_tab( TQWidget* parent_P, const char* name
{
clear_data();
// KHotKeys::Module::changed()
- connect( gesture_edit_button1, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( gesture_edit_button2, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( gesture_edit_button3, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
+ connect( gesture_edit_button1, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( gesture_edit_button2, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( gesture_edit_button3, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
}
void Gesture_triggers_tab::clear_data()
@@ -142,8 +142,8 @@ Gesture_edit_dialog::Gesture_edit_dialog( const TQString& gesture_P )
_page = new GestureRecordPage( _gesture,
this, "GestureRecordPage");
-// connect(_page, TQT_SIGNAL(gestureRecorded(bool)), // allow clearing the gesture
-// this, TQT_SLOT(enableButtonOK(bool)));
+// connect(_page, TQ_SIGNAL(gestureRecorded(bool)), // allow clearing the gesture
+// this, TQ_SLOT(enableButtonOK(bool)));
setMainWidget( _page );
}
diff --git a/khotkeys/kcontrol/gesturerecordpage.cpp b/khotkeys/kcontrol/gesturerecordpage.cpp
index e9e768bb0..bc254a878 100644
--- a/khotkeys/kcontrol/gesturerecordpage.cpp
+++ b/khotkeys/kcontrol/gesturerecordpage.cpp
@@ -49,8 +49,8 @@ GestureRecordPage::GestureRecordPage(const TQString &gesture,
_recorder = new GestureRecorder(this, "recorder");
_recorder->setMinimumHeight(150);
setStretchFactor(_recorder, 1);
- connect(_recorder, TQT_SIGNAL(recorded(const TQString &)),
- this, TQT_SLOT(slotRecorded(const TQString &)));
+ connect(_recorder, TQ_SIGNAL(recorded(const TQString &)),
+ this, TQ_SLOT(slotRecorded(const TQString &)));
TQHBox *hBox = new TQHBox(this, "hbox");
@@ -62,8 +62,8 @@ GestureRecordPage::GestureRecordPage(const TQString &gesture,
hBox->setStretchFactor(spacer, 1);
_resetButton = new TQPushButton(i18n("&Reset"), hBox, "resetButton");
- connect(_resetButton, TQT_SIGNAL(clicked()),
- this, TQT_SLOT(slotResetClicked()));
+ connect(_resetButton, TQ_SIGNAL(clicked()),
+ this, TQ_SLOT(slotResetClicked()));
diff --git a/khotkeys/kcontrol/gestures_settings_tab.cpp b/khotkeys/kcontrol/gestures_settings_tab.cpp
index 8585fedbc..200fa6b97 100644
--- a/khotkeys/kcontrol/gestures_settings_tab.cpp
+++ b/khotkeys/kcontrol/gestures_settings_tab.cpp
@@ -39,12 +39,12 @@ Gestures_settings_tab::Gestures_settings_tab( TQWidget* parent_P, const char* na
mouse_button_combo->insertItem( i18n( "Button 8 (if available)" ), 6 );
mouse_button_combo->insertItem( i18n( "Button 9 (if available)" ), 7 );
// KHotKeys::Module::changed()
- connect( mouse_gestures_globally, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( mouse_button_combo, TQT_SIGNAL( activated( int )),
- module, TQT_SLOT( changed()));
- connect( timeout_input, TQT_SIGNAL( valueChanged( int )),
- module, TQT_SLOT( changed()));
+ connect( mouse_gestures_globally, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( mouse_button_combo, TQ_SIGNAL( activated( int )),
+ module, TQ_SLOT( changed()));
+ connect( timeout_input, TQ_SIGNAL( valueChanged( int )),
+ module, TQ_SLOT( changed()));
}
void Gestures_settings_tab::read_data()
diff --git a/khotkeys/kcontrol/init.cpp b/khotkeys/kcontrol/init.cpp
deleted file mode 100644
index 9b34b2686..000000000
--- a/khotkeys/kcontrol/init.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/****************************************************************************
-
- KHotKeys
-
- Copyright (C) 1999-2001 Lubos Lunak <l.lunak@kde.org>
-
- Distributed under the terms of the GNU General Public License version 2.
-
-****************************************************************************/
-
-#define _INIT_CPP_
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <dcopref.h>
-#include <tdeapplication.h>
-#include <tdeconfig.h>
-#include <kdebug.h>
-#include <stdlib.h>
-
-extern "C"
-{
- KDE_EXPORT void init_khotkeys()
- {
- TDEConfig cfg( "khotkeysrc", true );
- cfg.setGroup( "Main" );
- if( !cfg.readBoolEntry( "Autostart", false ))
- return;
- // Non-xinerama multhead support in KDE is just a hack
- // involving forking apps per-screen. Don't bother with
- // kded modules in such case.
- TQCString multiHead = getenv("TDE_MULTIHEAD");
- if (multiHead.lower() == "true")
- kapp->tdeinitExec( "khotkeys" );
- else
- {
- DCOPRef ref( "kded", "kded" );
- if( !ref.call( "loadModule", TQCString( "khotkeys" )))
- {
- kdWarning( 1217 ) << "Loading of khotkeys module failed." << endl;
- kapp->tdeinitExec( "khotkeys" );
- }
- }
- }
-}
diff --git a/khotkeys/kcontrol/kcmkhotkeys.cpp b/khotkeys/kcontrol/kcmkhotkeys.cpp
index cd394a6e6..80c50d56c 100644
--- a/khotkeys/kcontrol/kcmkhotkeys.cpp
+++ b/khotkeys/kcontrol/kcmkhotkeys.cpp
@@ -32,7 +32,7 @@
#include <kdebug.h>
#include <tdemessagebox.h>
#include <tdeglobal.h>
-#include <ksimpleconfig.h>
+#include <tdesimpleconfig.h>
#include <tdefiledialog.h>
#include <dcopref.h>
#include <klibloader.h>
@@ -48,7 +48,7 @@
extern "C"
{
- KDE_EXPORT TDECModule* create_khotkeys( TQWidget* parent_P, const char* name_P )
+ TDE_EXPORT TDECModule* create_khotkeys( TQWidget* parent_P, const char* name_P )
{
// sleep( 20 ); // CHECKME DEBUG
TDEGlobal::locale()->insertCatalogue("khotkeys");
@@ -78,12 +78,12 @@ Module::Module( TQWidget* parent_P, const char* )
vbox->addWidget( splt );
buttons_widget = new Main_buttons_widget( this );
vbox->addWidget( buttons_widget );
- connect( actions_listview_widget, TQT_SIGNAL( current_action_changed()),
- TQT_SLOT( listview_current_action_changed()));
- connect( buttons_widget, TQT_SIGNAL( new_action_pressed()), TQT_SLOT( new_action()));
- connect( buttons_widget, TQT_SIGNAL( new_action_group_pressed()), TQT_SLOT( new_action_group()));
- connect( buttons_widget, TQT_SIGNAL( delete_action_pressed()), TQT_SLOT( delete_action()));
- connect( buttons_widget, TQT_SIGNAL( global_settings_pressed()), TQT_SLOT( global_settings()));
+ connect( actions_listview_widget, TQ_SIGNAL( current_action_changed()),
+ TQ_SLOT( listview_current_action_changed()));
+ connect( buttons_widget, TQ_SIGNAL( new_action_pressed()), TQ_SLOT( new_action()));
+ connect( buttons_widget, TQ_SIGNAL( new_action_group_pressed()), TQ_SLOT( new_action_group()));
+ connect( buttons_widget, TQ_SIGNAL( delete_action_pressed()), TQ_SLOT( delete_action()));
+ connect( buttons_widget, TQ_SIGNAL( global_settings_pressed()), TQ_SLOT( global_settings()));
// listview_current_action_changed(); // init
TDEAboutData* about = new TDEAboutData("kcmkhotkeys", I18N_NOOP("KHotKeys"), KHOTKEYS_VERSION,
@@ -122,24 +122,33 @@ void Module::save()
tab_widget->save_current_action_changes();
settings.actions = _actions_root;
settings.write_settings();
- if( daemon_disabled())
+ if(tdeApp->dcopClient()->isApplicationRegistered( "khotkeys" ))
{
+ // khotkeys running as a standalone application
TQByteArray data;
- kapp->dcopClient()->send( "khotkeys*", "khotkeys", "quit()", data );
- kdDebug( 1217 ) << "disabling khotkeys daemon" << endl;
+ kdDebug( 1217 ) << "telling khotkeys standalone application to reread configuration" << endl;
+ tdeApp->dcopClient()->send( "khotkeys", "khotkeys", "reread_configuration()", data );
}
else
{
- if( !kapp->dcopClient()->isApplicationRegistered( "khotkeys" ))
+ TQCString replyType;
+ TQByteArray replyData;
+ if (tdeApp->dcopClient()->call("kded", "kded", "loadedModules()",
+ TQByteArray(), replyType, replyData))
{
- kdDebug( 1217 ) << "launching new khotkeys daemon" << endl;
- TDEApplication::tdeinitExec( "khotkeys" );
- }
- else
- {
- TQByteArray data;
- kapp->dcopClient()->send( "khotkeys*", "khotkeys", "reread_configuration()", data );
- kdDebug( 1217 ) << "telling khotkeys daemon to reread configuration" << endl;
+ if (replyType == "QCStringList")
+ {
+ TQDataStream reply(replyData, IO_ReadOnly);
+ QCStringList modules;
+ reply >> modules;
+ if (modules.contains("khotkeys"))
+ {
+ // khotkeys running as a kded service
+ TQByteArray data;
+ kdDebug( 1217 ) << "telling khotkeys kded daemon to reread configuration" << endl;
+ tdeApp->dcopClient()->send( "kded", "khotkeys", "reread_configuration()", data );
+ }
+ }
}
}
emit TDECModule::changed( false );
@@ -276,7 +285,7 @@ void Module::import()
i18n( "Select File with Actions to Be Imported" ));
if( file.isEmpty())
return;
- KSimpleConfig cfg( file, true );
+ TDESimpleConfig cfg( file, true );
if( !settings.import( cfg, true ))
{
KMessageBox::error( topLevelWidget(),
diff --git a/khotkeys/kcontrol/kcmkhotkeys.h b/khotkeys/kcontrol/kcmkhotkeys.h
index 7d1876d8d..46e28ecd9 100644
--- a/khotkeys/kcontrol/kcmkhotkeys.h
+++ b/khotkeys/kcontrol/kcmkhotkeys.h
@@ -51,8 +51,6 @@ class Module
int gesture_timeout() const;
void set_gestures_exclude( Windowdef_list* windows );
const Windowdef_list* gestures_exclude() const;
- void set_daemon_disabled( bool disable );
- bool daemon_disabled() const;
void import();
TDEShortcut voice_shortcut() const;
void set_voice_shortcut( const TDEShortcut&) ;
@@ -140,19 +138,6 @@ const Windowdef_list* Module::gestures_exclude() const
}
inline
-void Module::set_daemon_disabled( bool disabled_P )
- {
- settings.daemon_disabled = disabled_P;
- }
-
-inline
-bool Module::daemon_disabled() const
- {
- return settings.daemon_disabled;
- }
-
-
-inline
void Module::set_voice_shortcut( const TDEShortcut& cut)
{
settings.voice_shortcut=cut;
diff --git a/khotkeys/kcontrol/keyboard_input_widget.cpp b/khotkeys/kcontrol/keyboard_input_widget.cpp
index 4d5727482..a518fa02d 100644
--- a/khotkeys/kcontrol/keyboard_input_widget.cpp
+++ b/khotkeys/kcontrol/keyboard_input_widget.cpp
@@ -36,16 +36,16 @@ Keyboard_input_widget::Keyboard_input_widget( TQWidget* parent_P, const char* na
{
clear_data();
// KHotKeys::Module::changed()
- connect( action_window_radio, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( active_window_radio, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( specific_window_radio, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( keyboard_input_multilineedit, TQT_SIGNAL( textChanged()),
- module, TQT_SLOT( changed()));
- connect( modify_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
+ connect( action_window_radio, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( active_window_radio, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( specific_window_radio, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( keyboard_input_multilineedit, TQ_SIGNAL( textChanged()),
+ module, TQ_SLOT( changed()));
+ connect( modify_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
}
void Keyboard_input_widget::clear_data()
diff --git a/khotkeys/kcontrol/khotkeys.desktop b/khotkeys/kcontrol/khotkeys.desktop
index 4394e36b6..d9e0c5af2 100644
--- a/khotkeys/kcontrol/khotkeys.desktop
+++ b/khotkeys/kcontrol/khotkeys.desktop
@@ -5,8 +5,7 @@ Type=Application
X-DocPath=kcontrol/khotkeys/index.html
X-TDE-ModuleType=Library
X-TDE-Library=khotkeys
-X-TDE-Init-Library=khotkeys_init
-X-TDE-Init=khotkeys
+X-TDE-StartupNotify=false
Categories=Qt;TDE;X-TDE-settings-accessibility;
Name=Input Actions
diff --git a/khotkeys/kcontrol/main_buttons_widget.cpp b/khotkeys/kcontrol/main_buttons_widget.cpp
index 3532cc13f..4a1e258b5 100644
--- a/khotkeys/kcontrol/main_buttons_widget.cpp
+++ b/khotkeys/kcontrol/main_buttons_widget.cpp
@@ -26,18 +26,18 @@ namespace KHotKeys
Main_buttons_widget::Main_buttons_widget( TQWidget* parent_P, const char* name_P )
: Main_buttons_widget_ui( parent_P, name_P )
{
- connect( new_action_button, TQT_SIGNAL( clicked()), TQT_SIGNAL( new_action_pressed()));
- connect( new_action_group_button, TQT_SIGNAL( clicked()), TQT_SIGNAL( new_action_group_pressed()));
- connect( delete_action_button, TQT_SIGNAL( clicked()), TQT_SIGNAL( delete_action_pressed()));
- connect( global_settings_button, TQT_SIGNAL( clicked()), TQT_SIGNAL( global_settings_pressed()));
+ connect( new_action_button, TQ_SIGNAL( clicked()), TQ_SIGNAL( new_action_pressed()));
+ connect( new_action_group_button, TQ_SIGNAL( clicked()), TQ_SIGNAL( new_action_group_pressed()));
+ connect( delete_action_button, TQ_SIGNAL( clicked()), TQ_SIGNAL( delete_action_pressed()));
+ connect( global_settings_button, TQ_SIGNAL( clicked()), TQ_SIGNAL( global_settings_pressed()));
enable_delete( false );
// KHotKeys::Module::changed()
- connect( new_action_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( new_action_group_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( delete_action_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
+ connect( new_action_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( new_action_group_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( delete_action_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
setMaximumHeight( sizeHint().height()); // it gets too high and I have no idea why
}
diff --git a/khotkeys/kcontrol/menuedit.cpp b/khotkeys/kcontrol/menuedit.cpp
index 08b8a3c22..12191ff63 100644
--- a/khotkeys/kcontrol/menuedit.cpp
+++ b/khotkeys/kcontrol/menuedit.cpp
@@ -189,18 +189,36 @@ KService::Ptr khotkeys_find_menu_entry( const TQString& shortcut_P )
void khotkeys_send_reread_config()
{
TQByteArray data;
- if( !kapp->dcopClient()->isAttached())
- kapp->dcopClient()->attach();
- if( !kapp->dcopClient()->isApplicationRegistered( "khotkeys" ))
+ if( !tdeApp->dcopClient()->isAttached())
+ tdeApp->dcopClient()->attach();
+ if(tdeApp->dcopClient()->isApplicationRegistered( "khotkeys" ))
{
- kdDebug( 1217 ) << "launching new khotkeys daemon" << endl;
- TDEApplication::tdeinitExec( "khotkeys" );
+ // khotkeys running as a standalone application
+ TQByteArray data;
+ kdDebug( 1217 ) << "telling khotkeys standalone application to reread configuration" << endl;
+ tdeApp->dcopClient()->send( "khotkeys", "khotkeys", "reread_configuration()", data );
}
else
{
- TQByteArray data;
- kapp->dcopClient()->send( "khotkeys*", "khotkeys", "reread_configuration()", data );
- kdDebug( 1217 ) << "telling khotkeys daemon to reread configuration" << endl;
+ TQCString replyType;
+ TQByteArray replyData;
+ if (tdeApp->dcopClient()->call("kded", "kded", "loadedModules()",
+ TQByteArray(), replyType, replyData))
+ {
+ if (replyType == "QCStringList")
+ {
+ TQDataStream reply(replyData, IO_ReadOnly);
+ QCStringList modules;
+ reply >> modules;
+ if (modules.contains("khotkeys"))
+ {
+ // khotkeys running as a kded service
+ TQByteArray data;
+ kdDebug( 1217 ) << "telling khotkeys kded daemon to reread configuration" << endl;
+ tdeApp->dcopClient()->send( "kded", "khotkeys", "reread_configuration()", data );
+ }
+ }
+ }
}
}
@@ -303,7 +321,6 @@ TQString khotkeys_change_menu_entry_shortcut( const TQString& entry_P,
return "";
}
entry->reparent( khotkeys_get_menu_root( settings.actions ));
- settings.daemon_disabled = false; // #91782
settings.write_settings();
khotkeys_send_reread_config();
return shortcut;
diff --git a/khotkeys/kcontrol/menuedit.h b/khotkeys/kcontrol/menuedit.h
index f7aa43436..776076e1d 100644
--- a/khotkeys/kcontrol/menuedit.h
+++ b/khotkeys/kcontrol/menuedit.h
@@ -21,24 +21,24 @@ extern "C"
{
// initializes khotkeys DSO - loads i18n catalogue
// handled automatically by KHotKeys wrapper class in kmenuedit
-KDE_EXPORT void khotkeys_init( void );
+TDE_EXPORT void khotkeys_init( void );
// clean up khotkeys DSO
// handled automatically by KHotKeys wrapper class in kmenuedit
-KDE_EXPORT void khotkeys_cleanup( void );
+TDE_EXPORT void khotkeys_cleanup( void );
// return keyboard shortcut ( e.g. "ALT+T" ) for given menu entry ( e.g.
// "System/Konsole.desktop"
-KDE_EXPORT TQString khotkeys_get_menu_entry_shortcut( const TQString& entry_P );
+TDE_EXPORT TQString khotkeys_get_menu_entry_shortcut( const TQString& entry_P );
// changes assigned shortcut to menu entry a updates config file
-KDE_EXPORT TQString khotkeys_change_menu_entry_shortcut( const TQString& entry_P,
+TDE_EXPORT TQString khotkeys_change_menu_entry_shortcut( const TQString& entry_P,
const TQString& shortcut_P );
// menu entry was moved in TDE Menu
-KDE_EXPORT bool khotkeys_menu_entry_moved( const TQString& new_P, const TQString& old_P );
+TDE_EXPORT bool khotkeys_menu_entry_moved( const TQString& new_P, const TQString& old_P );
// menu entry was removed
-KDE_EXPORT void khotkeys_menu_entry_deleted( const TQString& entry_P );
+TDE_EXPORT void khotkeys_menu_entry_deleted( const TQString& entry_P );
// List of all hotkeys in use
-KDE_EXPORT TQStringList khotkeys_get_all_shortcuts( );
+TDE_EXPORT TQStringList khotkeys_get_all_shortcuts( );
// Find menu entry that uses shortcut
-KDE_EXPORT KService::Ptr khotkeys_find_menu_entry( const TQString& shortcut_P );
+TDE_EXPORT KService::Ptr khotkeys_find_menu_entry( const TQString& shortcut_P );
} // extern "C"
#endif
diff --git a/khotkeys/kcontrol/menuentry_widget.cpp b/khotkeys/kcontrol/menuentry_widget.cpp
index 9b313d20d..8fac287b8 100644
--- a/khotkeys/kcontrol/menuentry_widget.cpp
+++ b/khotkeys/kcontrol/menuentry_widget.cpp
@@ -37,8 +37,8 @@ Menuentry_widget::Menuentry_widget( TQWidget* parent_P, const char* name_P )
{
clear_data();
// KHotKeys::Module::changed()
- connect( menuentry_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
+ connect( menuentry_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
}
void Menuentry_widget::clear_data()
diff --git a/khotkeys/kcontrol/tab_widget.cpp b/khotkeys/kcontrol/tab_widget.cpp
index d3ca4afbe..9f9bba39c 100644
--- a/khotkeys/kcontrol/tab_widget.cpp
+++ b/khotkeys/kcontrol/tab_widget.cpp
@@ -59,8 +59,8 @@ Tab_widget::Tab_widget( TQWidget* parent_P, const char* name_P )
pages[ TAB_GESTURES_SETTINGS ] = new Gestures_settings_tab;
General_tab* general_tab;
pages[ TAB_GENERAL ] = general_tab = new General_tab;
- connect( general_tab, TQT_SIGNAL( action_type_changed( int )),
- TQT_SLOT( set_action_type_slot( int )));
+ connect( general_tab, TQ_SIGNAL( action_type_changed( int )),
+ TQ_SLOT( set_action_type_slot( int )));
pages[ TAB_GROUP_GENERAL ] = new Action_group_tab;
pages[ TAB_CONDITIONS ] = new Condition_list_tab;
pages[ TAB_ACTIONS ] = new Action_list_tab;
@@ -76,7 +76,7 @@ Tab_widget::Tab_widget( TQWidget* parent_P, const char* name_P )
for( tab_pos_t i = TAB_FIRST;
i < TAB_END;
++i )
- connect( this, TQT_SIGNAL( clear_pages_signal()), pages[ i ], TQT_SLOT( clear_data()));
+ connect( this, TQ_SIGNAL( clear_pages_signal()), pages[ i ], TQ_SLOT( clear_data()));
#ifdef HAVE_ARTS
if( haveArts())
show_pages(( TAB_INFO, TAB_GENERAL_SETTINGS, TAB_GESTURES_SETTINGS, TAB_VOICE_SETTINGS ));
@@ -103,7 +103,6 @@ void Tab_widget::save_current_action_changes()
if( current_type == NONE ) // info, global settings
{
static_cast< Gestures_settings_tab* >( pages[ TAB_GESTURES_SETTINGS ] )->write_data(); // saves
- static_cast< General_settings_tab* >( pages[ TAB_GENERAL_SETTINGS ] )->write_data(); // saves
static_cast< Voice_settings_tab* >( pages[ TAB_VOICE_SETTINGS ] )->write_data(); // saves
}
else if( current_type == GROUP )
@@ -235,7 +234,6 @@ void Tab_widget::load_current_action()
{
static_cast< Gestures_settings_tab* >( pages[ TAB_GESTURES_SETTINGS ] )->read_data(); // loads
static_cast< Voice_settings_tab* >( pages[ TAB_VOICE_SETTINGS ] )->read_data(); // loads
- static_cast< General_settings_tab* >( pages[ TAB_GENERAL_SETTINGS ] )->read_data(); // loads
}
else if( current_type == GROUP )
{
@@ -441,18 +439,18 @@ void Tab_widget::show_pages( const Pages_set& pages_P )
{
removePage( pages[ i ] );
if( pages_P.is_set( i )) // don't clear page contents if it stays visible
- disconnect( this, TQT_SIGNAL( clear_pages_signal()), pages[ i ], TQT_SLOT( clear_data()));
+ disconnect( this, TQ_SIGNAL( clear_pages_signal()), pages[ i ], TQ_SLOT( clear_data()));
}
clear_pages();
// reconnect all pages to this signal
- disconnect( this, TQT_SIGNAL( clear_pages_signal()), NULL, NULL );
+ disconnect( this, TQ_SIGNAL( clear_pages_signal()), NULL, NULL );
for( tab_pos_t i = TAB_FIRST;
i < TAB_END;
++i )
{
if( pages_P.is_set( i ))
addTab( pages[ i ], i18n( tab_labels[ i ] ));
- connect( this, TQT_SIGNAL( clear_pages_signal()), pages[ i ], TQT_SLOT( clear_data()));
+ connect( this, TQ_SIGNAL( clear_pages_signal()), pages[ i ], TQ_SLOT( clear_data()));
}
show();
}
diff --git a/khotkeys/kcontrol/triggers_tab.cpp b/khotkeys/kcontrol/triggers_tab.cpp
index 947a148b8..d3773c3f3 100644
--- a/khotkeys/kcontrol/triggers_tab.cpp
+++ b/khotkeys/kcontrol/triggers_tab.cpp
@@ -55,9 +55,9 @@ Triggers_tab::Triggers_tab( TQWidget* parent_P, const char* name_P )
if( haveArts())
popup->insertItem( i18n( "Voice Trigger..." ), TYPE_VOICE_TRIGGER );
#endif
- connect( popup, TQT_SIGNAL( activated( int )), TQT_SLOT( new_selected( int )));
- connect( triggers_listview, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
- this, TQT_SLOT( modify_pressed() ) );
+ connect( popup, TQ_SIGNAL( activated( int )), TQ_SLOT( new_selected( int )));
+ connect( triggers_listview, TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
+ this, TQ_SLOT( modify_pressed() ) );
new_button->setPopup( popup );
copy_button->setEnabled( false );
@@ -69,16 +69,16 @@ Triggers_tab::Triggers_tab( TQWidget* parent_P, const char* name_P )
triggers_listview->setForceSelect( true );
clear_data();
// KHotKeys::Module::changed()
- connect( new_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( copy_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( modify_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( delete_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( comment_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
+ connect( new_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( copy_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( modify_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( delete_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( comment_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
}
Triggers_tab::~Triggers_tab()
@@ -230,8 +230,8 @@ Shortcut_trigger_widget::Shortcut_trigger_widget( TQWidget* parent_P, const char
lay->addWidget( bt, 0 , TQt::AlignHCenter );
lay->addStretch();
clear_data();
- connect( bt, TQT_SIGNAL( capturedShortcut( const TDEShortcut& )),
- this, TQT_SLOT( capturedShortcut( const TDEShortcut& )));
+ connect( bt, TQ_SIGNAL( capturedShortcut( const TDEShortcut& )),
+ this, TQ_SLOT( capturedShortcut( const TDEShortcut& )));
}
void Shortcut_trigger_widget::clear_data()
@@ -320,8 +320,8 @@ Gesture_trigger_dialog::Gesture_trigger_dialog( Gesture_trigger* trigger_P )
_page = new GestureRecordPage( _trigger->gesturecode(),
this, "GestureRecordPage");
- connect(_page, TQT_SIGNAL(gestureRecorded(bool)),
- this, TQT_SLOT(enableButtonOK(bool)));
+ connect(_page, TQ_SIGNAL(gestureRecorded(bool)),
+ this, TQ_SLOT(enableButtonOK(bool)));
setMainWidget( _page );
}
@@ -343,7 +343,7 @@ _trigger( trigger_P ), _page( NULL )
{
_page = new VoiceRecordPage( _trigger ? _trigger->voicecode() : TQString::null , this, "VoiceRecordPage");
- connect(_page, TQT_SIGNAL(voiceRecorded(bool)), this, TQT_SLOT(enableButtonOK(bool)));
+ connect(_page, TQ_SIGNAL(voiceRecorded(bool)), this, TQ_SLOT(enableButtonOK(bool)));
setMainWidget( _page );
}
diff --git a/khotkeys/kcontrol/ui/action_group_tab_ui.ui b/khotkeys/kcontrol/ui/action_group_tab_ui.ui
index 69d51ef55..5e56226a9 100644
--- a/khotkeys/kcontrol/ui/action_group_tab_ui.ui
+++ b/khotkeys/kcontrol/ui/action_group_tab_ui.ui
@@ -98,9 +98,9 @@
</widget>
</vbox>
</widget>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">action_group_name_changed( const TQString&amp; )</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">ktextedit.h</include>
diff --git a/khotkeys/kcontrol/ui/action_list_widget_ui.ui b/khotkeys/kcontrol/ui/action_list_widget_ui.ui
index 2895e5752..12537d770 100644
--- a/khotkeys/kcontrol/ui/action_list_widget_ui.ui
+++ b/khotkeys/kcontrol/ui/action_list_widget_ui.ui
@@ -185,14 +185,14 @@
<forwards>
<forward>class TQListViewItem;</forward>
</forwards>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">copy_pressed()</slot>
<slot access="protected" specifier="pure virtual">current_changed(TQListViewItem*)</slot>
<slot access="protected" specifier="pure virtual">delete_pressed()</slot>
<slot access="protected" specifier="pure virtual">modify_pressed()</slot>
<slot access="protected" specifier="pure virtual">move_up_pressed()</slot>
<slot access="protected" specifier="pure virtual">move_down_pressed()</slot>
-</Q_SLOTS>
+</slots>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
diff --git a/khotkeys/kcontrol/ui/command_url_widget_ui.ui b/khotkeys/kcontrol/ui/command_url_widget_ui.ui
index 5a285b32e..375ae4138 100644
--- a/khotkeys/kcontrol/ui/command_url_widget_ui.ui
+++ b/khotkeys/kcontrol/ui/command_url_widget_ui.ui
@@ -50,9 +50,9 @@
</widget>
</vbox>
</widget>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">browse_pressed()</slot>
-</Q_SLOTS>
+</slots>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
<include location="global" impldecl="in implementation">klineedit.h</include>
diff --git a/khotkeys/kcontrol/ui/condition_list_widget_ui.ui b/khotkeys/kcontrol/ui/condition_list_widget_ui.ui
index 269b889ce..98b13c653 100644
--- a/khotkeys/kcontrol/ui/condition_list_widget_ui.ui
+++ b/khotkeys/kcontrol/ui/condition_list_widget_ui.ui
@@ -184,14 +184,14 @@
<forwards>
<forward>class TQListViewItem;</forward>
</forwards>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">copy_pressed()</slot>
<slot access="protected" specifier="pure virtual">current_changed(TQListViewItem*)</slot>
<slot access="protected" specifier="pure virtual">delete_pressed()</slot>
<slot access="protected" specifier="pure virtual">modify_pressed()</slot>
<slot access="protected" specifier="pure virtual">move_up_pressed()</slot>
<slot access="protected" specifier="pure virtual">move_down_pressed()</slot>
-</Q_SLOTS>
+</slots>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
diff --git a/khotkeys/kcontrol/ui/dcop_widget_ui.ui b/khotkeys/kcontrol/ui/dcop_widget_ui.ui
index feeae535d..a9dc2e8c6 100644
--- a/khotkeys/kcontrol/ui/dcop_widget_ui.ui
+++ b/khotkeys/kcontrol/ui/dcop_widget_ui.ui
@@ -261,10 +261,10 @@
<tabstop>try_button</tabstop>
<tabstop>PushButton1</tabstop>
</tabstops>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">run_kdcop_pressed()</slot>
<slot access="protected" specifier="pure virtual">try_pressed()</slot>
-</Q_SLOTS>
+</slots>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
diff --git a/khotkeys/kcontrol/ui/general_settings_tab_ui.ui b/khotkeys/kcontrol/ui/general_settings_tab_ui.ui
index 9dc10309e..e119c8512 100644
--- a/khotkeys/kcontrol/ui/general_settings_tab_ui.ui
+++ b/khotkeys/kcontrol/ui/general_settings_tab_ui.ui
@@ -16,14 +16,6 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="TQCheckBox">
- <property name="name">
- <cstring>disable_daemon_checkbox</cstring>
- </property>
- <property name="text">
- <string>Disable KHotKeys daemon</string>
- </property>
- </widget>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1</cstring>
@@ -107,9 +99,9 @@
<include location="global" impldecl="in implementation">kdialog.h</include>
<include location="global" impldecl="in implementation">kpushbutton.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">import_clicked()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/khotkeys/kcontrol/ui/general_tab_ui.ui b/khotkeys/kcontrol/ui/general_tab_ui.ui
index 9deef2245..b422d09cc 100644
--- a/khotkeys/kcontrol/ui/general_tab_ui.ui
+++ b/khotkeys/kcontrol/ui/general_tab_ui.ui
@@ -133,10 +133,10 @@
</widget>
</vbox>
</widget>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">action_name_changed( const TQString&amp; )</slot>
<slot access="protected" specifier="pure virtual">action_type_changed(int)</slot>
-</Q_SLOTS>
+</slots>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
<include location="global" impldecl="in implementation">ktextedit.h</include>
diff --git a/khotkeys/kcontrol/ui/gesture_triggers_tab_ui.ui b/khotkeys/kcontrol/ui/gesture_triggers_tab_ui.ui
index 068806a02..c848ef4fe 100644
--- a/khotkeys/kcontrol/ui/gesture_triggers_tab_ui.ui
+++ b/khotkeys/kcontrol/ui/gesture_triggers_tab_ui.ui
@@ -506,11 +506,11 @@
<slot>edit_gesture_pressed3()</slot>
</connection>
</connections>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">edit_gesture_pressed1()</slot>
<slot access="protected" specifier="pure virtual">edit_gesture_pressed2()</slot>
<slot access="protected" specifier="pure virtual">edit_gesture_pressed3()</slot>
-</Q_SLOTS>
+</slots>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
diff --git a/khotkeys/kcontrol/ui/keyboard_input_widget_ui.ui b/khotkeys/kcontrol/ui/keyboard_input_widget_ui.ui
index 521e44f46..ff00fbf6e 100644
--- a/khotkeys/kcontrol/ui/keyboard_input_widget_ui.ui
+++ b/khotkeys/kcontrol/ui/keyboard_input_widget_ui.ui
@@ -183,9 +183,9 @@
<include location="global" impldecl="in implementation">kdialog.h</include>
<include location="global" impldecl="in implementation">ktextedit.h</include>
</includes>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">modify_pressed()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
</UI>
diff --git a/khotkeys/kcontrol/ui/menuentry_widget_ui.ui b/khotkeys/kcontrol/ui/menuentry_widget_ui.ui
index 6af0aefc6..a24d36665 100644
--- a/khotkeys/kcontrol/ui/menuentry_widget_ui.ui
+++ b/khotkeys/kcontrol/ui/menuentry_widget_ui.ui
@@ -89,9 +89,9 @@
<slot>browse_pressed()</slot>
</connection>
</connections>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">browse_pressed()</slot>
-</Q_SLOTS>
+</slots>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
diff --git a/khotkeys/kcontrol/ui/triggers_tab_ui.ui b/khotkeys/kcontrol/ui/triggers_tab_ui.ui
index 557be7dd4..e1d110522 100644
--- a/khotkeys/kcontrol/ui/triggers_tab_ui.ui
+++ b/khotkeys/kcontrol/ui/triggers_tab_ui.ui
@@ -157,12 +157,12 @@
<forwards>
<forward>class TQListViewItem;</forward>
</forwards>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">copy_pressed()</slot>
<slot access="protected" specifier="pure virtual">current_changed(TQListViewItem*)</slot>
<slot access="protected" specifier="pure virtual">delete_pressed()</slot>
<slot access="protected" specifier="pure virtual">modify_pressed()</slot>
-</Q_SLOTS>
+</slots>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
diff --git a/khotkeys/kcontrol/ui/voice_input_widget_ui.ui b/khotkeys/kcontrol/ui/voice_input_widget_ui.ui
index bcd113c57..8ccb8a9e2 100644
--- a/khotkeys/kcontrol/ui/voice_input_widget_ui.ui
+++ b/khotkeys/kcontrol/ui/voice_input_widget_ui.ui
@@ -90,11 +90,11 @@
<slot>slotPlayPressed()</slot>
</connection>
</connections>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">slotRecordPressed()</slot>
<slot access="protected" specifier="pure virtual">slotPlayPressed()</slot>
<slot access="protected" specifier="pure virtual">slotStopPressed()</slot>
-</Q_SLOTS>
+</slots>
<layoutdefaults spacing="6" margin="11"/>
<includes>
<include location="global" impldecl="in implementation">kpushbutton.h</include>
diff --git a/khotkeys/kcontrol/ui/windowdef_list_widget_ui.ui b/khotkeys/kcontrol/ui/windowdef_list_widget_ui.ui
index aaa52e891..78a106a81 100644
--- a/khotkeys/kcontrol/ui/windowdef_list_widget_ui.ui
+++ b/khotkeys/kcontrol/ui/windowdef_list_widget_ui.ui
@@ -156,12 +156,12 @@
<forwards>
<forward>class TQListViewItem;</forward>
</forwards>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">copy_pressed()</slot>
<slot access="protected" specifier="pure virtual">current_changed(TQListViewItem*)</slot>
<slot access="protected" specifier="pure virtual">delete_pressed()</slot>
<slot access="protected" specifier="pure virtual">modify_pressed()</slot>
-</Q_SLOTS>
+</slots>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
diff --git a/khotkeys/kcontrol/ui/windowdef_simple_widget_ui.ui b/khotkeys/kcontrol/ui/windowdef_simple_widget_ui.ui
index d15dab5df..a21633852 100644
--- a/khotkeys/kcontrol/ui/windowdef_simple_widget_ui.ui
+++ b/khotkeys/kcontrol/ui/windowdef_simple_widget_ui.ui
@@ -480,11 +480,11 @@
<tabstop>window_role_lineedit</tabstop>
<tabstop>autodetect_button</tabstop>
</tabstops>
-<Q_SLOTS>
+<slots>
<slot access="protected" specifier="pure virtual">window_class_combo_changed(int)</slot>
<slot access="protected" specifier="pure virtual">window_role_combo_changed(int)</slot>
<slot access="protected" specifier="pure virtual">window_title_combo_changed(int)</slot>
-</Q_SLOTS>
+</slots>
<includes>
<include location="global" impldecl="in implementation">kdialog.h</include>
</includes>
diff --git a/khotkeys/kcontrol/voice_settings_tab.cpp b/khotkeys/kcontrol/voice_settings_tab.cpp
index 1d97d69ab..952cc0dbe 100644
--- a/khotkeys/kcontrol/voice_settings_tab.cpp
+++ b/khotkeys/kcontrol/voice_settings_tab.cpp
@@ -26,7 +26,7 @@ namespace KHotKeys
Voice_settings_tab::Voice_settings_tab( TQWidget* parent_P, const char* name_P )
: Voice_settings_tab_ui( parent_P, name_P )
{
- connect( keyButton , TQT_SIGNAL(capturedShortcut (const TDEShortcut &)) , this, TQT_SLOT(slotCapturedKey( const TDEShortcut& )));
+ connect( keyButton , TQ_SIGNAL(capturedShortcut (const TDEShortcut &)) , this, TQ_SLOT(slotCapturedKey( const TDEShortcut& )));
}
void Voice_settings_tab::read_data()
diff --git a/khotkeys/kcontrol/voicerecorder.cpp b/khotkeys/kcontrol/voicerecorder.cpp
index 763e096e8..daef922c9 100644
--- a/khotkeys/kcontrol/voicerecorder.cpp
+++ b/khotkeys/kcontrol/voicerecorder.cpp
@@ -24,7 +24,7 @@
#include <tqpainter.h>
#include <tdemessagebox.h>
#include <klibloader.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -52,7 +52,7 @@ VoiceRecorder::VoiceRecorder(const Sound& sound_P, const TQString &voiceId, TQWi
buttonPlay->setEnabled(sound_P.size() > 50);
buttonStop->setEnabled(false);
- connect (_recorder , TQT_SIGNAL(recorded(const Sound& )) , this , TQT_SLOT(slotSoundRecorded(const Sound& ) ));
+ connect (_recorder , TQ_SIGNAL(recorded(const Sound& )) , this , TQ_SLOT(slotSoundRecorded(const Sound& ) ));
//if(voiceid_P.isEmpty())
emit recorded(false);
@@ -168,7 +168,7 @@ bool VoiceRecorder::drawSound()
uint lx=0;
uint ly=height/2;
- /*** DRAW THE TQT_SIGNAL ******/
+ /*** DRAW THE TQ_SIGNAL ******/
for(uint f=1; f<length; f++)
{
uint nx=f*width/length;
diff --git a/khotkeys/kcontrol/voicerecordpage.cpp b/khotkeys/kcontrol/voicerecordpage.cpp
index 1c7f8c938..d34ef7fad 100644
--- a/khotkeys/kcontrol/voicerecordpage.cpp
+++ b/khotkeys/kcontrol/voicerecordpage.cpp
@@ -12,7 +12,7 @@
#include <tqlabel.h>
#include <tqpushbutton.h>
#include <klineedit.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
@@ -59,9 +59,9 @@ VoiceRecordPage::VoiceRecordPage( const TQString &voiceid_P, TQWidget *parent, c
setStretchFactor(spacer, 1);
- connect(_recorder1, TQT_SIGNAL(recorded(bool)) , this, TQT_SLOT(slotChanged()));
- connect(_recorder2, TQT_SIGNAL(recorded(bool)) , this, TQT_SLOT(slotChanged()));
- connect(_lineEdit , TQT_SIGNAL( textChanged (const TQString&)) , this , TQT_SLOT(slotChanged()));
+ connect(_recorder1, TQ_SIGNAL(recorded(bool)) , this, TQ_SLOT(slotChanged()));
+ connect(_recorder2, TQ_SIGNAL(recorded(bool)) , this, TQ_SLOT(slotChanged()));
+ connect(_lineEdit , TQ_SIGNAL( textChanged (const TQString&)) , this , TQ_SLOT(slotChanged()));
}
diff --git a/khotkeys/kcontrol/waiting_widget.cpp b/khotkeys/kcontrol/waiting_widget.cpp
index 6f1c0c657..135261e30 100644
--- a/khotkeys/kcontrol/waiting_widget.cpp
+++ b/khotkeys/kcontrol/waiting_widget.cpp
@@ -33,8 +33,8 @@ Waiting_widget::Waiting_widget( TQWidget* parent_P, const char* name_P )
: Waiting_widget_ui( parent_P, name_P )
{
// KHotKeys::Module::changed()
- connect(waiting_spinbox, TQT_SIGNAL(valueChanged(int)),
- module, TQT_SLOT(changed()));
+ connect(waiting_spinbox, TQ_SIGNAL(valueChanged(int)),
+ module, TQ_SLOT(changed()));
}
void Waiting_widget::set_data( const Waiting_action* data_P )
diff --git a/khotkeys/kcontrol/window_trigger_widget.cpp b/khotkeys/kcontrol/window_trigger_widget.cpp
index c897cf14a..ad8871504 100644
--- a/khotkeys/kcontrol/window_trigger_widget.cpp
+++ b/khotkeys/kcontrol/window_trigger_widget.cpp
@@ -33,14 +33,14 @@ Window_trigger_widget::Window_trigger_widget( TQWidget* parent_P, const char* na
{
clear_data();
// KHotKeys::Module::changed()
- connect( window_appears_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( window_disappears_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( window_activates_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( window_deactivates_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
+ connect( window_appears_checkbox, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( window_disappears_checkbox, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( window_activates_checkbox, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( window_deactivates_checkbox, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
}
void Window_trigger_widget::clear_data()
diff --git a/khotkeys/kcontrol/windowdef_list_widget.cpp b/khotkeys/kcontrol/windowdef_list_widget.cpp
index dc16d780f..b36e46e0d 100644
--- a/khotkeys/kcontrol/windowdef_list_widget.cpp
+++ b/khotkeys/kcontrol/windowdef_list_widget.cpp
@@ -43,10 +43,10 @@ Windowdef_list_widget::Windowdef_list_widget( TQWidget* parent_P, const char* na
{
TQPopupMenu* popup = new TQPopupMenu; // CHECKME looks like setting parent doesn't work
popup->insertItem( i18n( "Simple Window..." ), TYPE_WINDOWDEF_SIMPLE );
- connect( popup, TQT_SIGNAL( activated( int )), TQT_SLOT( new_selected( int )));
+ connect( popup, TQ_SIGNAL( activated( int )), TQ_SLOT( new_selected( int )));
- connect( windows_listview, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
- this, TQT_SLOT( modify_pressed() ) );
+ connect( windows_listview, TQ_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ),
+ this, TQ_SLOT( modify_pressed() ) );
new_button->setPopup( popup );
windows_listview->header()->hide();
windows_listview->addColumn( "" );
@@ -57,16 +57,16 @@ Windowdef_list_widget::Windowdef_list_widget( TQWidget* parent_P, const char* na
delete_button->setEnabled( false );
clear_data();
// KHotKeys::Module::changed()
- connect( new_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( copy_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( modify_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( delete_button, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( comment_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
+ connect( new_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( copy_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( modify_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( delete_button, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( comment_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
}
Windowdef_list_widget::~Windowdef_list_widget()
diff --git a/khotkeys/kcontrol/windowdef_simple_widget.cpp b/khotkeys/kcontrol/windowdef_simple_widget.cpp
index f79d81ea1..381287166 100644
--- a/khotkeys/kcontrol/windowdef_simple_widget.cpp
+++ b/khotkeys/kcontrol/windowdef_simple_widget.cpp
@@ -37,31 +37,31 @@ Windowdef_simple_widget::Windowdef_simple_widget( TQWidget* parent_P, const char
window_title_lineedit->setEnabled( false );
window_class_lineedit->setEnabled( false );
window_role_lineedit->setEnabled( false );
- connect( autodetect_button, TQT_SIGNAL( clicked()), TQT_SLOT( autodetect_clicked()));
+ connect( autodetect_button, TQ_SIGNAL( clicked()), TQ_SLOT( autodetect_clicked()));
clear_data();
// KHotKeys::Module::changed()
- connect( window_title_combo, TQT_SIGNAL( activated( int )),
- module, TQT_SLOT( changed()));
- connect( window_title_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
- connect( window_class_combo, TQT_SIGNAL( activated( int )),
- module, TQT_SLOT( changed()));
- connect( window_class_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
- connect( window_role_combo, TQT_SIGNAL( activated( int )),
- module, TQT_SLOT( changed()));
- connect( window_role_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
- connect( type_normal_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( type_dialog_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( type_dock_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( type_desktop_checkbox, TQT_SIGNAL( clicked()),
- module, TQT_SLOT( changed()));
- connect( comment_lineedit, TQT_SIGNAL( textChanged( const TQString& )),
- module, TQT_SLOT( changed()));
+ connect( window_title_combo, TQ_SIGNAL( activated( int )),
+ module, TQ_SLOT( changed()));
+ connect( window_title_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
+ connect( window_class_combo, TQ_SIGNAL( activated( int )),
+ module, TQ_SLOT( changed()));
+ connect( window_class_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
+ connect( window_role_combo, TQ_SIGNAL( activated( int )),
+ module, TQ_SLOT( changed()));
+ connect( window_role_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
+ connect( type_normal_checkbox, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( type_dialog_checkbox, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( type_dock_checkbox, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( type_desktop_checkbox, TQ_SIGNAL( clicked()),
+ module, TQ_SLOT( changed()));
+ connect( comment_lineedit, TQ_SIGNAL( textChanged( const TQString& )),
+ module, TQ_SLOT( changed()));
}
void Windowdef_simple_widget::clear_data()
@@ -144,9 +144,9 @@ void Windowdef_simple_widget::window_title_combo_changed( int item_P )
void Windowdef_simple_widget::set_autodetect( TQObject* obj_P, const char* slot_P )
{
- disconnect( TQT_SIGNAL( autodetect_signal()));
+ disconnect( TQ_SIGNAL( autodetect_signal()));
if( obj_P != NULL )
- connect( this, TQT_SIGNAL( autodetect_signal()), obj_P, slot_P );
+ connect( this, TQ_SIGNAL( autodetect_signal()), obj_P, slot_P );
}
void Windowdef_simple_widget::autodetect_clicked()
@@ -157,7 +157,7 @@ void Windowdef_simple_widget::autodetect_clicked()
void Windowdef_simple_widget::autodetect()
{
- WindowSelector* sel = new WindowSelector( this, TQT_SLOT( autodetect_window_selected( WId )));
+ WindowSelector* sel = new WindowSelector( this, TQ_SLOT( autodetect_window_selected( WId )));
sel->select();
}
diff --git a/khotkeys/kcontrol/windowselector.cpp b/khotkeys/kcontrol/windowselector.cpp
index 3202c2241..0b3389fbe 100644
--- a/khotkeys/kcontrol/windowselector.cpp
+++ b/khotkeys/kcontrol/windowselector.cpp
@@ -29,20 +29,20 @@ namespace KHotKeys
WindowSelector::WindowSelector( TQObject* receiver_P, const char* slot_P )
{
- connect( this, TQT_SIGNAL( selected_signal( WId )), receiver_P, slot_P );
+ connect( this, TQ_SIGNAL( selected_signal( WId )), receiver_P, slot_P );
}
void WindowSelector::select()
{
- kapp->desktop()->grabMouse( TQCursor( TQt::crossCursor ));
- kapp->installX11EventFilter( this );
+ tdeApp->desktop()->grabMouse( TQCursor( TQt::crossCursor ));
+ tdeApp->installX11EventFilter( this );
}
bool WindowSelector::x11Event( XEvent* e )
{
if( e->type != ButtonPress )
return false;
- kapp->desktop()->releaseMouse();
+ tdeApp->desktop()->releaseMouse();
if( e->xbutton.button == Button1 )
{
WId window = findRealWindow( e->xbutton.subwindow );
diff --git a/khotkeys/shared/action_data.cpp b/khotkeys/shared/action_data.cpp
index 4f481ea59..7993f1dc8 100644
--- a/khotkeys/shared/action_data.cpp
+++ b/khotkeys/shared/action_data.cpp
@@ -295,7 +295,7 @@ Command_url_shortcut_action_data::Command_url_shortcut_action_data( Action_data_
set_trigger( new Shortcut_trigger( this, shortcut_P ));
}
-template<> KDE_EXPORT
+template<> TDE_EXPORT
void Simple_action_data< Shortcut_trigger, Command_url_action >
::cfg_write( TDEConfig& cfg_P ) const
{
@@ -315,7 +315,7 @@ Menuentry_shortcut_action_data::Menuentry_shortcut_action_data( Action_data_grou
set_trigger( new Shortcut_trigger( this, shortcut_P ));
}
-template<> KDE_EXPORT
+template<> TDE_EXPORT
void Simple_action_data< Shortcut_trigger, Menuentry_action >
::cfg_write( TDEConfig& cfg_P ) const
{
@@ -325,7 +325,7 @@ void Simple_action_data< Shortcut_trigger, Menuentry_action >
// Dcop_shortcut_action_data
-template<> KDE_EXPORT
+template<> TDE_EXPORT
void Simple_action_data< Shortcut_trigger, Dcop_action >
::cfg_write( TDEConfig& cfg_P ) const
{
@@ -335,7 +335,7 @@ void Simple_action_data< Shortcut_trigger, Dcop_action >
// Keyboard_input_shortcut_action_data
-template<> KDE_EXPORT
+template<> TDE_EXPORT
void Simple_action_data< Shortcut_trigger, Keyboard_input_action >
::cfg_write( TDEConfig& cfg_P ) const
{
@@ -345,7 +345,7 @@ void Simple_action_data< Shortcut_trigger, Keyboard_input_action >
// Activate_window_shortcut_action_data
-template<> KDE_EXPORT
+template<> TDE_EXPORT
void Simple_action_data< Shortcut_trigger, Activate_window_action >
::cfg_write( TDEConfig& cfg_P ) const
{
diff --git a/khotkeys/shared/action_data.h b/khotkeys/shared/action_data.h
index 5d84c6f18..a29ef591f 100644
--- a/khotkeys/shared/action_data.h
+++ b/khotkeys/shared/action_data.h
@@ -31,7 +31,7 @@ namespace KHotKeys
class Action_data_group;
-class KDE_EXPORT Action_data_base
+class TDE_EXPORT Action_data_base
{
public:
Action_data_base( Action_data_group* parent_P, const TQString& name_P,
@@ -61,7 +61,7 @@ class KDE_EXPORT Action_data_base
KHOTKEYS_DISABLE_COPY( Action_data_base );
};
-class KDE_EXPORT Action_data_group
+class TDE_EXPORT Action_data_group
: public Action_data_base
{
public:
@@ -88,7 +88,7 @@ class KDE_EXPORT Action_data_group
};
// this one represents a "whole" action, i.e. triggers, resulting actions, etc.
-class KDE_EXPORT Action_data
+class TDE_EXPORT Action_data
: public Action_data_base
{
typedef Action_data_base base;
@@ -121,7 +121,7 @@ class KDE_EXPORT Action_data
#endif
};
-class KDE_EXPORT Generic_action_data
+class TDE_EXPORT Generic_action_data
: public Action_data
{
typedef Action_data base;
@@ -141,7 +141,7 @@ class KDE_EXPORT Generic_action_data
};
template< typename T, typename A >
-class KDE_EXPORT Simple_action_data
+class TDE_EXPORT Simple_action_data
: public Action_data
{
typedef Action_data base;
@@ -157,7 +157,7 @@ class KDE_EXPORT Simple_action_data
virtual void cfg_write( TDEConfig& cfg_P ) const;
};
-class KDE_EXPORT Command_url_shortcut_action_data
+class TDE_EXPORT Command_url_shortcut_action_data
: public Simple_action_data< Shortcut_trigger, Command_url_action >
{
typedef Simple_action_data< Shortcut_trigger, Command_url_action > base;
@@ -170,7 +170,7 @@ class KDE_EXPORT Command_url_shortcut_action_data
Command_url_shortcut_action_data( TDEConfig& cfg_P, Action_data_group* parent_P );
};
-class KDE_EXPORT Menuentry_shortcut_action_data
+class TDE_EXPORT Menuentry_shortcut_action_data
: public Simple_action_data< Shortcut_trigger, Menuentry_action >
{
typedef Simple_action_data< Shortcut_trigger, Menuentry_action > base;
@@ -189,7 +189,7 @@ typedef Simple_action_data< Shortcut_trigger, Keyboard_input_action >
typedef Simple_action_data< Shortcut_trigger, Activate_window_action >
Activate_window_shortcut_action_data;
-class KDE_EXPORT Keyboard_input_gesture_action_data
+class TDE_EXPORT Keyboard_input_gesture_action_data
: public Action_data
{
typedef Action_data base;
diff --git a/khotkeys/shared/actions.cpp b/khotkeys/shared/actions.cpp
index 69c853fed..b5e7baa8e 100644
--- a/khotkeys/shared/actions.cpp
+++ b/khotkeys/shared/actions.cpp
@@ -21,14 +21,14 @@
#include <kdebug.h>
#include <kurifilter.h>
#include <tdeglobal.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeapplication.h>
#include <dcopclient.h>
-#include <kdesktopfile.h>
+#include <tdedesktopfile.h>
#include <tdelocale.h>
#include <tdeaccel.h>
#include <kservice.h>
-#include <kprocess.h>
+#include <tdeprocess.h>
#include <tdemessagebox.h>
#include "windows.h"
@@ -124,7 +124,7 @@ void Command_url_action::execute()
static bool sm_ready = false;
if( !sm_ready )
{
- kapp->propagateSessionManager();
+ tdeApp->propagateSessionManager();
sm_ready = true;
}
// int space_pos = command_url().find( ' ' );
@@ -149,7 +149,7 @@ void Command_url_action::execute()
}
case KURIFilterData::EXECUTABLE:
{
- if (!kapp->authorize("shell_access"))
+ if (!tdeApp->authorize("shell_access"))
return;
if( !uri.hasArgsAndOptions())
{
@@ -167,7 +167,7 @@ void Command_url_action::execute()
}
case KURIFilterData::SHELL:
{
- if (!kapp->authorize("shell_access"))
+ if (!tdeApp->authorize("shell_access"))
return;
if( !KRun::runCommand(
cmd + ( uri.hasArgsAndOptions() ? uri.argsAndOptions() : "" ),
diff --git a/khotkeys/shared/actions.h b/khotkeys/shared/actions.h
index c7cabf0fc..d2e63db85 100644
--- a/khotkeys/shared/actions.h
+++ b/khotkeys/shared/actions.h
@@ -30,7 +30,7 @@ class Windowdef_list;
// this one is a base for all "real" resulting actions, e.g. running a command,
// Action_data instances usually contain at least one Action
-class KDE_EXPORT Action
+class TDE_EXPORT Action
{
public:
Action( Action_data* data_P );
@@ -46,7 +46,7 @@ class KDE_EXPORT Action
KHOTKEYS_DISABLE_COPY( Action );
};
-class KDE_EXPORT Action_list
+class TDE_EXPORT Action_list
: public TQPtrList< Action >
{
public:
@@ -60,7 +60,7 @@ class KDE_EXPORT Action_list
KHOTKEYS_DISABLE_COPY( Action_list );
};
-class KDE_EXPORT Command_url_action
+class TDE_EXPORT Command_url_action
: public Action
{
typedef Action base;
@@ -78,7 +78,7 @@ class KDE_EXPORT Command_url_action
TQString _command_url;
};
-class KDE_EXPORT Menuentry_action
+class TDE_EXPORT Menuentry_action
: public Command_url_action
{
typedef Command_url_action base;
@@ -94,7 +94,7 @@ class KDE_EXPORT Menuentry_action
KService::Ptr _service;
};
-class KDE_EXPORT Dcop_action
+class TDE_EXPORT Dcop_action
: public Action
{
typedef Action base;
@@ -117,7 +117,7 @@ class KDE_EXPORT Dcop_action
TQString args;
};
-class KDE_EXPORT Keyboard_input_action
+class TDE_EXPORT Keyboard_input_action
: public Action
{
typedef Action base;
@@ -142,7 +142,7 @@ class KDE_EXPORT Keyboard_input_action
bool _active_window;
};
-class KDE_EXPORT Activate_window_action
+class TDE_EXPORT Activate_window_action
: public Action
{
typedef Action base;
@@ -159,7 +159,7 @@ class KDE_EXPORT Activate_window_action
const Windowdef_list* _window;
};
-class KDE_EXPORT Waiting_action
+class TDE_EXPORT Waiting_action
: public Action
{
typedef Action base;
diff --git a/khotkeys/shared/conditions.cpp b/khotkeys/shared/conditions.cpp
index b09284b44..1d9f37b9c 100644
--- a/khotkeys/shared/conditions.cpp
+++ b/khotkeys/shared/conditions.cpp
@@ -257,8 +257,8 @@ Active_window_condition::Active_window_condition( TDEConfig& cfg_P, Condition_li
void Active_window_condition::init()
{
- connect( windows_handler, TQT_SIGNAL( active_window_changed( WId )),
- this, TQT_SLOT( active_window_changed( WId )));
+ connect( windows_handler, TQ_SIGNAL( active_window_changed( WId )),
+ this, TQ_SLOT( active_window_changed( WId )));
}
bool Active_window_condition::match() const
@@ -323,8 +323,8 @@ Existing_window_condition::Existing_window_condition( TDEConfig& cfg_P, Conditio
void Existing_window_condition::init()
{
- connect( windows_handler, TQT_SIGNAL( window_added( WId )), this, TQT_SLOT( window_added( WId )));
- connect( windows_handler, TQT_SIGNAL( window_removed( WId )), this, TQT_SLOT( window_removed( WId )));
+ connect( windows_handler, TQ_SIGNAL( window_added( WId )), this, TQ_SLOT( window_added( WId )));
+ connect( windows_handler, TQ_SIGNAL( window_removed( WId )), this, TQ_SLOT( window_removed( WId )));
}
bool Existing_window_condition::match() const
diff --git a/khotkeys/shared/conditions.h b/khotkeys/shared/conditions.h
index 8e5b9e813..02b43a63c 100644
--- a/khotkeys/shared/conditions.h
+++ b/khotkeys/shared/conditions.h
@@ -30,7 +30,7 @@ class Action_data_base;
class Action_data;
class Condition_list_base;
-class KDE_EXPORT Condition
+class TDE_EXPORT Condition
{
public:
Condition( Condition_list_base* parent_P );
@@ -49,7 +49,7 @@ class KDE_EXPORT Condition
KHOTKEYS_DISABLE_COPY( Condition );
};
-class KDE_EXPORT Condition_list_base
+class TDE_EXPORT Condition_list_base
: public Condition, public TQPtrList< Condition > // inheritance ?
{
typedef Condition base;
@@ -64,7 +64,7 @@ class KDE_EXPORT Condition_list_base
typedef TQPtrListIterator< Condition > Iterator;
};
-class KDE_EXPORT Condition_list
+class TDE_EXPORT Condition_list
: public Condition_list_base
{
typedef Condition_list_base base;
@@ -84,7 +84,7 @@ class KDE_EXPORT Condition_list
Action_data_base* data;
};
-class KDE_EXPORT Active_window_condition
+class TDE_EXPORT Active_window_condition
: public TQObject, public Condition
{
TQ_OBJECT
@@ -111,7 +111,7 @@ class KDE_EXPORT Active_window_condition
bool is_match;
};
-class KDE_EXPORT Existing_window_condition
+class TDE_EXPORT Existing_window_condition
: public TQObject, public Condition
{
TQ_OBJECT
@@ -139,7 +139,7 @@ class KDE_EXPORT Existing_window_condition
bool is_match;
};
-class KDE_EXPORT Not_condition
+class TDE_EXPORT Not_condition
: public Condition_list_base
{
typedef Condition_list_base base;
@@ -154,7 +154,7 @@ class KDE_EXPORT Not_condition
virtual bool accepts_children() const;
};
-class KDE_EXPORT And_condition
+class TDE_EXPORT And_condition
: public Condition_list_base
{
typedef Condition_list_base base;
@@ -167,7 +167,7 @@ class KDE_EXPORT And_condition
virtual const TQString description() const;
};
-class KDE_EXPORT Or_condition
+class TDE_EXPORT Or_condition
: public Condition_list_base
{
typedef Condition_list_base base;
diff --git a/khotkeys/shared/gestures.cpp b/khotkeys/shared/gestures.cpp
index 9933ba74f..d38d4f023 100644
--- a/khotkeys/shared/gestures.cpp
+++ b/khotkeys/shared/gestures.cpp
@@ -49,9 +49,9 @@ Gesture::Gesture( bool /*enabled_P*/, TQObject* parent_P )
(void) new DeleteObject( this, parent_P );
assert( gesture_handler == NULL );
gesture_handler = this;
- connect( &nostroke_timer, TQT_SIGNAL( timeout()), TQT_SLOT( stroke_timeout()));
- connect( windows_handler, TQT_SIGNAL( active_window_changed( WId )),
- TQT_SLOT( active_window_changed( WId )));
+ connect( &nostroke_timer, TQ_SIGNAL( timeout()), TQ_SLOT( stroke_timeout()));
+ connect( windows_handler, TQ_SIGNAL( active_window_changed( WId )),
+ TQ_SLOT( active_window_changed( WId )));
}
Gesture::~Gesture()
@@ -86,15 +86,15 @@ void Gesture::update_grab()
if( _enabled && handlers.count() > 0
&& ( exclude == NULL || !exclude->match( Window_data( windows_handler->active_window()))))
{
- kapp->removeX11EventFilter( this ); // avoid being installed twice
- kapp->installX11EventFilter( this );
+ tdeApp->removeX11EventFilter( this ); // avoid being installed twice
+ tdeApp->installX11EventFilter( this );
// CHECKME at se grabuje jen kdyz je alespon jedno gesto?
grab_mouse( true );
}
else
{
grab_mouse( false );
- kapp->removeX11EventFilter( this );
+ tdeApp->removeX11EventFilter( this );
}
}
@@ -108,7 +108,7 @@ void Gesture::register_handler( TQObject* receiver_P, const char* slot_P )
if( handlers.contains( receiver_P ))
return;
handlers[ receiver_P ] = true;
- connect( this, TQT_SIGNAL( handle_gesture( const TQString&, WId )),
+ connect( this, TQ_SIGNAL( handle_gesture( const TQString&, WId )),
receiver_P, slot_P );
if( handlers.count() == 1 )
update_grab();
@@ -119,7 +119,7 @@ void Gesture::unregister_handler( TQObject* receiver_P, const char* slot_P )
if( !handlers.contains( receiver_P ))
return;
handlers.remove( receiver_P );
- disconnect( this, TQT_SIGNAL( handle_gesture( const TQString&, WId )),
+ disconnect( this, TQ_SIGNAL( handle_gesture( const TQString&, WId )),
receiver_P, slot_P );
if( handlers.count() == 0 )
update_grab();
diff --git a/khotkeys/shared/gestures.h b/khotkeys/shared/gestures.h
index 01da65d00..9f4825f93 100644
--- a/khotkeys/shared/gestures.h
+++ b/khotkeys/shared/gestures.h
@@ -23,9 +23,9 @@ namespace KHotKeys
{
class Gesture;
-KDE_EXPORT extern Gesture* gesture_handler;
+TDE_EXPORT extern Gesture* gesture_handler;
-class KDE_EXPORT Stroke
+class TDE_EXPORT Stroke
{
public:
// maximum number of numbers in stroke
@@ -62,7 +62,7 @@ class KDE_EXPORT Stroke
char ret_val[ MAX_SEQUENCE ];
};
-class KDE_EXPORT Gesture
+class TDE_EXPORT Gesture
: public TQWidget // not TQObject because of x11EventFilter()
{
TQ_OBJECT
diff --git a/khotkeys/shared/input.cpp b/khotkeys/shared/input.cpp
index 7b9696c7e..44176ef44 100644
--- a/khotkeys/shared/input.cpp
+++ b/khotkeys/shared/input.cpp
@@ -19,7 +19,7 @@
#include <assert.h>
#include <tqwidget.h>
-#include <kglobalaccel.h>
+#include <tdeglobalaccel.h>
#include <kdebug.h>
#include <tdeapplication.h>
#include <tdeversion.h>
@@ -106,12 +106,12 @@ void Kbd::grab_shortcut( const TDEShortcut& shortcut_P )
// CHECKME ugly ugly hack
TQString name = ' ' + TQString::number( keycode_P );
kga->insertItem( "", name, keycode_P );
- kga->connectItem( name, this, TQT_SLOT( key_slot( int )));
+ kga->connectItem( name, this, TQ_SLOT( key_slot( int )));
#endif
TQString name = ' ' + shortcut_P.toStringInternal();
kga->insert( name, name, TQString::null, shortcut_P, shortcut_P,
- this, TQT_SLOT( key_slot( TQString )));
- TQTimer::singleShot( 0, this, TQT_SLOT( update_connections()));
+ this, TQ_SLOT( key_slot( TQString )));
+ TQTimer::singleShot( 0, this, TQ_SLOT( update_connections()));
}
}
@@ -129,7 +129,7 @@ void Kbd::ungrab_shortcut( const TDEShortcut& shortcut_P )
#endif
kga->remove( ' ' + shortcut_P.toStringInternal());
grabs.remove( shortcut_P );
- TQTimer::singleShot( 0, this, TQT_SLOT( update_connections()));
+ TQTimer::singleShot( 0, this, TQ_SLOT( update_connections()));
}
}
diff --git a/khotkeys/shared/khlistbox.cpp b/khotkeys/shared/khlistbox.cpp
index ff6d96221..f0080d6de 100644
--- a/khotkeys/shared/khlistbox.cpp
+++ b/khotkeys/shared/khlistbox.cpp
@@ -25,15 +25,15 @@ KHListBox::KHListBox( TQWidget* parent_P, const char* name_P )
: TQListBox( parent_P, name_P ), saved_current_item( NULL ),
in_clear( false ), force_select( false )
{
- connect( this, TQT_SIGNAL( selectionChanged( TQListBoxItem* )),
- TQT_SLOT( slot_selection_changed( TQListBoxItem* )));
- connect( this, TQT_SIGNAL( currentChanged( TQListBoxItem* )),
- TQT_SLOT( slot_current_changed( TQListBoxItem* )));
+ connect( this, TQ_SIGNAL( selectionChanged( TQListBoxItem* )),
+ TQ_SLOT( slot_selection_changed( TQListBoxItem* )));
+ connect( this, TQ_SIGNAL( currentChanged( TQListBoxItem* )),
+ TQ_SLOT( slot_current_changed( TQListBoxItem* )));
// CHECKME grrr
- connect( this, TQT_SIGNAL( selectionChanged()),
- TQT_SLOT( slot_selection_changed()));
- connect( &insert_select_timer, TQT_SIGNAL( timeout()),
- TQT_SLOT( slot_insert_select()));
+ connect( this, TQ_SIGNAL( selectionChanged()),
+ TQ_SLOT( slot_selection_changed()));
+ connect( &insert_select_timer, TQ_SIGNAL( timeout()),
+ TQ_SLOT( slot_insert_select()));
}
void KHListBox::slot_selection_changed()
diff --git a/khotkeys/shared/khlistview.cpp b/khotkeys/shared/khlistview.cpp
index ae348af33..a9943996a 100644
--- a/khotkeys/shared/khlistview.cpp
+++ b/khotkeys/shared/khlistview.cpp
@@ -25,15 +25,15 @@ KHListView::KHListView( TQWidget* parent_P, const char* name_P )
: TDEListView( parent_P, name_P ), saved_current_item( NULL ),
in_clear( false ), ignore( false ), force_select( false )
{
- connect( this, TQT_SIGNAL( selectionChanged( TQListViewItem* )),
- TQT_SLOT( slot_selection_changed( TQListViewItem* )));
- connect( this, TQT_SIGNAL( currentChanged( TQListViewItem* )),
- TQT_SLOT( slot_current_changed( TQListViewItem* )));
+ connect( this, TQ_SIGNAL( selectionChanged( TQListViewItem* )),
+ TQ_SLOT( slot_selection_changed( TQListViewItem* )));
+ connect( this, TQ_SIGNAL( currentChanged( TQListViewItem* )),
+ TQ_SLOT( slot_current_changed( TQListViewItem* )));
// CHECKME grrr
- connect( this, TQT_SIGNAL( selectionChanged()),
- TQT_SLOT( slot_selection_changed()));
- connect( &insert_select_timer, TQT_SIGNAL( timeout()),
- TQT_SLOT( slot_insert_select()));
+ connect( this, TQ_SIGNAL( selectionChanged()),
+ TQ_SLOT( slot_selection_changed()));
+ connect( &insert_select_timer, TQ_SIGNAL( timeout()),
+ TQ_SLOT( slot_insert_select()));
}
void KHListView::slot_selection_changed()
diff --git a/khotkeys/shared/khlistview.h b/khotkeys/shared/khlistview.h
index 1a0f27e2b..01fbf9e28 100644
--- a/khotkeys/shared/khlistview.h
+++ b/khotkeys/shared/khlistview.h
@@ -14,12 +14,12 @@
#include <tqtimer.h>
#include <tdelistview.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
namespace KHotKeys
{
-class KDE_EXPORT KHListView
+class TDE_EXPORT KHListView
: public TDEListView
{
TQ_OBJECT
diff --git a/khotkeys/shared/khotkeysglobal.cpp b/khotkeys/shared/khotkeysglobal.cpp
index 87fe74c38..123aa8bf9 100644
--- a/khotkeys/shared/khotkeysglobal.cpp
+++ b/khotkeys/shared/khotkeysglobal.cpp
@@ -18,7 +18,7 @@
#include <assert.h>
#include <kdebug.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <klibloader.h>
#include "input.h"
diff --git a/khotkeys/shared/khotkeysglobal.h b/khotkeys/shared/khotkeysglobal.h
index c97ef1dea..427958936 100644
--- a/khotkeys/shared/khotkeysglobal.h
+++ b/khotkeys/shared/khotkeysglobal.h
@@ -38,17 +38,17 @@ extern Windows* windows_handler;
#define KHOTKEYS_DISABLE_COPY( cls ) private: cls( const cls& ); cls& operator=( const cls& )
// CHECKME hmms :(
-KDE_EXPORT bool khotkeys_active();
-KDE_EXPORT void khotkeys_set_active( bool active_P );
+TDE_EXPORT bool khotkeys_active();
+TDE_EXPORT void khotkeys_set_active( bool active_P );
TQString get_menu_entry_from_path( const TQString& path_P );
-KDE_EXPORT void init_global_data( bool active_P, TQObject* owner_P );
+TDE_EXPORT void init_global_data( bool active_P, TQObject* owner_P );
const char* const MENU_EDITOR_ENTRIES_GROUP_NAME = I18N_NOOP( "Menu Editor entries" );
-KDE_EXPORT bool haveArts();
-KDE_EXPORT void disableArts();
+TDE_EXPORT bool haveArts();
+TDE_EXPORT void disableArts();
//***************************************************************************
// Inline
diff --git a/khotkeys/shared/settings.cpp b/khotkeys/shared/settings.cpp
index becacd5d1..c4068564e 100644
--- a/khotkeys/shared/settings.cpp
+++ b/khotkeys/shared/settings.cpp
@@ -103,8 +103,6 @@ bool Settings::read_settings( TDEConfig& cfg_P, bool include_disabled_P, ImportT
}
if( import_P != ImportNone )
return true; // don't read global settings
- cfg_P.setGroup( "Main" ); // main group
- daemon_disabled = cfg_P.readBoolEntry( "Disabled", false );
cfg_P.setGroup( "Gestures" );
gestures_disabled_globally = cfg_P.readBoolEntry( "Disabled", true );
gesture_mouse_button = cfg_P.readNumEntry( "MouseButton", 2 );
@@ -132,9 +130,6 @@ void Settings::write_settings()
cfg.writeEntry( "AlreadyImported", already_imported );
cfg.setGroup( "Data" );
int cnt = write_actions_recursively_v2( cfg, actions, true );
- cfg.setGroup( "Main" );
- cfg.writeEntry( "Autostart", cnt != 0 && !daemon_disabled );
- cfg.writeEntry( "Disabled", daemon_disabled );
cfg.setGroup( "Gestures" );
cfg.writeEntry( "Disabled", gestures_disabled_globally );
cfg.writeEntry( "MouseButton", gesture_mouse_button );
@@ -155,7 +150,6 @@ void Settings::write_settings()
// return value means the number of enabled actions written in the cfg file
-// i.e. 'Autostart' for value > 0 should be on
int Settings::write_actions_recursively_v2( TDEConfig& cfg_P, Action_data_group* parent_P, bool enabled_P )
{
int enabled_cnt = 0;
diff --git a/khotkeys/shared/settings.h b/khotkeys/shared/settings.h
index e28502cfe..da4a291c1 100644
--- a/khotkeys/shared/settings.h
+++ b/khotkeys/shared/settings.h
@@ -26,7 +26,7 @@ enum ImportType
ImportSilent // if already imported before, ignore (called from the update script)
};
-class KDE_EXPORT Settings
+class TDE_EXPORT Settings
{
public:
Settings();
@@ -37,7 +37,6 @@ class KDE_EXPORT Settings
bool gestures_disabled_globally;
int gesture_mouse_button;
int gesture_timeout;
- bool daemon_disabled;
Windowdef_list* gestures_exclude;
TDEShortcut voice_shortcut;
protected:
diff --git a/khotkeys/shared/sound.h b/khotkeys/shared/sound.h
index 6453563de..f62eb2855 100644
--- a/khotkeys/shared/sound.h
+++ b/khotkeys/shared/sound.h
@@ -22,12 +22,12 @@
#include <tqmemarray.h>
#include <tqstring.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
/**
@author Olivier Goffart
*/
-class KDE_EXPORT Sound{
+class TDE_EXPORT Sound{
public:
Sound();
~Sound();
diff --git a/khotkeys/shared/soundrecorder.h b/khotkeys/shared/soundrecorder.h
index 5a770abbe..5f0ffe9fe 100644
--- a/khotkeys/shared/soundrecorder.h
+++ b/khotkeys/shared/soundrecorder.h
@@ -22,7 +22,7 @@
#include <tqobject.h>
#include "sound.h"
-#include <kdemacros.h>
+#include <tdemacros.h>
class KLibrary;
@@ -34,7 +34,7 @@ namespace KHotKeys
/**
@author Olivier Goffart
*/
-class KDE_EXPORT SoundRecorder : public TQObject
+class TDE_EXPORT SoundRecorder : public TQObject
{
TQ_OBJECT
public:
diff --git a/khotkeys/shared/triggers.cpp b/khotkeys/shared/triggers.cpp
index 5bd8dbe3e..5457d8226 100644
--- a/khotkeys/shared/triggers.cpp
+++ b/khotkeys/shared/triggers.cpp
@@ -16,7 +16,7 @@
#include "triggers.h"
-#include <kglobalaccel.h>
+#include <tdeglobalaccel.h>
#include <tdeconfig.h>
#include <kdebug.h>
#include <twinmodule.h>
@@ -197,13 +197,13 @@ Window_trigger::~Window_trigger()
void Window_trigger::init()
{
kdDebug( 1217 ) << "Window_trigger::init()" << endl;
- connect( windows_handler, TQT_SIGNAL( window_added( WId )), this, TQT_SLOT( window_added( WId )));
- connect( windows_handler, TQT_SIGNAL( window_removed( WId )), this, TQT_SLOT( window_removed( WId )));
+ connect( windows_handler, TQ_SIGNAL( window_added( WId )), this, TQ_SLOT( window_added( WId )));
+ connect( windows_handler, TQ_SIGNAL( window_removed( WId )), this, TQ_SLOT( window_removed( WId )));
if( window_actions & ( WINDOW_ACTIVATES | WINDOW_DEACTIVATES /*| WINDOW_DISAPPEARS*/ ))
- connect( windows_handler, TQT_SIGNAL( active_window_changed( WId )),
- this, TQT_SLOT( active_window_changed( WId )));
- connect( windows_handler, TQT_SIGNAL( window_changed( WId, unsigned int )),
- this, TQT_SLOT( window_changed( WId, unsigned int )));
+ connect( windows_handler, TQ_SIGNAL( active_window_changed( WId )),
+ this, TQ_SLOT( active_window_changed( WId )));
+ connect( windows_handler, TQ_SIGNAL( window_changed( WId, unsigned int )),
+ this, TQ_SLOT( window_changed( WId, unsigned int )));
}
void Window_trigger::activate( bool activate_P )
@@ -335,7 +335,7 @@ Gesture_trigger::Gesture_trigger( TDEConfig& cfg_P, Action_data* data_P )
Gesture_trigger::~Gesture_trigger()
{
- gesture_handler->unregister_handler( this, TQT_SLOT( handle_gesture( const TQString&, WId )));
+ gesture_handler->unregister_handler( this, TQ_SLOT( handle_gesture( const TQString&, WId )));
}
void Gesture_trigger::cfg_write( TDEConfig& cfg_P ) const
@@ -368,9 +368,9 @@ void Gesture_trigger::handle_gesture( const TQString &gesture_P, WId window_P )
void Gesture_trigger::activate( bool activate_P )
{
if( activate_P )
- gesture_handler->register_handler( this, TQT_SLOT( handle_gesture( const TQString&, WId )));
+ gesture_handler->register_handler( this, TQ_SLOT( handle_gesture( const TQString&, WId )));
else
- gesture_handler->unregister_handler( this, TQT_SLOT( handle_gesture( const TQString&, WId )));
+ gesture_handler->unregister_handler( this, TQ_SLOT( handle_gesture( const TQString&, WId )));
}
diff --git a/khotkeys/shared/triggers.h b/khotkeys/shared/triggers.h
index 3ed2171f0..681f784b7 100644
--- a/khotkeys/shared/triggers.h
+++ b/khotkeys/shared/triggers.h
@@ -14,7 +14,7 @@
#include <tqptrlist.h>
#include <tqtimer.h>
#include <tqmap.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
#include "khotkeysglobal.h"
#include "voicesignature.h"
@@ -29,7 +29,7 @@ namespace KHotKeys
class Windowdef_list;
class Action_data;
-class KDE_EXPORT Trigger
+class TDE_EXPORT Trigger
{
public:
Trigger( Action_data* data_P );
@@ -45,7 +45,7 @@ class KDE_EXPORT Trigger
KHOTKEYS_DISABLE_COPY( Trigger );
};
-class KDE_EXPORT Trigger_list
+class TDE_EXPORT Trigger_list
: public TQPtrList< Trigger >
{
public:
@@ -61,7 +61,7 @@ class KDE_EXPORT Trigger_list
KHOTKEYS_DISABLE_COPY( Trigger_list );
};
-class KDE_EXPORT Shortcut_trigger
+class TDE_EXPORT Shortcut_trigger
: public Trigger, public Kbd_receiver
{
typedef Trigger base;
@@ -79,7 +79,7 @@ class KDE_EXPORT Shortcut_trigger
TDEShortcut _shortcut;
};
-class KDE_EXPORT Window_trigger
+class TDE_EXPORT Window_trigger
: public TQObject, public Trigger
{
TQ_OBJECT
@@ -121,7 +121,7 @@ class KDE_EXPORT Window_trigger
bool active;
};
-class KDE_EXPORT Gesture_trigger
+class TDE_EXPORT Gesture_trigger
: public TQObject, public Trigger
{
TQ_OBJECT
@@ -142,7 +142,7 @@ class KDE_EXPORT Gesture_trigger
};
-class KDE_EXPORT Voice_trigger
+class TDE_EXPORT Voice_trigger
: public TQObject, public Trigger
{
TQ_OBJECT
diff --git a/khotkeys/shared/voices.cpp b/khotkeys/shared/voices.cpp
index a31ac8237..693c01044 100644
--- a/khotkeys/shared/voices.cpp
+++ b/khotkeys/shared/voices.cpp
@@ -28,7 +28,7 @@
#include <kxerrorhandler.h>
#include <kkeynative.h>
#include <tqtimer.h>
-#include <kglobalaccel.h>
+#include <tdeglobalaccel.h>
#include <X11/Xlib.h>
@@ -95,7 +95,7 @@ void Voice::record_start()
if(!_recorder)
{
_recorder= SoundRecorder::create(this);
- connect(_recorder, TQT_SIGNAL(recorded(const Sound& )), this, TQT_SLOT(slot_sound_recorded(const Sound& )));
+ connect(_recorder, TQ_SIGNAL(recorded(const Sound& )), this, TQ_SLOT(slot_sound_recorded(const Sound& )));
}
_recorder->start();
@@ -208,7 +208,7 @@ void Voice::set_shortcut( const TDEShortcut &shortcut)
_kga = new TDEGlobalAccel( this );
_kga->remove("voice");
- _kga->insert( "voice", i18n("Voice"), TQString::null, shortcut, 0, this, TQT_SLOT(slot_key_pressed())) ;
+ _kga->insert( "voice", i18n("Voice"), TQString::null, shortcut, 0, this, TQ_SLOT(slot_key_pressed())) ;
_kga->updateConnections();
}
@@ -224,7 +224,7 @@ void Voice::slot_key_pressed()
if(!_timer)
{
_timer=new TQTimer(this);
- connect(_timer, TQT_SIGNAL(timeout()) , this, TQT_SLOT(slot_timeout()));
+ connect(_timer, TQ_SIGNAL(timeout()) , this, TQ_SLOT(slot_timeout()));
}
_timer->start(1000*20,true);
diff --git a/khotkeys/shared/voices.h b/khotkeys/shared/voices.h
index ccf7943fc..f5e1127ff 100644
--- a/khotkeys/shared/voices.h
+++ b/khotkeys/shared/voices.h
@@ -28,7 +28,7 @@ class Voice_trigger;
class VoiceSignature;
-class KDE_EXPORT Voice : public TQObject
+class TDE_EXPORT Voice : public TQObject
{
TQ_OBJECT
public:
@@ -76,7 +76,7 @@ class KDE_EXPORT Voice : public TQObject
};
-KDE_EXPORT extern Voice* voice_handler;
+TDE_EXPORT extern Voice* voice_handler;
} // namespace KHotKeys
diff --git a/khotkeys/shared/voicesignature.h b/khotkeys/shared/voicesignature.h
index af987cce1..e0f31bb31 100644
--- a/khotkeys/shared/voicesignature.h
+++ b/khotkeys/shared/voicesignature.h
@@ -23,7 +23,7 @@
#include <tqmemarray.h>
#include <tqmap.h>
-#include <kdemacros.h>
+#include <tdemacros.h>
class Sound;
class TDEConfigBase;
@@ -66,7 +66,7 @@ namespace KHotKeys
/**
@author Olivier Goffart
*/
-class KDE_EXPORT VoiceSignature{
+class TDE_EXPORT VoiceSignature{
public:
explicit VoiceSignature(const Sound& s);
diff --git a/khotkeys/shared/windows.cpp b/khotkeys/shared/windows.cpp
index 077bf7b1d..e91e41df3 100644
--- a/khotkeys/shared/windows.cpp
+++ b/khotkeys/shared/windows.cpp
@@ -45,10 +45,10 @@ Windows::Windows( bool enable_signal_P, TQObject* parent_P )
windows_handler = this;
if( signals_enabled )
{
- connect( twin_module, TQT_SIGNAL( windowAdded( WId )), TQT_SLOT( window_added_slot( WId )));
- connect( twin_module, TQT_SIGNAL( windowRemoved( WId )), TQT_SLOT( window_removed_slot( WId )));
- connect( twin_module, TQT_SIGNAL( activeWindowChanged( WId )),
- TQT_SLOT( active_window_changed_slot( WId )));
+ connect( twin_module, TQ_SIGNAL( windowAdded( WId )), TQ_SLOT( window_added_slot( WId )));
+ connect( twin_module, TQ_SIGNAL( windowRemoved( WId )), TQ_SLOT( window_removed_slot( WId )));
+ connect( twin_module, TQ_SIGNAL( activeWindowChanged( WId )),
+ TQ_SLOT( active_window_changed_slot( WId )));
}
}
diff --git a/khotkeys/shared/windows.h b/khotkeys/shared/windows.h
index e9868e52b..05890c435 100644
--- a/khotkeys/shared/windows.h
+++ b/khotkeys/shared/windows.h
@@ -34,7 +34,7 @@ const int SUPPORTED_WINDOW_TYPES_MASK = NET::NormalMask | NET::DesktopMask | NET
class Windowdef_list;
/*class Action_data_base;*/
-class KDE_EXPORT Windows
+class TDE_EXPORT Windows
: public TQObject
{
TQ_OBJECT
@@ -67,7 +67,7 @@ class KDE_EXPORT Windows
WId _action_window;
};
-struct KDE_EXPORT Window_data
+struct TDE_EXPORT Window_data
{
Window_data( WId id_P );
TQString title; // _NET_WM_NAME or WM_NAME
@@ -76,7 +76,7 @@ struct KDE_EXPORT Window_data
NET::WindowType type;
};
-class KDE_EXPORT Windowdef
+class TDE_EXPORT Windowdef
{
public:
Windowdef( const TQString& comment_P );
@@ -93,7 +93,7 @@ class KDE_EXPORT Windowdef
KHOTKEYS_DISABLE_COPY( Windowdef ); // CHECKME asi pak udelat i pro vsechny potomky, at se nezapomene
};
-class KDE_EXPORT Windowdef_list
+class TDE_EXPORT Windowdef_list
: public TQPtrList< Windowdef >
{
public:
@@ -109,7 +109,7 @@ class KDE_EXPORT Windowdef_list
KHOTKEYS_DISABLE_COPY( Windowdef_list );
};
-class KDE_EXPORT Windowdef_simple
+class TDE_EXPORT Windowdef_simple
: public Windowdef
{
typedef Windowdef base;
diff --git a/khotkeys/update/update.cpp b/khotkeys/update/update.cpp
index 19e503ac5..d5ccea906 100644
--- a/khotkeys/update/update.cpp
+++ b/khotkeys/update/update.cpp
@@ -16,7 +16,7 @@
#include <tdeapplication.h>
#include <tdecmdlineargs.h>
-#include <kstandarddirs.h>
+#include <tdestandarddirs.h>
#include <tdeconfig.h>
#include <kdebug.h>
#include <dcopclient.h>
@@ -57,6 +57,6 @@ int main( int argc, char* argv[] )
}
settings.write_settings();
TQByteArray data;
- kapp->dcopClient()->send( "khotkeys*", "khotkeys", "reread_configuration()", data );
+ tdeApp->dcopClient()->send( "khotkeys*", "khotkeys", "reread_configuration()", data );
return 0;
}