diff options
author | Timothy Pearson <[email protected]> | 2011-11-07 20:26:07 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-11-07 20:26:07 -0600 |
commit | 43d99cc2477266cb9072e179137f0e8485370b3d (patch) | |
tree | 0d4d47e5497a1a1465edf8263f57b72725577239 /khotkeys | |
parent | 6354e6b3babad3ed0f5e314735bbbc01d1988eb2 (diff) | |
download | tdebase-43d99cc2477266cb9072e179137f0e8485370b3d.tar.gz tdebase-43d99cc2477266cb9072e179137f0e8485370b3d.zip |
Rename kwin to twin (part 1 of 2)
Diffstat (limited to 'khotkeys')
-rw-r--r-- | khotkeys/shared/triggers.cpp | 2 | ||||
-rw-r--r-- | khotkeys/shared/windows.cpp | 26 | ||||
-rw-r--r-- | khotkeys/shared/windows.h | 2 |
3 files changed, 15 insertions, 15 deletions
diff --git a/khotkeys/shared/triggers.cpp b/khotkeys/shared/triggers.cpp index 7cac2b98c..cf9b99c6c 100644 --- a/khotkeys/shared/triggers.cpp +++ b/khotkeys/shared/triggers.cpp @@ -19,7 +19,7 @@ #include <kglobalaccel.h> #include <kconfig.h> #include <kdebug.h> -#include <kwinmodule.h> +#include <twinmodule.h> #include <klocale.h> #include <netwm_def.h> #include <kaccel.h> diff --git a/khotkeys/shared/windows.cpp b/khotkeys/shared/windows.cpp index b8e86f694..bd77ba446 100644 --- a/khotkeys/shared/windows.cpp +++ b/khotkeys/shared/windows.cpp @@ -21,8 +21,8 @@ #include <kconfig.h> #include <kdebug.h> -#include <kwinmodule.h> -#include <kwin.h> +#include <twinmodule.h> +#include <twin.h> #include <klocale.h> #include "khotkeysglobal.h" @@ -39,15 +39,15 @@ namespace KHotKeys Windows::Windows( bool enable_signal_P, TQObject* parent_P ) : TQObject( parent_P ), signals_enabled( enable_signal_P ), - kwin_module( new KWinModule( this )), _action_window( 0 ) + twin_module( new KWinModule( this )), _action_window( 0 ) { assert( windows_handler == NULL ); windows_handler = this; if( signals_enabled ) { - connect( kwin_module, TQT_SIGNAL( windowAdded( WId )), TQT_SLOT( window_added_slot( WId ))); - connect( kwin_module, TQT_SIGNAL( windowRemoved( WId )), TQT_SLOT( window_removed_slot( WId ))); - connect( kwin_module, TQT_SIGNAL( activeWindowChanged( WId )), + 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 ))); } } @@ -112,7 +112,7 @@ TQString Windows::get_window_class( WId id_P ) WId Windows::active_window() { - return kwin_module->activeWindow(); + return twin_module->activeWindow(); } WId Windows::action_window() @@ -127,8 +127,8 @@ void Windows::set_action_window( WId window_P ) WId Windows::find_window( const Windowdef_list* window_P ) { - for( TQValueList< WId >::ConstIterator it = kwin_module->windows().begin(); - it != kwin_module->windows().end(); + for( TQValueList< WId >::ConstIterator it = twin_module->windows().begin(); + it != twin_module->windows().end(); ++it ) { Window_data tmp( *it ); @@ -185,13 +185,13 @@ void Windows::activate_window( WId id_P ) Window_data::Window_data( WId id_P ) : type( NET::Unknown ) { - KWin::WindowInfo kwin_info = KWin::windowInfo( id_P, NET::WMName | NET::WMWindowType ); // TODO optimize - if( kwin_info.valid()) + KWin::WindowInfo twin_info = KWin::windowInfo( id_P, NET::WMName | NET::WMWindowType ); // TODO optimize + if( twin_info.valid()) { - title = kwin_info.name(); + title = twin_info.name(); role = windows_handler->get_window_role( id_P ); wclass = windows_handler->get_window_class( id_P ); - type = kwin_info.windowType( SUPPORTED_WINDOW_TYPES_MASK ); + type = twin_info.windowType( SUPPORTED_WINDOW_TYPES_MASK ); if( type == NET::Override ) // HACK consider non-NETWM fullscreens to be normal too type = NET::Normal; if( type == NET::Unknown ) diff --git a/khotkeys/shared/windows.h b/khotkeys/shared/windows.h index 8aad308c9..5c491acbf 100644 --- a/khotkeys/shared/windows.h +++ b/khotkeys/shared/windows.h @@ -63,7 +63,7 @@ class KDE_EXPORT Windows void window_changed_slot( WId window_P, unsigned int flags_P ); private: bool signals_enabled; - KWinModule* kwin_module; + KWinModule* twin_module; WId _action_window; }; |