summaryrefslogtreecommitdiffstats
path: root/chalk/ui/kis_selection_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chalk/ui/kis_selection_manager.cc')
-rw-r--r--chalk/ui/kis_selection_manager.cc42
1 files changed, 21 insertions, 21 deletions
diff --git a/chalk/ui/kis_selection_manager.cc b/chalk/ui/kis_selection_manager.cc
index 23abb2b9..718dbf02 100644
--- a/chalk/ui/kis_selection_manager.cc
+++ b/chalk/ui/kis_selection_manager.cc
@@ -97,7 +97,7 @@ KisSelectionManager::~KisSelectionManager()
}
-void KisSelectionManager::setup(KActionCollection * collection)
+void KisSelectionManager::setup(TDEActionCollection * collection)
{
// XXX: setup shortcuts!
@@ -116,7 +116,7 @@ void KisSelectionManager::setup(KActionCollection * collection)
collection,
"paste");
- m_pasteNew = new KAction(i18n("Paste into &New Image"),
+ m_pasteNew = new TDEAction(i18n("Paste into &New Image"),
0, 0,
this, TQT_SLOT(pasteNew()),
collection,
@@ -139,99 +139,99 @@ void KisSelectionManager::setup(KActionCollection * collection)
collection,
"clear");
- m_reselect = new KAction(i18n("&Reselect"),
+ m_reselect = new TDEAction(i18n("&Reselect"),
0, "Ctrl+Shift+D",
this, TQT_SLOT(reselect()),
collection, "reselect");
- m_invert = new KAction(i18n("&Invert"),
+ m_invert = new TDEAction(i18n("&Invert"),
0, "Ctrl+I",
this, TQT_SLOT(invert()),
collection, "invert");
- m_toNewLayer = new KAction(i18n("Copy Selection to New Layer"),
+ m_toNewLayer = new TDEAction(i18n("Copy Selection to New Layer"),
0, "Ctrl+J",
this, TQT_SLOT(copySelectionToNewLayer()),
collection, "copy_selection_to_new_layer");
- m_cutToNewLayer = new KAction(i18n("Cut Selection to New Layer"),
+ m_cutToNewLayer = new TDEAction(i18n("Cut Selection to New Layer"),
0, "Ctrl+Shift+J",
this, TQT_SLOT(cutToNewLayer()),
collection, "cut_selection_to_new_layer");
- m_feather = new KAction(i18n("Feather"),
+ m_feather = new TDEAction(i18n("Feather"),
0, "Ctrl+Alt+D",
this, TQT_SLOT(feather()),
collection, "feather");
- m_fillForegroundColor = new KAction(i18n("Fill with Foreground Color"),
+ m_fillForegroundColor = new TDEAction(i18n("Fill with Foreground Color"),
"Alt+backspace", this,
TQT_SLOT(fillForegroundColor()),
collection,
"fill_selection_foreground_color");
- m_fillBackgroundColor = new KAction(i18n("Fill with Background Color"),
+ m_fillBackgroundColor = new TDEAction(i18n("Fill with Background Color"),
"backspace", this,
TQT_SLOT(fillBackgroundColor()),
collection,
"fill_selection_background_color");
- m_fillPattern = new KAction(i18n("Fill with Pattern"),
+ m_fillPattern = new TDEAction(i18n("Fill with Pattern"),
0, this,
TQT_SLOT(fillPattern()),
collection,
"fill_selection_pattern");
- m_toggleDisplaySelection = new KToggleAction(i18n("Display Selection"), "Ctrl+h", this, TQT_SLOT(toggleDisplaySelection()), collection, "toggle_display_selection");
+ m_toggleDisplaySelection = new TDEToggleAction(i18n("Display Selection"), "Ctrl+h", this, TQT_SLOT(toggleDisplaySelection()), collection, "toggle_display_selection");
m_toggleDisplaySelection->setCheckedState(KGuiItem(i18n("Hide Selection")));
m_toggleDisplaySelection->setChecked(true);
m_border =
- new KAction(i18n("Border..."),
+ new TDEAction(i18n("Border..."),
0, 0,
this, TQT_SLOT(border()),
collection, "border");
m_expand =
- new KAction(i18n("Expand..."),
+ new TDEAction(i18n("Expand..."),
0, 0,
this, TQT_SLOT(expand()),
collection, "expand");
m_smooth =
- new KAction(i18n("Smooth..."),
+ new TDEAction(i18n("Smooth..."),
0, 0,
this, TQT_SLOT(smooth()),
collection, "smooth");
m_contract =
- new KAction(i18n("Contract..."),
+ new TDEAction(i18n("Contract..."),
0, 0,
this, TQT_SLOT(contract()),
collection, "contract");
m_similar =
- new KAction(i18n("Similar"),
+ new TDEAction(i18n("Similar"),
0, 0,
this, TQT_SLOT(similar()),
collection, "similar");
m_transform
- = new KAction(i18n("Transform..."),
+ = new TDEAction(i18n("Transform..."),
0, 0,
this, TQT_SLOT(transform()),
collection, "transform_selection");
// m_load
-// = new KAction(i18n("Load..."),
+// = new TDEAction(i18n("Load..."),
// 0, 0,
// this, TQT_SLOT(load()),
// collection, "load_selection");
//
//
// m_save
-// = new KAction(i18n("Save As..."),
+// = new TDEAction(i18n("Save As..."),
// 0, 0,
// this, TQT_SLOT(save()),
// collection, "save_selection");
@@ -246,7 +246,7 @@ void KisSelectionManager::clipboardDataChanged()
}
-void KisSelectionManager::addSelectionAction(KAction * action)
+void KisSelectionManager::addSelectionAction(TDEAction * action)
{
m_pluginActions.append(action);
}
@@ -310,7 +310,7 @@ void KisSelectionManager::updateGUI()
// m_save->setEnabled(enable);
- KAction * a;
+ TDEAction * a;
for (a = m_pluginActions.first(); a; a = m_pluginActions.next()) {
a->setEnabled(img != 0);
}