summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/actionmanager.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:16:01 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:16:01 -0600
commit9771f17f8cc5252b12ec5f3edf47ff9bffdf997f (patch)
treeb9e389db87bdba126010d03fb5bccdc748d0e6fa /klinkstatus/src/actionmanager.cpp
parent9930e16dde86b7de9b792613d826f4f8648b9768 (diff)
downloadtdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.tar.gz
tdewebdev-9771f17f8cc5252b12ec5f3edf47ff9bffdf997f.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'klinkstatus/src/actionmanager.cpp')
-rw-r--r--klinkstatus/src/actionmanager.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/klinkstatus/src/actionmanager.cpp b/klinkstatus/src/actionmanager.cpp
index 3a775cf4..7034c840 100644
--- a/klinkstatus/src/actionmanager.cpp
+++ b/klinkstatus/src/actionmanager.cpp
@@ -56,7 +56,7 @@ public:
: part(0), tabWidgetSession(0), sessionWidget(0)
{}
- KActionCollection* actionCollection;
+ TDEActionCollection* actionCollection;
KLinkStatusPart* part;
TabWidgetSession* tabWidgetSession;
@@ -83,21 +83,21 @@ void ActionManager::initPart(KLinkStatusPart* part)
d->part = part;
d->actionCollection = part->actionCollection();
- KAction* action = 0;
+ TDEAction* action = 0;
// *************** File menu *********************
- new KAction(i18n("New Link Check"), "filenew",
+ new TDEAction(i18n("New Link Check"), "filenew",
0,
d->part, TQT_SLOT(slotNewLinkCheck()),
TQT_TQOBJECT(d->actionCollection), "new_link_check");
- new KAction(i18n("Open URL..."), "fileopen",
+ new TDEAction(i18n("Open URL..."), "fileopen",
0,
d->part, TQT_SLOT(slotOpenLink()),
TQT_TQOBJECT(d->actionCollection), "open_link");
- action = new KAction(i18n("Close Tab"), "fileclose",
+ action = new TDEAction(i18n("Close Tab"), "fileclose",
0,
d->part, TQT_SLOT(slotClose()),
TQT_TQOBJECT(d->actionCollection), "close_tab");
@@ -105,17 +105,17 @@ void ActionManager::initPart(KLinkStatusPart* part)
// *************** Settings menu *********************
- (void) new KAction(i18n("Configure KLinkStatus..."), "configure",
+ (void) new TDEAction(i18n("Configure KLinkStatus..."), "configure",
0, d->part, TQT_SLOT(slotConfigureKLinkStatus()),
TQT_TQOBJECT(d->actionCollection), "configure_klinkstatus");
// *************** Help menu *********************
- (void) new KAction(i18n("About KLinkStatus"), "klinkstatus",
+ (void) new TDEAction(i18n("About KLinkStatus"), "klinkstatus",
0, d->part, TQT_SLOT(slotAbout()),
TQT_TQOBJECT(d->actionCollection), "about_klinkstatus");
- (void) new KAction(i18n("&Report Bug..."), 0, 0, d->part,
+ (void) new TDEAction(i18n("&Report Bug..."), 0, 0, d->part,
TQT_SLOT(slotReportBug()), TQT_TQOBJECT(d->actionCollection), "report_bug");
// *************** View menu *********************
@@ -132,7 +132,7 @@ void ActionManager::initTabWidget(TabWidgetSession* tabWidgetSession)
// *************** File menu *********************
- KAction* action = new KAction(i18n("E&xport Results as HTML..."), "filesave", 0,
+ TDEAction* action = new TDEAction(i18n("E&xport Results as HTML..."), "filesave", 0,
TQT_TQOBJECT(d->tabWidgetSession), TQT_SLOT(slotExportAsHTML()),
TQT_TQOBJECT(d->actionCollection), "file_export_html");
action->setEnabled(false);
@@ -140,38 +140,38 @@ void ActionManager::initTabWidget(TabWidgetSession* tabWidgetSession)
// *************** View menu *********************
// this action must be in the tabwidget because the slot can't be connected to a particular sessionWidget
- KToggleAction* toggle_action = new KToggleAction(i18n("&Follow last Link checked"),
+ TDEToggleAction* toggle_action = new TDEToggleAction(i18n("&Follow last Link checked"),
"make_tdevelop", "Ctrl+f",
TQT_TQOBJECT(d->tabWidgetSession), TQT_SLOT(slotFollowLastLinkChecked()),
TQT_TQOBJECT(d->actionCollection), "follow_last_link_checked");
toggle_action->setChecked(KLSConfig::followLastLinkChecked());
// this action must be in the tabwidget because the slot can't be connected to a particular sessionWidget
- toggle_action = new KToggleAction(i18n("&Hide Search Panel"), "bottom", "Ctrl+h",
+ toggle_action = new TDEToggleAction(i18n("&Hide Search Panel"), "bottom", "Ctrl+h",
TQT_TQOBJECT(d->tabWidgetSession), TQT_SLOT(slotHideSearchPanel()),
TQT_TQOBJECT(d->actionCollection), "hide_search_bar");
KGuiItem item(i18n("&Show Search Panel"), "top", "Show Search Panel");
toggle_action->setCheckedState(item);
- new KAction(i18n("&Reset Search Options"), "reload", "F5",
+ new TDEAction(i18n("&Reset Search Options"), "reload", "F5",
TQT_TQOBJECT(d->tabWidgetSession), TQT_SLOT(slotResetSearchOptions()),
TQT_TQOBJECT(d->actionCollection), "reset_search_bar");
// *************** Search menu *********************
- toggle_action = new KToggleAction(i18n("&Start Search"),
+ toggle_action = new TDEToggleAction(i18n("&Start Search"),
"player_play", "Ctrl+s",
TQT_TQOBJECT(d->tabWidgetSession), TQT_SLOT(slotStartSearch()),
TQT_TQOBJECT(d->actionCollection), "start_search");
toggle_action->setEnabled(false);
- toggle_action = new KToggleAction(i18n("&Pause Search"),
+ toggle_action = new TDEToggleAction(i18n("&Pause Search"),
"player_pause", "Ctrl+p",
TQT_TQOBJECT(d->tabWidgetSession), TQT_SLOT(slotPauseSearch()),
TQT_TQOBJECT(d->actionCollection), "pause_search");
toggle_action->setEnabled(false);
- action = new KAction(i18n("St&op Search"),
+ action = new TDEAction(i18n("St&op Search"),
"player_stop", "Ctrl+c",
TQT_TQOBJECT(d->tabWidgetSession), TQT_SLOT(slotStopSearch()),
TQT_TQOBJECT(d->actionCollection), "stop_search");
@@ -194,21 +194,21 @@ TQWidget* ActionManager::container(const char* name)
return d->part->factory()->container(name, d->part);
}
-KActionCollection* ActionManager::actionCollection()
+TDEActionCollection* ActionManager::actionCollection()
{
return d->actionCollection;
}
-KAction* ActionManager::action(const char* name, const char* classname)
+TDEAction* ActionManager::action(const char* name, const char* classname)
{
return d->actionCollection != 0 ? d->actionCollection->action(name, classname) : 0;
}
void ActionManager::slotUpdateSessionWidgetActions(SessionWidget* page)
{
- KToggleAction* start_search_action_ = static_cast<KToggleAction*> (action("start_search"));
- KToggleAction* pause_search_action_ = static_cast<KToggleAction*> (action("pause_search"));
- KAction* stop_search_action_ = action("stop_search");
+ TDEToggleAction* start_search_action_ = static_cast<TDEToggleAction*> (action("start_search"));
+ TDEToggleAction* pause_search_action_ = static_cast<TDEToggleAction*> (action("pause_search"));
+ TDEAction* stop_search_action_ = action("stop_search");
if(page->inProgress())
{
@@ -250,17 +250,17 @@ void ActionManager::slotUpdateSessionWidgetActions(SessionWidget* page)
// ____________________________________________________________________
- KToggleAction* toggleAction = static_cast<KToggleAction*> (action("follow_last_link_checked"));
+ TDEToggleAction* toggleAction = static_cast<TDEToggleAction*> (action("follow_last_link_checked"));
if(!toggleAction) // the first sessionWidget is created before initSessionWidget is called
{
initSessionWidget(page);
- toggleAction = static_cast<KToggleAction*> (action("follow_last_link_checked"));
+ toggleAction = static_cast<TDEToggleAction*> (action("follow_last_link_checked"));
}
Q_ASSERT(toggleAction);
toggleAction->setChecked(page->followLastLinkChecked());
- toggleAction = static_cast<KToggleAction*> (action("hide_search_bar"));
+ toggleAction = static_cast<TDEToggleAction*> (action("hide_search_bar"));
Q_ASSERT(toggleAction);
toggleAction->setChecked(page->buttongroup_search->isHidden());