summaryrefslogtreecommitdiffstats
path: root/khotkeys/shared/action_data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'khotkeys/shared/action_data.cpp')
-rw-r--r--khotkeys/shared/action_data.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/khotkeys/shared/action_data.cpp b/khotkeys/shared/action_data.cpp
index 472259268..ff56eb99d 100644
--- a/khotkeys/shared/action_data.cpp
+++ b/khotkeys/shared/action_data.cpp
@@ -36,7 +36,7 @@ Action_data_base::Action_data_base( Action_data_group* parent_P, const TQString&
_conditions->set_data( this );
}
-Action_data_base::Action_data_base( KConfig& cfg_P, Action_data_group* parent_P )
+Action_data_base::Action_data_base( TDEConfig& cfg_P, Action_data_group* parent_P )
: _parent( parent_P )
{
TQString save_cfg_group = cfg_P.group();
@@ -58,7 +58,7 @@ Action_data_base::~Action_data_base()
delete _conditions;
}
-void Action_data_base::cfg_write( KConfig& cfg_P ) const
+void Action_data_base::cfg_write( TDEConfig& cfg_P ) const
{
cfg_P.writeEntry( "Type", "ERROR" ); // derived classes should call with their type
cfg_P.writeEntry( "Name", name());
@@ -72,7 +72,7 @@ void Action_data_base::cfg_write( KConfig& cfg_P ) const
}
-Action_data_base* Action_data_base::create_cfg_read( KConfig& cfg_P, Action_data_group* parent_P )
+Action_data_base* Action_data_base::create_cfg_read( TDEConfig& cfg_P, Action_data_group* parent_P )
{
TQString type = cfg_P.readEntry( "Type" );
if( type == "ACTION_DATA_GROUP" )
@@ -110,7 +110,7 @@ Action_data_base* Action_data_base::create_cfg_read( KConfig& cfg_P, Action_data
return NULL;
}
-bool Action_data_base::cfg_is_enabled( KConfig& cfg_P )
+bool Action_data_base::cfg_is_enabled( TDEConfig& cfg_P )
{
return cfg_P.readBoolEntry( "Enabled", true );
}
@@ -140,7 +140,7 @@ bool Action_data_base::conditions_match() const
// Action_data_group
-Action_data_group::Action_data_group( KConfig& cfg_P, Action_data_group* parent_P )
+Action_data_group::Action_data_group( TDEConfig& cfg_P, Action_data_group* parent_P )
: Action_data_base( cfg_P, parent_P )
{
unsigned int system_group_tmp = cfg_P.readUnsignedNumEntry( "SystemGroup", 0 );
@@ -149,7 +149,7 @@ Action_data_group::Action_data_group( KConfig& cfg_P, Action_data_group* parent_
_system_group = static_cast< system_group_t >( system_group_tmp );
}
-void Action_data_group::cfg_write( KConfig& cfg_P ) const
+void Action_data_group::cfg_write( TDEConfig& cfg_P ) const
{
Action_data_base::cfg_write( cfg_P );
cfg_P.writeEntry( "SystemGroup", system_group());
@@ -166,7 +166,7 @@ void Action_data_group::update_triggers()
// Action_data
-Action_data::Action_data( KConfig& cfg_P, Action_data_group* parent_P )
+Action_data::Action_data( TDEConfig& cfg_P, Action_data_group* parent_P )
: Action_data_base( cfg_P, parent_P )
{
TQString save_cfg_group = cfg_P.group();
@@ -185,7 +185,7 @@ Action_data::~Action_data()
// CHECKME jeste remove z parenta ?
}
-void Action_data::cfg_write( KConfig& cfg_P ) const
+void Action_data::cfg_write( TDEConfig& cfg_P ) const
{
Action_data_base::cfg_write( cfg_P );
TQString save_cfg_group = cfg_P.group();
@@ -277,7 +277,7 @@ void Action_data::update_triggers()
// Generic_action_data
-void Generic_action_data::cfg_write( KConfig& cfg_P ) const
+void Generic_action_data::cfg_write( TDEConfig& cfg_P ) const
{
base::cfg_write( cfg_P );
cfg_P.writeEntry( "Type", "GENERIC_ACTION_DATA" );
@@ -297,7 +297,7 @@ Command_url_shortcut_action_data::Command_url_shortcut_action_data( Action_data_
template<> KDE_EXPORT
void Simple_action_data< Shortcut_trigger, Command_url_action >
- ::cfg_write( KConfig& cfg_P ) const
+ ::cfg_write( TDEConfig& cfg_P ) const
{
base::cfg_write( cfg_P );
cfg_P.writeEntry( "Type", "COMMAND_URL_SHORTCUT_ACTION_DATA" );
@@ -317,7 +317,7 @@ Menuentry_shortcut_action_data::Menuentry_shortcut_action_data( Action_data_grou
template<> KDE_EXPORT
void Simple_action_data< Shortcut_trigger, Menuentry_action >
- ::cfg_write( KConfig& cfg_P ) const
+ ::cfg_write( TDEConfig& cfg_P ) const
{
base::cfg_write( cfg_P );
cfg_P.writeEntry( "Type", "MENUENTRY_SHORTCUT_ACTION_DATA" );
@@ -327,7 +327,7 @@ void Simple_action_data< Shortcut_trigger, Menuentry_action >
template<> KDE_EXPORT
void Simple_action_data< Shortcut_trigger, Dcop_action >
- ::cfg_write( KConfig& cfg_P ) const
+ ::cfg_write( TDEConfig& cfg_P ) const
{
base::cfg_write( cfg_P );
cfg_P.writeEntry( "Type", "DCOP_SHORTCUT_ACTION_DATA" );
@@ -337,7 +337,7 @@ void Simple_action_data< Shortcut_trigger, Dcop_action >
template<> KDE_EXPORT
void Simple_action_data< Shortcut_trigger, Keyboard_input_action >
- ::cfg_write( KConfig& cfg_P ) const
+ ::cfg_write( TDEConfig& cfg_P ) const
{
base::cfg_write( cfg_P );
cfg_P.writeEntry( "Type", "KEYBOARD_INPUT_SHORTCUT_ACTION_DATA" );
@@ -347,7 +347,7 @@ void Simple_action_data< Shortcut_trigger, Keyboard_input_action >
template<> KDE_EXPORT
void Simple_action_data< Shortcut_trigger, Activate_window_action >
- ::cfg_write( KConfig& cfg_P ) const
+ ::cfg_write( TDEConfig& cfg_P ) const
{
base::cfg_write( cfg_P );
cfg_P.writeEntry( "Type", "ACTIVATE_WINDOW_SHORTCUT_ACTION_DATA" );
@@ -369,7 +369,7 @@ const Keyboard_input_action* Keyboard_input_gesture_action_data::action() const
return static_cast< Keyboard_input_action* >( const_cast< Action_list* >( actions())->first());
}
-void Keyboard_input_gesture_action_data::cfg_write( KConfig& cfg_P ) const
+void Keyboard_input_gesture_action_data::cfg_write( TDEConfig& cfg_P ) const
{
base::cfg_write( cfg_P );
cfg_P.writeEntry( "Type", "KEYBOARD_INPUT_GESTURE_ACTION_DATA" );