summaryrefslogtreecommitdiffstats
path: root/kommander/editor
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/editor')
-rw-r--r--kommander/editor/assoctexteditorimpl.cpp10
-rw-r--r--kommander/editor/assoctexteditorimpl.h8
-rw-r--r--kommander/editor/choosewidget.ui2
-rw-r--r--kommander/editor/connectioneditor.ui6
-rw-r--r--kommander/editor/connectioneditorimpl.cpp4
-rw-r--r--kommander/editor/functions.ui2
-rw-r--r--kommander/editor/mainwindow.cpp8
-rw-r--r--kommander/editor/mainwindow.h22
-rw-r--r--kommander/editor/mainwindowactions.cpp88
-rw-r--r--kommander/editor/messagelog.cpp6
-rw-r--r--kommander/editor/messagelog.h8
11 files changed, 82 insertions, 82 deletions
diff --git a/kommander/editor/assoctexteditorimpl.cpp b/kommander/editor/assoctexteditorimpl.cpp
index 9fbfe938..f02b779c 100644
--- a/kommander/editor/assoctexteditorimpl.cpp
+++ b/kommander/editor/assoctexteditorimpl.cpp
@@ -96,8 +96,8 @@ AssocTextEditor::AssocTextEditor(TQWidget *a_widget, FormWindow* a_form,
partManager->addPart(doc, true);
//trick to import all the KatePart actions into the dialog
- KPopupMenu *invisiblePopup = new KPopupMenu(this);
- KActionCollection *ac = view->actionCollection();
+ TDEPopupMenu *invisiblePopup = new TDEPopupMenu(this);
+ TDEActionCollection *ac = view->actionCollection();
uint count = ac->count();
for (uint i = 0; i < count; i++)
{
@@ -105,8 +105,8 @@ AssocTextEditor::AssocTextEditor(TQWidget *a_widget, FormWindow* a_form,
}
//add those KatePart actions to a popup menu that are important
- KPopupMenu *popup = new KPopupMenu(this);
- KAction *a = view->actionCollection()->action("edit_undo");
+ TDEPopupMenu *popup = new TDEPopupMenu(this);
+ TDEAction *a = view->actionCollection()->action("edit_undo");
if (a)
a->plug(popup);
a = view->actionCollection()->action("edit_redo");
@@ -137,7 +137,7 @@ AssocTextEditor::AssocTextEditor(TQWidget *a_widget, FormWindow* a_form,
a->plug(popup);
readOnlyAction = view->actionCollection()->action("tools_toggle_write_lock");
popup->insertSeparator();
- highlightPopup = new KPopupMenu(popup);
+ highlightPopup = new TDEPopupMenu(popup);
connect(highlightPopup, TQT_SIGNAL(activated(int)), TQT_SLOT(slotHighlightingChanged(int)));
popup->insertItem(i18n("&Highlighting"), highlightPopup);
diff --git a/kommander/editor/assoctexteditorimpl.h b/kommander/editor/assoctexteditorimpl.h
index 532d61dd..845e9a1c 100644
--- a/kommander/editor/assoctexteditorimpl.h
+++ b/kommander/editor/assoctexteditorimpl.h
@@ -43,8 +43,8 @@ namespace KParts{
class PartManager;
}
-class KAction;
-class KPopupMenu;
+class TDEAction;
+class TDEPopupMenu;
class AssocTextEditor : public AssocTextEditorBase
{
@@ -125,10 +125,10 @@ private:
KTextEditor::EditInterface *associatedTextEdit;
KTextEditor::Document *doc;
KTextEditor::View *view;
- KPopupMenu *highlightPopup;
+ TDEPopupMenu *highlightPopup;
int oldHlMode;
bool readOnly;
- KAction *readOnlyAction;
+ TDEAction *readOnlyAction;
};
#endif
diff --git a/kommander/editor/choosewidget.ui b/kommander/editor/choosewidget.ui
index 64970e5a..782a2b22 100644
--- a/kommander/editor/choosewidget.ui
+++ b/kommander/editor/choosewidget.ui
@@ -97,7 +97,7 @@
</spacer>
</hbox>
</widget>
- <widget class="KListView" row="0" column="0">
+ <widget class="TDEListView" row="0" column="0">
<property name="name">
<cstring>widgetView</cstring>
</property>
diff --git a/kommander/editor/connectioneditor.ui b/kommander/editor/connectioneditor.ui
index 8603b9e2..29a33a56 100644
--- a/kommander/editor/connectioneditor.ui
+++ b/kommander/editor/connectioneditor.ui
@@ -50,7 +50,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="KListView" row="3" column="0" rowspan="1" colspan="2">
+ <widget class="TDEListView" row="3" column="0" rowspan="1" colspan="2">
<column>
<property name="text">
<string>Sender</string>
@@ -111,7 +111,7 @@
<string>Displays the connections between the sender and the receiver.</string>
</property>
</widget>
- <widget class="KListBox" row="1" column="1">
+ <widget class="TDEListBox" row="1" column="1">
<property name="name">
<cstring>slotBox</cstring>
</property>
@@ -119,7 +119,7 @@
<string>&lt;b&gt;A list of Q_SLOTS for the receiver.&lt;/b&gt;&lt;p&gt;The Q_SLOTS that are displayed are only those which have arguments that correspond with the arguments of the signal that is currently selected in the Signal-list.&lt;/b&gt;</string>
</property>
</widget>
- <widget class="KListBox" row="1" column="0">
+ <widget class="TDEListBox" row="1" column="0">
<property name="name">
<cstring>signalBox</cstring>
</property>
diff --git a/kommander/editor/connectioneditorimpl.cpp b/kommander/editor/connectioneditorimpl.cpp
index 0719716f..7dc7978d 100644
--- a/kommander/editor/connectioneditorimpl.cpp
+++ b/kommander/editor/connectioneditorimpl.cpp
@@ -197,7 +197,7 @@ void ConnectionEditor::connectClicked()
conn.signal = signalBox->currentText();
conn.slot = slotBox->currentText();
conn.receiver = m_receiver;
- KListViewItem *i = new KListViewItem(connectionView, m_sender->name(), conn.signal, m_receiver->name(),
+ TDEListViewItem *i = new TDEListViewItem(connectionView, m_sender->name(), conn.signal, m_receiver->name(),
conn.slot);
i->setPixmap(0, PixmapChooser::loadPixmap("connecttool.xpm"));
connectionView->setCurrentItem(i);
@@ -346,7 +346,7 @@ void ConnectionEditor::fillConnectionsList()
!MetaDataBase::hasSlot(TQT_TQOBJECT(m_formWindow), MetaDataBase::normalizeSlot((*it).slot).latin1()))
continue;
MetaDataBase::Connection conn = *it;
- KListViewItem *i = new KListViewItem(connectionView, conn.sender->name(), conn.signal,
+ TDEListViewItem *i = new TDEListViewItem(connectionView, conn.sender->name(), conn.signal,
conn.receiver->name(), conn.slot);
i->setPixmap(0, PixmapChooser::loadPixmap("connecttool.xpm"));
m_connections.insert(i, conn);
diff --git a/kommander/editor/functions.ui b/kommander/editor/functions.ui
index 5930b06b..5e9686ff 100644
--- a/kommander/editor/functions.ui
+++ b/kommander/editor/functions.ui
@@ -100,7 +100,7 @@
<cstring>functionListBox</cstring>
</property>
</widget>
- <widget class="KListBox">
+ <widget class="TDEListBox">
<property name="name">
<cstring>functionListBox</cstring>
</property>
diff --git a/kommander/editor/mainwindow.cpp b/kommander/editor/mainwindow.cpp
index fd3f0ecb..dcd1b393 100644
--- a/kommander/editor/mainwindow.cpp
+++ b/kommander/editor/mainwindow.cpp
@@ -143,8 +143,8 @@ MainWindow::MainWindow(bool asClient)
setupMDI();
setupFileActions();
setupEditActions();
- layoutToolBar = new KToolBar(this, "Layout");
- ((KToolBar *) layoutToolBar)->setFullSize(false);
+ layoutToolBar = new TDEToolBar(this, "Layout");
+ ((TDEToolBar *) layoutToolBar)->setFullSize(false);
addToolBar(layoutToolBar, i18n("Layout"));
setupToolActions();
setupLayoutActions();
@@ -356,9 +356,9 @@ void MainWindow::setupRMBMenus()
void MainWindow::toolSelected()
{
- if (!(sender())->inherits("KAction"))
+ if (!(sender())->inherits("TDEAction"))
return;
- actionCurrentTool = (KAction*)sender();
+ actionCurrentTool = (TDEAction*)sender();
emit currentToolChanged();
if (formWindow())
formWindow()->commandHistory()->emitUndoRedo();
diff --git a/kommander/editor/mainwindow.h b/kommander/editor/mainwindow.h
index 790f33b1..14a24c31 100644
--- a/kommander/editor/mainwindow.h
+++ b/kommander/editor/mainwindow.h
@@ -36,12 +36,12 @@ class FormFile;
class FormWindow;
class GotoLineDialog;
class HierarchyView;
-class KAction;
-class KActionCollection;
+class TDEAction;
+class TDEActionCollection;
class TDEProcess;
-class KRecentFilesAction;
-class KToggleAction;
-class KToolBar;
+class TDERecentFilesAction;
+class TDEToggleAction;
+class TDEToolBar;
class KURL;
class PropertyEditor;
class TQCloseEvent;
@@ -264,24 +264,24 @@ private:
bool splashScreen;
TQString docPath;
- KAction *actionEditUndo, *actionEditRedo, *actionEditCut, *actionEditCopy,
+ TDEAction *actionEditUndo, *actionEditRedo, *actionEditCut, *actionEditCopy,
*actionEditPaste, *actionEditDelete, *actionEditAdjustSize,
*actionEditHLayout, *actionEditVLayout, *actionEditGridLayout,
*actionEditSplitHorizontal, *actionEditSplitVertical,
*actionEditSelectAll, *actionEditBreakLayout, *actionEditConnections,
*actionEditLower, *actionEditRaise, *actionEditFindGlobal;
- KToggleAction* actionPointerTool, *actionConnectTool, *actionOrderTool;
- KAction* actionCurrentTool;
- KAction *actionEditFormSettings, *actionEditAccels;
- KRecentFilesAction* actionRecent;
+ TDEToggleAction* actionPointerTool, *actionConnectTool, *actionOrderTool;
+ TDEAction* actionCurrentTool;
+ TDEAction *actionEditFormSettings, *actionEditAccels;
+ TDERecentFilesAction* actionRecent;
TQPopupMenu *rmbWidgets;
TQPopupMenu *rmbFormWindow;
TQPopupMenu *windowMenu, *fileMenu;
TQToolBar *layoutToolBar;
- KToolBar *fileTb;
+ TDEToolBar *fileTb;
Preferences *prefDia;
TQMap<TQString,TQString> propertyDocumentation;
diff --git a/kommander/editor/mainwindowactions.cpp b/kommander/editor/mainwindowactions.cpp
index 8a217843..9f4a0ca8 100644
--- a/kommander/editor/mainwindowactions.cpp
+++ b/kommander/editor/mainwindowactions.cpp
@@ -123,7 +123,7 @@ void MainWindow::setupEditActions()
actionEditPaste->setWhatsThis(whatsThisFrom("Edit|Paste"));
actionEditPaste->setEnabled(false);
- actionEditDelete = new KAction(i18n("Delete"), Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(editDelete()),
+ actionEditDelete = new TDEAction(i18n("Delete"), Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(editDelete()),
actionCollection(), "edit_delete");
actionEditDelete->setToolTip(i18n("Deletes the selected widgets"));
actionEditDelete->setWhatsThis(whatsThisFrom("Edit|Delete"));
@@ -133,42 +133,42 @@ void MainWindow::setupEditActions()
actionEditSelectAll->setToolTip(i18n("Selects all widgets"));
actionEditSelectAll->setWhatsThis(whatsThisFrom("Edit|Select All"));
- actionEditRaise = new KAction(i18n("Bring to Front"), createIconSet("editraise.xpm"),
- KShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editRaise()), actionCollection(), "edit_raise");
+ actionEditRaise = new TDEAction(i18n("Bring to Front"), createIconSet("editraise.xpm"),
+ TDEShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editRaise()), actionCollection(), "edit_raise");
actionEditRaise->setToolTip(i18n("Raises the selected widgets"));
actionEditRaise->setEnabled(false);
- actionEditLower = new KAction(i18n("Send to Back"), createIconSet("editlower.xpm"),
- KShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editLower()), actionCollection(), "edit_lower");
+ actionEditLower = new TDEAction(i18n("Send to Back"), createIconSet("editlower.xpm"),
+ TDEShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editLower()), actionCollection(), "edit_lower");
actionEditLower->setToolTip(i18n("Lowers the selected widgets"));
actionEditLower->setWhatsThis(i18n("Lowers the selected widgets"));
actionEditLower->setEnabled(false);
- actionEditFindGlobal = new KAction(i18n("Find in Form..."), CTRL + ALT + Key_F, TQT_TQOBJECT(this), TQT_SLOT(editFindGlobal()), actionCollection(), "edit_find_global");
+ actionEditFindGlobal = new TDEAction(i18n("Find in Form..."), CTRL + ALT + Key_F, TQT_TQOBJECT(this), TQT_SLOT(editFindGlobal()), actionCollection(), "edit_find_global");
actionEditFindGlobal->setToolTip(i18n("Search for a text in the whole form."));
actionEditFindGlobal->setWhatsThis(whatsThisFrom("Edit|Find in Form"));
connect(this, TQT_SIGNAL(hasActiveForm(bool)), actionEditFindGlobal, TQT_SLOT(setEnabled(bool)));
- actionEditAccels = new KAction(i18n("Check Accelerators"), ALT + Key_R, TQT_TQOBJECT(this), TQT_SLOT(editAccels()),
+ actionEditAccels = new TDEAction(i18n("Check Accelerators"), ALT + Key_R, TQT_TQOBJECT(this), TQT_SLOT(editAccels()),
actionCollection(), "edit_check_accel");
actionEditAccels->setToolTip(i18n("Checks if the accelerators used in the form are unique"));
actionEditAccels->setWhatsThis(whatsThisFrom("Edit|Check Accelerator"));
connect(this, TQT_SIGNAL(hasActiveForm(bool)), actionEditAccels, TQT_SLOT(setEnabled(bool)));
- actionEditConnections = new KAction(i18n("Connections"), createIconSet("connecttool.xpm"),
- KShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editConnections()), actionCollection(),
+ actionEditConnections = new TDEAction(i18n("Connections"), createIconSet("connecttool.xpm"),
+ TDEShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editConnections()), actionCollection(),
"edit_connections");
actionEditConnections->setToolTip(i18n("Opens a dialog for editing connections"));
actionEditConnections->setWhatsThis(whatsThisFrom("Edit|Connections"));
connect(this, TQT_SIGNAL(hasActiveForm(bool)), actionEditConnections, TQT_SLOT(setEnabled(bool)));
- actionEditFormSettings = new KAction(i18n("Form Settings..."), KShortcut::null(),
+ actionEditFormSettings = new TDEAction(i18n("Form Settings..."), TDEShortcut::null(),
TQT_TQOBJECT(this), TQT_SLOT(editFormSettings()), actionCollection(), "edit_form");
actionEditFormSettings->setToolTip(i18n("Opens a dialog to change the form's settings"));
actionEditFormSettings->setWhatsThis(whatsThisFrom("Edit|Form Settings"));
connect(this, TQT_SIGNAL(hasActiveForm(bool)), actionEditFormSettings, TQT_SLOT(setEnabled(bool)));
- KToolBar *tb = new KToolBar(this, "Edit");
+ TDEToolBar *tb = new TDEToolBar(this, "Edit");
tb->setFullSize(false);
TQWhatsThis::add(tb, i18n("<b>The Edit toolbar</b>%1").arg(toolbarHelp));
addToolBar(tb, i18n("Edit"));
@@ -201,51 +201,51 @@ void MainWindow::setupEditActions()
void MainWindow::setupLayoutActions()
{
- actionEditAdjustSize = new KAction(i18n("Adjust Size"), createIconSet("adjustsize.xpm"),
+ actionEditAdjustSize = new TDEAction(i18n("Adjust Size"), createIconSet("adjustsize.xpm"),
CTRL + Key_J, TQT_TQOBJECT(this), TQT_SLOT(editAdjustSize()), actionCollection(), "edit_adjust_size");
actionEditAdjustSize->setToolTip(i18n("Adjusts the size of the selected widget"));
actionEditAdjustSize->setWhatsThis(whatsThisFrom("Layout|Adjust Size"));
actionEditAdjustSize->setEnabled(false);
- actionEditHLayout = new KAction(i18n("Lay OutQt::Horizontally"), createIconSet("edithlayout.xpm"),
+ actionEditHLayout = new TDEAction(i18n("Lay OutQt::Horizontally"), createIconSet("edithlayout.xpm"),
CTRL + Key_H, TQT_TQOBJECT(this), TQT_SLOT(editLayoutHorizontal()), actionCollection(), "edit_layout_h");
actionEditHLayout->setToolTip(i18n("Lays out the selected widgets horizontally"));
actionEditHLayout->setWhatsThis(whatsThisFrom("Layout|Lay OutQt::Horizontally"));
actionEditHLayout->setEnabled(false);
- actionEditVLayout = new KAction(i18n("Lay OutQt::Vertically"), createIconSet("editvlayout.xpm"),
+ actionEditVLayout = new TDEAction(i18n("Lay OutQt::Vertically"), createIconSet("editvlayout.xpm"),
CTRL + Key_L, TQT_TQOBJECT(this), TQT_SLOT(editLayoutVertical()), actionCollection(), "edit_layout_v");
actionEditVLayout->setToolTip(i18n("Lays out the selected widgets vertically"));
actionEditVLayout->setWhatsThis(whatsThisFrom("Layout|Lay OutQt::Vertically"));
actionEditVLayout->setEnabled(false);
- actionEditGridLayout = new KAction(i18n("Lay Out in a Grid"), createIconSet("editgrid.xpm"),
+ actionEditGridLayout = new TDEAction(i18n("Lay Out in a Grid"), createIconSet("editgrid.xpm"),
CTRL + Key_G, TQT_TQOBJECT(this), TQT_SLOT(editLayoutGrid()), actionCollection(), "edit_layout_grid");
actionEditGridLayout->setToolTip(i18n("Lays out the selected widgets in a grid"));
actionEditGridLayout->setWhatsThis(whatsThisFrom("Layout|Lay Out in a Grid"));
actionEditGridLayout->setEnabled(false);
- actionEditSplitHorizontal = new KAction(i18n("Lay OutQt::Horizontally in Splitter"), createIconSet("editvlayoutsplit.xpm"),
- KShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editLayoutHorizontalSplit()), actionCollection(),
+ actionEditSplitHorizontal = new TDEAction(i18n("Lay OutQt::Horizontally in Splitter"), createIconSet("editvlayoutsplit.xpm"),
+ TDEShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editLayoutHorizontalSplit()), actionCollection(),
"edit_split_h");
actionEditSplitHorizontal->setToolTip(i18n("Lays out the selected widgets horizontally in a splitter"));
actionEditSplitHorizontal->setWhatsThis(whatsThisFrom("Layout|Lay OutQt::Horizontally in Splitter"));
actionEditSplitHorizontal->setEnabled(false);
- actionEditSplitVertical = new KAction(i18n("Lay OutQt::Vertically in Splitter"), createIconSet("edithlayoutsplit.xpm"),
- KShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editLayoutVerticalSplit()), actionCollection(),
+ actionEditSplitVertical = new TDEAction(i18n("Lay OutQt::Vertically in Splitter"), createIconSet("edithlayoutsplit.xpm"),
+ TDEShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editLayoutVerticalSplit()), actionCollection(),
"edit_split_v");
actionEditSplitVertical->setToolTip(i18n("Lays out the selected widgets vertically in a splitter"));
actionEditSplitVertical->setWhatsThis(whatsThisFrom("Layout|Lay OutQt::Vertically (in Splitter)"));
actionEditSplitVertical->setEnabled(false);
- actionEditBreakLayout = new KAction(i18n("Break Layout"), createIconSet("editbreaklayout.xpm"),
+ actionEditBreakLayout = new TDEAction(i18n("Break Layout"), createIconSet("editbreaklayout.xpm"),
CTRL + Key_B, TQT_TQOBJECT(this), TQT_SLOT(editBreakLayout()), actionCollection(), "edit_break_layout");
actionEditBreakLayout->setToolTip(i18n("Breaks the selected layout"));
actionEditBreakLayout->setWhatsThis(whatsThisFrom("Layout|Break Layout"));
int id = WidgetDatabase::idFromClassName("Spacer");
- KToggleAction *a = new KToggleAction(i18n("Spacer"), createIconSet("spacer.xpm"), KShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(toolSelected()),
+ TDEToggleAction *a = new TDEToggleAction(i18n("Spacer"), createIconSet("spacer.xpm"), TDEShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(toolSelected()),
actionCollection(), TQString::number(id).latin1());
a->setExclusiveGroup("tool");
a->setText(i18n("Add ") + WidgetDatabase::className(id));
@@ -283,28 +283,28 @@ void MainWindow::setupLayoutActions()
void MainWindow::setupToolActions()
{
- actionPointerTool = new KToggleAction(i18n("Pointer"), "arrow", Key_F2,
+ actionPointerTool = new TDEToggleAction(i18n("Pointer"), "arrow", Key_F2,
TQT_TQOBJECT(this), TQT_SLOT(toolSelected()), actionCollection(),
TQString::number(POINTER_TOOL).latin1());
actionPointerTool->setToolTip(i18n("Selects the pointer tool"));
actionPointerTool->setWhatsThis(whatsThisFrom("Tools|Pointer"));
actionPointerTool->setExclusiveGroup("tool");
- actionConnectTool = new KToggleAction(i18n("Connect Signal/Slots"), createIconSet("connecttool.xpm"),
+ actionConnectTool = new TDEToggleAction(i18n("Connect Signal/Slots"), createIconSet("connecttool.xpm"),
Key_F3, TQT_TQOBJECT(this), TQT_SLOT(toolSelected()), actionCollection(),
TQString::number(CONNECT_TOOL).latin1());
actionConnectTool->setToolTip(i18n("Selects the connection tool"));
actionConnectTool->setWhatsThis(whatsThisFrom("Tools|Connect Signals and Slots"));
actionConnectTool->setExclusiveGroup("tool");
- actionOrderTool = new KToggleAction(i18n("Tab Order"), createIconSet("ordertool.xpm"),
+ actionOrderTool = new TDEToggleAction(i18n("Tab Order"), createIconSet("ordertool.xpm"),
Key_F4, TQT_TQOBJECT(this), TQT_SLOT(toolSelected()), actionCollection(),
TQString::number(ORDER_TOOL).latin1());
actionOrderTool->setToolTip(i18n("Selects the tab order tool"));
actionOrderTool->setWhatsThis(whatsThisFrom("Tools|Tab Order"));
actionOrderTool->setExclusiveGroup("tool");
- KToolBar *tb = new KToolBar(this, "Tools");
+ TDEToolBar *tb = new TDEToolBar(this, "Tools");
tb->setFullSize(false);
TQWhatsThis::add(tb, i18n("<b>The Tools toolbar</b>%1").arg(toolbarHelp));
@@ -325,7 +325,7 @@ void MainWindow::setupToolActions()
TQString grp = WidgetDatabase::widgetGroup(j);
if (!WidgetDatabase::isGroupVisible(grp) || WidgetDatabase::isGroupEmpty(grp))
continue;
- KToolBar *tb = new KToolBar(this, grp.latin1());
+ TDEToolBar *tb = new TDEToolBar(this, grp.latin1());
tb->setFullSize(false);
bool plural = grp[(int) grp.length() - 1] == 's';
if (plural)
@@ -347,7 +347,7 @@ void MainWindow::setupToolActions()
{
if (WidgetDatabase::group(i) != grp)
continue; // only widgets, i.e. not forms and temp stuff
- KToggleAction *a = new KToggleAction(WidgetDatabase::className(i), KShortcut::null(),
+ TDEToggleAction *a = new TDEToggleAction(WidgetDatabase::className(i), TDEShortcut::null(),
TQT_TQOBJECT(this), TQT_SLOT(toolSelected()), actionCollection(), TQString::number(i).latin1());
a->setExclusiveGroup("tool");
TQString atext = WidgetDatabase::className(i);
@@ -406,7 +406,7 @@ void MainWindow::setupToolActions()
void MainWindow::setupFileActions()
{
- fileTb = new KToolBar(this, "File");
+ fileTb = new TDEToolBar(this, "File");
fileTb->setFullSize(false);
TQWhatsThis::add(fileTb, i18n("<b>The File toolbar</b>%1").arg(toolbarHelp));
@@ -414,7 +414,7 @@ void MainWindow::setupFileActions()
fileMenu = new TQPopupMenu(this, "File");
menuBar()->insertItem(i18n("&File"), fileMenu);
- KAction *a = KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(fileNew()), actionCollection());
+ TDEAction *a = KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(fileNew()), actionCollection());
a->setToolTip(i18n("Creates a new dialog"));
a->setWhatsThis(whatsThisFrom("File|New"));
a->plug(fileTb);
@@ -452,7 +452,7 @@ void MainWindow::setupFileActions()
connect(this, TQT_SIGNAL(hasActiveWindow(bool)), a, TQT_SLOT(setEnabled(bool)));
a->plug(fileMenu);
- a = new KAction(i18n("Save All"), "save_all", KShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(fileSaveAll()),
+ a = new TDEAction(i18n("Save All"), "save_all", TDEShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(fileSaveAll()),
actionCollection(), "file_close_all");
a->setToolTip(i18n("Saves all open dialogs"));
a->setWhatsThis(whatsThisFrom("File|Save All"));
@@ -473,7 +473,7 @@ void MainWindow::setupRunActions()
TQPopupMenu *menu = new TQPopupMenu(this, "Run");
menuBar()->insertItem(i18n("&Run"), menu);
- KAction* a = new KAction(i18n("Run Dialog"), "run", CTRL + Key_R,
+ TDEAction* a = new TDEAction(i18n("Run Dialog"), "run", CTRL + Key_R,
TQT_TQOBJECT(this), TQT_SLOT(runForm()), actionCollection(), "run");
a->setToolTip(i18n("Executes dialog"));
a->setWhatsThis(whatsThisFrom("Run|Run dialog"));
@@ -482,7 +482,7 @@ void MainWindow::setupRunActions()
a->plug(menu);
// add KDE4 executor
- KAction* b = new KAction(i18n("Run Dialog K4"), "launch", CTRL + SHIFT + TQt::Key_R,
+ TDEAction* b = new TDEAction(i18n("Run Dialog K4"), "launch", CTRL + SHIFT + TQt::Key_R,
TQT_TQOBJECT(this), TQT_SLOT(runForm4()), actionCollection(), "run4");
b->setToolTip(i18n("Executes dialog in KDE4"));
b->setWhatsThis(whatsThisFrom("Run|Run dialog"));
@@ -497,37 +497,37 @@ void MainWindow::setupWindowActions()
{
windowActionsSetup = true;
- KAction* actionWindowTile = new KAction(i18n("Tile"), KShortcut::null(), TQT_TQOBJECT(qworkspace), TQT_SLOT(tile()),
+ TDEAction* actionWindowTile = new TDEAction(i18n("Tile"), TDEShortcut::null(), TQT_TQOBJECT(qworkspace), TQT_SLOT(tile()),
actionCollection(), "window_tile");
actionWindowTile->setToolTip(i18n("Tiles the windows so that they are all visible"));
actionWindowTile->setWhatsThis(whatsThisFrom("Window|Tile"));
- KAction* actionWindowCascade = new KAction(i18n("Cascade"), KShortcut::null(), TQT_TQOBJECT(qworkspace), TQT_SLOT(cascade()),
+ TDEAction* actionWindowCascade = new TDEAction(i18n("Cascade"), TDEShortcut::null(), TQT_TQOBJECT(qworkspace), TQT_SLOT(cascade()),
actionCollection(), "window_cascade");
actionWindowCascade->setToolTip(i18n("Cascades the windows so that all their title bars are visible"));
actionWindowCascade->setWhatsThis(whatsThisFrom("Window|Cascade"));
- KAction* actionWindowClose = new KAction(i18n("Cascade"), KShortcut::null(), TQT_TQOBJECT(qworkspace), TQT_SLOT(closeActiveWindow()),
+ TDEAction* actionWindowClose = new TDEAction(i18n("Cascade"), TDEShortcut::null(), TQT_TQOBJECT(qworkspace), TQT_SLOT(closeActiveWindow()),
actionCollection(), "window_close");
actionWindowClose->setToolTip(i18n("Closes the active window"));
actionWindowClose->setWhatsThis(whatsThisFrom("Window|Close"));
- KAction* actionWindowCloseAll = new KAction(i18n("Close All"), KShortcut::null(), TQT_TQOBJECT(qworkspace),
+ TDEAction* actionWindowCloseAll = new TDEAction(i18n("Close All"), TDEShortcut::null(), TQT_TQOBJECT(qworkspace),
TQT_SLOT(closeAllWindows()), actionCollection(), "window_close_all");
actionWindowCloseAll->setToolTip(i18n("Closes all form windows"));
actionWindowCloseAll->setWhatsThis(whatsThisFrom("Window|Close All"));
- KAction* actionWindowNext = new KAction(i18n("Next"), Key_F6, TQT_TQOBJECT(qworkspace),
+ TDEAction* actionWindowNext = new TDEAction(i18n("Next"), Key_F6, TQT_TQOBJECT(qworkspace),
TQT_SLOT(activateNextWindow()), actionCollection(), "window_next");
actionWindowNext->setToolTip(i18n("Activates the next window"));
actionWindowNext->setWhatsThis(whatsThisFrom("Window|Next"));
- KAction* actionWindowPrevious = new KAction(i18n("Previous"), CTRL + SHIFT + Key_F6, TQT_TQOBJECT(qworkspace),
+ TDEAction* actionWindowPrevious = new TDEAction(i18n("Previous"), CTRL + SHIFT + Key_F6, TQT_TQOBJECT(qworkspace),
TQT_SLOT(activatePreviousWindow()), actionCollection(), "window_prev");
actionWindowPrevious->setToolTip(i18n("Activates the previous window"));
actionWindowPrevious->setWhatsThis(whatsThisFrom("Window|Previous"));
- windowMenu = new KPopupMenu(this, "Window");
+ windowMenu = new TDEPopupMenu(this, "Window");
menuBar()->insertItem(i18n("&Window"), windowMenu);
connect(windowMenu, TQT_SIGNAL(aboutToShow()), TQT_TQOBJECT(this), TQT_SLOT(setupWindowActions()));
@@ -575,17 +575,17 @@ void MainWindow::setupWindowActions()
void MainWindow::setupSettingsActions()
{
- KPopupMenu *settings = new KPopupMenu(this, "Settings");
- KAction* a = KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(editShortcuts()), actionCollection());
+ TDEPopupMenu *settings = new TDEPopupMenu(this, "Settings");
+ TDEAction* a = KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(editShortcuts()), actionCollection());
a->setToolTip(i18n("Opens a dialog to change shortcuts"));
a->plug(settings);
- a = new KAction(i18n("Configure &Plugins..."), KShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editPlugins()),
+ a = new TDEAction(i18n("Configure &Plugins..."), TDEShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(editPlugins()),
actionCollection(), "configure_plugins");
a->setToolTip(i18n("Opens a dialog to configure plugins"));
a->plug(settings);
- a = new KAction(i18n("&Configure Editor..."), KShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(configureEditor()),
+ a = new TDEAction(i18n("&Configure Editor..."), TDEShortcut::null(), TQT_TQOBJECT(this), TQT_SLOT(configureEditor()),
actionCollection(), "configure_editor");
a->setToolTip(i18n("Configure various aspects of this editor."));
a->plug(settings);
@@ -600,7 +600,7 @@ void MainWindow::setupSettingsActions()
void MainWindow::setupHelpActions()
{
- KPopupMenu *help = helpMenu();
+ TDEPopupMenu *help = helpMenu();
menuBar()->insertItem( i18n("&Help"), help);
}
diff --git a/kommander/editor/messagelog.cpp b/kommander/editor/messagelog.cpp
index 33a385b3..e89e04f3 100644
--- a/kommander/editor/messagelog.cpp
+++ b/kommander/editor/messagelog.cpp
@@ -30,7 +30,7 @@
MessageLog::MessageLog(TQWidget* parent, const char* name) : TQTabWidget(parent, name)
{
- m_popupMenu = new KPopupMenu(this);
+ m_popupMenu = new TDEPopupMenu(this);
m_popupMenu->insertItem(SmallIconSet("editcopy"), i18n("Copy Current &Line"), this, TQT_SLOT(copyLine()));
m_popupMenu->insertItem(SmallIconSet("editcopy"), i18n("&Copy Content"), this, TQT_SLOT(copyContent()));
m_popupMenu->insertItem(SmallIconSet("filesaveas"), i18n("&Save As..."), this, TQT_SLOT(saveToFile()));
@@ -39,7 +39,7 @@ MessageLog::MessageLog(TQWidget* parent, const char* name) : TQTabWidget(parent,
for (int i = 0; i < m_listCount; i++)
{
- m_lists[i] = new KListBox(this);
+ m_lists[i] = new TDEListBox(this);
addTab(m_lists[i], m_listNames[i]);
m_seenEOL[i] = false;
connect(m_lists[i], TQT_SIGNAL(contextMenuRequested(TQListBoxItem*, const TQPoint&)),
@@ -72,7 +72,7 @@ void MessageLog::insertItem(InfoType i, TQString text)
TQString MessageLog::content()
{
TQString p_content;
- KListBox* list = m_lists[currentPageIndex()];
+ TDEListBox* list = m_lists[currentPageIndex()];
for (uint i=0; i < list->count(); i++)
p_content.append(list->text(i) + "\n");
return p_content;
diff --git a/kommander/editor/messagelog.h b/kommander/editor/messagelog.h
index e9848bd1..f0c1edbc 100644
--- a/kommander/editor/messagelog.h
+++ b/kommander/editor/messagelog.h
@@ -21,9 +21,9 @@
#include <klocale.h>
-class KListBox;
+class TDEListBox;
class TDEProcess;
-class KPopupMenu;
+class TDEPopupMenu;
class TQListBoxItem;
class MessageLog : public TQTabWidget
@@ -48,9 +48,9 @@ public slots:
private:
static const int m_listCount = 2;
static TQString m_listNames[m_listCount];
- KListBox* m_lists[m_listCount];
+ TDEListBox* m_lists[m_listCount];
bool m_seenEOL[m_listCount];
- KPopupMenu* m_popupMenu;
+ TDEPopupMenu* m_popupMenu;
};
#endif