summaryrefslogtreecommitdiffstats
path: root/kommander/editor/mainwindowactions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/editor/mainwindowactions.cpp')
-rw-r--r--kommander/editor/mainwindowactions.cpp322
1 files changed, 161 insertions, 161 deletions
diff --git a/kommander/editor/mainwindowactions.cpp b/kommander/editor/mainwindowactions.cpp
index f7657d26..a4d4c430 100644
--- a/kommander/editor/mainwindowactions.cpp
+++ b/kommander/editor/mainwindowactions.cpp
@@ -19,18 +19,18 @@
#include "mainwindow.h"
-#include <qapplication.h>
-#include <qclipboard.h>
-#include <qfileinfo.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
-#include <qsignalmapper.h>
-#include <qspinbox.h>
-#include <qstatusbar.h>
-#include <qstylefactory.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qworkspace.h>
+#include <tqapplication.h>
+#include <tqclipboard.h>
+#include <tqfileinfo.h>
+#include <tqlineedit.h>
+#include <tqlistbox.h>
+#include <tqsignalmapper.h>
+#include <tqspinbox.h>
+#include <tqstatusbar.h>
+#include <tqstylefactory.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqworkspace.h>
#include "defs.h"
#include "widgetdatabase.h"
@@ -76,15 +76,15 @@
#include <stdlib.h>
-const QString toolbarHelp = "<p>Toolbars contain a number of buttons to "
+const TQString toolbarHelp = "<p>Toolbars contain a number of buttons to "
"provide quick access to often used functions.%1"
"<br>Click on the toolbar handle to hide the toolbar, "
"or drag and place the toolbar to a different location.</p>";
-static QIconSet createIconSet( const QString &name )
+static TQIconSet createIconSet( const TQString &name )
{
- QIconSet ic( PixmapChooser::loadPixmap( name, PixmapChooser::Small ) );
- ic.setPixmap( PixmapChooser::loadPixmap( name, PixmapChooser::Disabled ), QIconSet::Small, QIconSet::Disabled );
+ TQIconSet ic( PixmapChooser::loadPixmap( name, PixmapChooser::Small ) );
+ ic.setPixmap( PixmapChooser::loadPixmap( name, PixmapChooser::Disabled ), TQIconSet::Small, TQIconSet::Disabled );
return ic;
}
@@ -92,81 +92,81 @@ int forms = 0;
void MainWindow::setupEditActions()
{
- actionEditUndo = KStdAction::undo(this, SLOT(editUndo()), actionCollection());
+ actionEditUndo = KStdAction::undo(this, TQT_SLOT(editUndo()), actionCollection());
actionEditUndo->setText(i18n("&Undo: Not Available"));
actionEditUndo->setToolTip(i18n("Undoes the last action"));
actionEditUndo->setWhatsThis(whatsThisFrom("Edit|Undo"));
actionEditUndo->setEnabled(false);
- actionEditRedo = KStdAction::redo(this, SLOT(editRedo()), actionCollection());
+ actionEditRedo = KStdAction::redo(this, TQT_SLOT(editRedo()), actionCollection());
actionEditRedo->setText(i18n("&Redo: Not Available"));
actionEditRedo->setToolTip(i18n("Redoes the last undone operation"));
actionEditRedo->setWhatsThis(whatsThisFrom("Edit|Redo"));
actionEditRedo->setEnabled(false);
- actionEditCut = KStdAction::cut(this, SLOT(editCut()), actionCollection());
+ actionEditCut = KStdAction::cut(this, TQT_SLOT(editCut()), actionCollection());
actionEditCut->setToolTip(i18n("Cuts the selected widgets and puts them on the clipboard"));
actionEditCut->setWhatsThis(whatsThisFrom("Edit|Cut"));
actionEditCut->setEnabled(false);
- actionEditCopy = KStdAction::copy(this, SLOT(editCopy()), actionCollection());
+ actionEditCopy = KStdAction::copy(this, TQT_SLOT(editCopy()), actionCollection());
actionEditCopy->setToolTip(i18n("Copies the selected widgets to the clipboard"));
actionEditCopy->setWhatsThis(whatsThisFrom("Edit|Copy"));
actionEditCopy->setEnabled(false);
- actionEditPaste = KStdAction::paste(this, SLOT(editPaste()), actionCollection());
+ actionEditPaste = KStdAction::paste(this, TQT_SLOT(editPaste()), actionCollection());
actionEditPaste->setToolTip(i18n("Pastes the clipboard's contents"));
actionEditPaste->setWhatsThis(whatsThisFrom("Edit|Paste"));
actionEditPaste->setEnabled(false);
- actionEditDelete = new KAction(i18n("Delete"), Key_Delete, this, SLOT(editDelete()),
+ actionEditDelete = new KAction(i18n("Delete"), Key_Delete, this, TQT_SLOT(editDelete()),
actionCollection(), "edit_delete");
actionEditDelete->setToolTip(i18n("Deletes the selected widgets"));
actionEditDelete->setWhatsThis(whatsThisFrom("Edit|Delete"));
actionEditDelete->setEnabled(false);
- actionEditSelectAll = KStdAction::selectAll(this, SLOT(editSelectAll()), actionCollection());
+ actionEditSelectAll = KStdAction::selectAll(this, TQT_SLOT(editSelectAll()), actionCollection());
actionEditSelectAll->setToolTip(i18n("Selects all widgets"));
actionEditSelectAll->setWhatsThis(whatsThisFrom("Edit|Select All"));
actionEditRaise = new KAction(i18n("Bring to Front"), createIconSet("editraise.xpm"),
- KShortcut::null(), this, SLOT(editRaise()), actionCollection(), "edit_raise");
+ KShortcut::null(), 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(), this, SLOT(editLower()), actionCollection(), "edit_lower");
+ KShortcut::null(), 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, this, SLOT(editFindGlobal()), actionCollection(), "edit_find_global");
+ actionEditFindGlobal = new KAction(i18n("Find in Form..."), CTRL + ALT + Key_F, 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, SIGNAL(hasActiveForm(bool)), actionEditFindGlobal, SLOT(setEnabled(bool)));
+ connect(this, TQT_SIGNAL(hasActiveForm(bool)), actionEditFindGlobal, TQT_SLOT(setEnabled(bool)));
- actionEditAccels = new KAction(i18n("Check Accelerators"), ALT + Key_R, this, SLOT(editAccels()),
+ actionEditAccels = new KAction(i18n("Check Accelerators"), ALT + Key_R, 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, SIGNAL(hasActiveForm(bool)), actionEditAccels, SLOT(setEnabled(bool)));
+ connect(this, TQT_SIGNAL(hasActiveForm(bool)), actionEditAccels, TQT_SLOT(setEnabled(bool)));
actionEditConnections = new KAction(i18n("Connections"), createIconSet("connecttool.xpm"),
- KShortcut::null(), this, SLOT(editConnections()), actionCollection(),
+ KShortcut::null(), this, TQT_SLOT(editConnections()), actionCollection(),
"edit_connections");
actionEditConnections->setToolTip(i18n("Opens a dialog for editing connections"));
actionEditConnections->setWhatsThis(whatsThisFrom("Edit|Connections"));
- connect(this, SIGNAL(hasActiveForm(bool)), actionEditConnections, SLOT(setEnabled(bool)));
+ connect(this, TQT_SIGNAL(hasActiveForm(bool)), actionEditConnections, TQT_SLOT(setEnabled(bool)));
actionEditFormSettings = new KAction(i18n("Form Settings..."), KShortcut::null(),
- this, SLOT(editFormSettings()), actionCollection(), "edit_form");
+ 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, SIGNAL(hasActiveForm(bool)), actionEditFormSettings, SLOT(setEnabled(bool)));
+ connect(this, TQT_SIGNAL(hasActiveForm(bool)), actionEditFormSettings, TQT_SLOT(setEnabled(bool)));
KToolBar *tb = new KToolBar(this, "Edit");
tb->setFullSize(false);
- QWhatsThis::add(tb, i18n("<b>The Edit toolbar</b>%1").arg(toolbarHelp));
+ TQWhatsThis::add(tb, i18n("<b>The Edit toolbar</b>%1").arg(toolbarHelp));
addToolBar(tb, i18n("Edit"));
actionEditUndo->plug(tb);
actionEditRedo->plug(tb);
@@ -175,7 +175,7 @@ void MainWindow::setupEditActions()
actionEditCopy->plug(tb);
actionEditPaste->plug(tb);
- QPopupMenu *menu = new QPopupMenu(this, "Edit");
+ TQPopupMenu *menu = new TQPopupMenu(this, "Edit");
menuBar()->insertItem(i18n("&Edit"), menu);
actionEditUndo->plug(menu);
actionEditRedo->plug(menu);
@@ -198,51 +198,51 @@ void MainWindow::setupEditActions()
void MainWindow::setupLayoutActions()
{
actionEditAdjustSize = new KAction(i18n("Adjust Size"), createIconSet("adjustsize.xpm"),
- CTRL + Key_J, this, SLOT(editAdjustSize()), actionCollection(), "edit_adjust_size");
+ CTRL + Key_J, 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 Out Horizontally"), createIconSet("edithlayout.xpm"),
- CTRL + Key_H, this, SLOT(editLayoutHorizontal()), actionCollection(), "edit_layout_h");
+ CTRL + Key_H, this, TQT_SLOT(editLayoutHorizontal()), actionCollection(), "edit_layout_h");
actionEditHLayout->setToolTip(i18n("Lays out the selected widgets horizontally"));
actionEditHLayout->setWhatsThis(whatsThisFrom("Layout|Lay Out Horizontally"));
actionEditHLayout->setEnabled(false);
actionEditVLayout = new KAction(i18n("Lay Out Vertically"), createIconSet("editvlayout.xpm"),
- CTRL + Key_L, this, SLOT(editLayoutVertical()), actionCollection(), "edit_layout_v");
+ CTRL + Key_L, this, TQT_SLOT(editLayoutVertical()), actionCollection(), "edit_layout_v");
actionEditVLayout->setToolTip(i18n("Lays out the selected widgets vertically"));
actionEditVLayout->setWhatsThis(whatsThisFrom("Layout|Lay Out Vertically"));
actionEditVLayout->setEnabled(false);
actionEditGridLayout = new KAction(i18n("Lay Out in a Grid"), createIconSet("editgrid.xpm"),
- CTRL + Key_G, this, SLOT(editLayoutGrid()), actionCollection(), "edit_layout_grid");
+ CTRL + Key_G, 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 Out Horizontally in Splitter"), createIconSet("editvlayoutsplit.xpm"),
- KShortcut::null(), this, SLOT(editLayoutHorizontalSplit()), actionCollection(),
+ KShortcut::null(), 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 Out Horizontally in Splitter"));
actionEditSplitHorizontal->setEnabled(false);
actionEditSplitVertical = new KAction(i18n("Lay Out Vertically in Splitter"), createIconSet("edithlayoutsplit.xpm"),
- KShortcut::null(), this, SLOT(editLayoutVerticalSplit()), actionCollection(),
+ KShortcut::null(), 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 Out Vertically (in Splitter)"));
actionEditSplitVertical->setEnabled(false);
actionEditBreakLayout = new KAction(i18n("Break Layout"), createIconSet("editbreaklayout.xpm"),
- CTRL + Key_B, this, SLOT(editBreakLayout()), actionCollection(), "edit_break_layout");
+ CTRL + Key_B, 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(), this, SLOT(toolSelected()),
- actionCollection(), QString::number(id).latin1());
+ KToggleAction *a = new KToggleAction(i18n("Spacer"), createIconSet("spacer.xpm"), KShortcut::null(), this, TQT_SLOT(toolSelected()),
+ actionCollection(), TQString::number(id).latin1());
a->setExclusiveGroup("tool");
a->setText(i18n("Add ") + WidgetDatabase::className(id));
a->setToolTip(i18n("Insert a %1").arg(WidgetDatabase::toolTip(id)));
@@ -251,7 +251,7 @@ void MainWindow::setupLayoutActions()
"or double click to keep the tool selected.").arg(WidgetDatabase::toolTip(id)).
arg(WidgetDatabase::whatsThis(id)).arg(WidgetDatabase::toolTip(id)));
- QWhatsThis::add(layoutToolBar, i18n("<b>The Layout toolbar</b>%1").arg(toolbarHelp));
+ TQWhatsThis::add(layoutToolBar, i18n("<b>The Layout toolbar</b>%1").arg(toolbarHelp));
actionEditAdjustSize->plug(layoutToolBar);
layoutToolBar->addSeparator();
actionEditHLayout->plug(layoutToolBar);
@@ -263,7 +263,7 @@ void MainWindow::setupLayoutActions()
layoutToolBar->addSeparator();
a->plug(layoutToolBar);
- QPopupMenu *menu = new QPopupMenu(this, "Layout");
+ TQPopupMenu *menu = new TQPopupMenu(this, "Layout");
menuBar()->insertItem(i18n("&Layout"), menu);
actionEditAdjustSize->plug(menu);
menu->insertSeparator();
@@ -280,36 +280,36 @@ void MainWindow::setupLayoutActions()
void MainWindow::setupToolActions()
{
actionPointerTool = new KToggleAction(i18n("Pointer"), "arrow", Key_F2,
- this, SLOT(toolSelected()), actionCollection(),
- QString::number(POINTER_TOOL).latin1());
+ 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"),
- Key_F3, this, SLOT(toolSelected()), actionCollection(),
- QString::number(CONNECT_TOOL).latin1());
+ Key_F3, 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"),
- Key_F4, this, SLOT(toolSelected()), actionCollection(),
- QString::number(ORDER_TOOL).latin1());
+ Key_F4, 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");
tb->setFullSize(false);
- QWhatsThis::add(tb, i18n("<b>The Tools toolbar</b>%1").arg(toolbarHelp));
+ TQWhatsThis::add(tb, i18n("<b>The Tools toolbar</b>%1").arg(toolbarHelp));
- addToolBar(tb, i18n("Tools"), QMainWindow::DockTop, true);
+ addToolBar(tb, i18n("Tools"), TQMainWindow::DockTop, true);
actionPointerTool->plug(tb);
actionConnectTool->plug(tb);
actionOrderTool->plug(tb);
- QPopupMenu *mmenu = new QPopupMenu(this, "Tools");
+ TQPopupMenu *mmenu = new TQPopupMenu(this, "Tools");
menuBar()->insertItem(i18n("&Tools"), mmenu);
actionPointerTool->plug(mmenu);
actionConnectTool->plug(mmenu);
@@ -318,7 +318,7 @@ void MainWindow::setupToolActions()
for (int j = 0; j < WidgetDatabase::numWidgetGroups(); ++j)
{
- QString grp = WidgetDatabase::widgetGroup(j);
+ TQString grp = WidgetDatabase::widgetGroup(j);
if (!WidgetDatabase::isGroupVisible(grp) || WidgetDatabase::isGroupEmpty(grp))
continue;
KToolBar *tb = new KToolBar(this, grp.latin1());
@@ -326,17 +326,17 @@ void MainWindow::setupToolActions()
bool plural = grp[(int) grp.length() - 1] == 's';
if (plural)
{
- QWhatsThis::add(tb, i18n("<b>The %1</b>%2").arg(grp).arg(toolbarHelp).
+ TQWhatsThis::add(tb, i18n("<b>The %1</b>%2").arg(grp).arg(toolbarHelp).
arg(i18n(" Click on a button to insert a single widget, "
"or double click to insert multiple %1.")).arg(grp));
} else
{
- QWhatsThis::add(tb, i18n("<b>The %1 Widgets</b>%2").arg(grp).arg(toolbarHelp).
+ TQWhatsThis::add(tb, i18n("<b>The %1 Widgets</b>%2").arg(grp).arg(toolbarHelp).
arg(i18n(" Click on a button to insert a single %1 widget, "
"or double click to insert multiple widgets.")).arg(grp));
}
addToolBar(tb, grp);
- QPopupMenu *menu = new QPopupMenu(this, grp.latin1());
+ TQPopupMenu *menu = new TQPopupMenu(this, grp.latin1());
mmenu->insertItem(grp, menu);
for (int i = 0; i < WidgetDatabase::count(); ++i)
@@ -344,9 +344,9 @@ 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(),
- this, SLOT(toolSelected()), actionCollection(), QString::number(i).latin1());
+ this, TQT_SLOT(toolSelected()), actionCollection(), TQString::number(i).latin1());
a->setExclusiveGroup("tool");
- QString atext = WidgetDatabase::className(i);
+ TQString atext = WidgetDatabase::className(i);
if (atext[0] == 'Q')
atext = atext.mid(1);
while (atext.length() && atext[0] >= 'a' && atext[0] <= 'z')
@@ -354,16 +354,16 @@ void MainWindow::setupToolActions()
if (atext.isEmpty())
atext = WidgetDatabase::className(i);
a->setText(atext);
- QString ttip = WidgetDatabase::toolTip(i);
+ TQString ttip = WidgetDatabase::toolTip(i);
a->setIconSet(WidgetDatabase::iconSet(i));
a->setToolTip(ttip);
if (!WidgetDatabase::isWhatsThisLoaded())
WidgetDatabase::loadWhatsThis(documentationPath());
a->setToolTip(i18n("Insert a %1").arg(WidgetDatabase::className(i)));
- QString whats = i18n("<b>A %1</b>").arg(WidgetDatabase::className(i));
+ TQString whats = i18n("<b>A %1</b>").arg(WidgetDatabase::className(i));
if (!WidgetDatabase::whatsThis(i).isEmpty())
- whats += QString("<p>%1</p>").arg(WidgetDatabase::whatsThis(i));
+ whats += TQString("<p>%1</p>").arg(WidgetDatabase::whatsThis(i));
a->setWhatsThis(whats + i18n("<p>Double click on this tool to keep it selected.</p>"));
if (grp != "KDE")
@@ -374,23 +374,23 @@ void MainWindow::setupToolActions()
// add external Kommander dialogs for Editor
m_editorTools.clear();
- QPopupMenu* editMenu = new QPopupMenu(this);
- QStringList searchPaths = KGlobal::dirs()->findDirs("data", "kmdr-editor/editor");
- for (QStringList::ConstIterator it = searchPaths.begin(); it != searchPaths.end(); ++it)
+ TQPopupMenu* editMenu = new TQPopupMenu(this);
+ TQStringList searchPaths = KGlobal::dirs()->findDirs("data", "kmdr-editor/editor");
+ for (TQStringList::ConstIterator it = searchPaths.begin(); it != searchPaths.end(); ++it)
{
- if (!QFile::exists(*it))
+ if (!TQFile::exists(*it))
continue;
- QDir dir(*it);
- const QFileInfoList* fileList = dir.entryInfoList(QDir::DefaultFilter, QDir::DirsFirst | QDir::Name);
+ TQDir dir(*it);
+ const QFileInfoList* fileList = dir.entryInfoList(TQDir::DefaultFilter, TQDir::DirsFirst | TQDir::Name);
if (fileList)
for (QFileInfoListIterator fit(*fileList); fit.current(); ++fit)
{
- QFileInfo* fi = fit.current();
+ TQFileInfo* fi = fit.current();
if (!fi->isFile() || fi->extension() != "kmdr")
continue;
- QString name = fi->baseName();
+ TQString name = fi->baseName();
name = name.replace("_", " ");
- editMenu->insertItem(name, this, SLOT(editExternalTool(int)), 0, m_editorTools.count());
+ editMenu->insertItem(name, this, TQT_SLOT(editExternalTool(int)), 0, m_editorTools.count());
m_editorTools.append(fi->filePath());
}
}
@@ -405,59 +405,59 @@ void MainWindow::setupFileActions()
fileTb = new KToolBar(this, "File");
fileTb->setFullSize(false);
- QWhatsThis::add(fileTb, i18n("<b>The File toolbar</b>%1").arg(toolbarHelp));
+ TQWhatsThis::add(fileTb, i18n("<b>The File toolbar</b>%1").arg(toolbarHelp));
addToolBar(fileTb, i18n("File"));
- fileMenu = new QPopupMenu(this, "File");
+ fileMenu = new TQPopupMenu(this, "File");
menuBar()->insertItem(i18n("&File"), fileMenu);
- KAction *a = KStdAction::openNew(this, SLOT(fileNew()), actionCollection());
+ KAction *a = KStdAction::openNew(this, TQT_SLOT(fileNew()), actionCollection());
a->setToolTip(i18n("Creates a new dialog"));
a->setWhatsThis(whatsThisFrom("File|New"));
a->plug(fileTb);
a->plug(fileMenu);
- a = KStdAction::open(this, SLOT(fileOpen()), actionCollection());
+ a = KStdAction::open(this, TQT_SLOT(fileOpen()), actionCollection());
a->setToolTip(i18n("Opens an existing dialog"));
a->setWhatsThis(whatsThisFrom("File|Open"));
a->plug(fileTb);
a->plug(fileMenu);
- actionRecent = KStdAction::openRecent(this, SLOT(fileOpenRecent(const KURL&)), actionCollection());
+ actionRecent = KStdAction::openRecent(this, TQT_SLOT(fileOpenRecent(const KURL&)), actionCollection());
actionRecent->setToolTip(i18n("Opens recently open file"));
actionRecent->plug(fileMenu);
fileMenu->insertSeparator();
- a = KStdAction::close(this, SLOT(fileClose()), actionCollection());
+ a = KStdAction::close(this, TQT_SLOT(fileClose()), actionCollection());
a->setToolTip(i18n("Closes the current dialog"));
a->setWhatsThis(whatsThisFrom("File|Close"));
- connect(this, SIGNAL(hasActiveWindow(bool)), a, SLOT(setEnabled(bool)));
+ connect(this, TQT_SIGNAL(hasActiveWindow(bool)), a, TQT_SLOT(setEnabled(bool)));
a->plug(fileMenu);
fileMenu->insertSeparator();
- a = KStdAction::save(this, SLOT(fileSave()), actionCollection());
+ a = KStdAction::save(this, TQT_SLOT(fileSave()), actionCollection());
a->setToolTip(i18n("Saves the current dialog"));
a->setWhatsThis(whatsThisFrom("File|Save"));
- connect(this, SIGNAL(hasActiveWindow(bool)), a, SLOT(setEnabled(bool)));
+ connect(this, TQT_SIGNAL(hasActiveWindow(bool)), a, TQT_SLOT(setEnabled(bool)));
a->plug(fileTb);
a->plug(fileMenu);
- a = KStdAction::saveAs(this, SLOT(fileSaveAs()), actionCollection());
+ a = KStdAction::saveAs(this, TQT_SLOT(fileSaveAs()), actionCollection());
a->setToolTip(i18n("Saves the current dialog with a new filename"));
a->setWhatsThis(whatsThisFrom("File|Save As"));
- connect(this, SIGNAL(hasActiveWindow(bool)), a, SLOT(setEnabled(bool)));
+ connect(this, TQT_SIGNAL(hasActiveWindow(bool)), a, TQT_SLOT(setEnabled(bool)));
a->plug(fileMenu);
- a = new KAction(i18n("Save All"), "save_all", KShortcut::null(), this, SLOT(fileSaveAll()),
+ a = new KAction(i18n("Save All"), "save_all", KShortcut::null(), this, TQT_SLOT(fileSaveAll()),
actionCollection(), "file_close_all");
a->setToolTip(i18n("Saves all open dialogs"));
a->setWhatsThis(whatsThisFrom("File|Save All"));
- connect(this, SIGNAL(hasActiveWindow(bool)), a, SLOT(setEnabled(bool)));
+ connect(this, TQT_SIGNAL(hasActiveWindow(bool)), a, TQT_SLOT(setEnabled(bool)));
a->plug(fileMenu);
fileMenu->insertSeparator();
- a = KStdAction::quit(kapp, SLOT(closeAllWindows()), actionCollection());
+ a = KStdAction::quit(kapp, TQT_SLOT(closeAllWindows()), actionCollection());
a->setToolTip(i18n("Quits the application and prompts to save any changed dialogs"));
a->setWhatsThis(whatsThisFrom("File|Exit"));
a->plug(fileMenu);
@@ -466,23 +466,23 @@ void MainWindow::setupFileActions()
void MainWindow::setupRunActions()
{
- QPopupMenu *menu = new QPopupMenu(this, "Run");
+ TQPopupMenu *menu = new TQPopupMenu(this, "Run");
menuBar()->insertItem(i18n("&Run"), menu);
KAction* a = new KAction(i18n("Run Dialog"), "run", CTRL + Key_R,
- this, SLOT(runForm()), actionCollection(), "run");
+ this, TQT_SLOT(runForm()), actionCollection(), "run");
a->setToolTip(i18n("Executes dialog"));
a->setWhatsThis(whatsThisFrom("Run|Run dialog"));
- connect(this, SIGNAL(hasActiveForm(bool)), a, SLOT(setEnabled(bool)));
+ connect(this, TQT_SIGNAL(hasActiveForm(bool)), a, TQT_SLOT(setEnabled(bool)));
a->plug(fileTb);
a->plug(menu);
// add KDE4 executor
KAction* b = new KAction(i18n("Run Dialog K4"), "launch", CTRL + SHIFT + Qt::Key_R,
- this, SLOT(runForm4()), actionCollection(), "run4");
+ this, TQT_SLOT(runForm4()), actionCollection(), "run4");
b->setToolTip(i18n("Executes dialog in KDE4"));
b->setWhatsThis(whatsThisFrom("Run|Run dialog"));
- connect(this, SIGNAL(hasActiveForm(bool)), b, SLOT(setEnabled(bool)));
+ connect(this, TQT_SIGNAL(hasActiveForm(bool)), b, TQT_SLOT(setEnabled(bool)));
b->plug(menu);
}
@@ -493,39 +493,39 @@ void MainWindow::setupWindowActions()
{
windowActionsSetup = true;
- KAction* actionWindowTile = new KAction(i18n("Tile"), KShortcut::null(), qworkspace, SLOT(tile()),
+ KAction* actionWindowTile = new KAction(i18n("Tile"), KShortcut::null(), 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(), qworkspace, SLOT(cascade()),
+ KAction* actionWindowCascade = new KAction(i18n("Cascade"), KShortcut::null(), 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(), qworkspace, SLOT(closeActiveWindow()),
+ KAction* actionWindowClose = new KAction(i18n("Cascade"), KShortcut::null(), 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(), qworkspace,
- SLOT(closeAllWindows()), actionCollection(), "window_close_all");
+ 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, qworkspace,
- SLOT(activateNextWindow()), actionCollection(), "window_next");
+ 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, qworkspace,
- SLOT(activatePreviousWindow()), actionCollection(), "window_prev");
+ TQT_SLOT(activatePreviousWindow()), actionCollection(), "window_prev");
actionWindowPrevious->setToolTip(i18n("Activates the previous window"));
actionWindowPrevious->setWhatsThis(whatsThisFrom("Window|Previous"));
windowMenu = new KPopupMenu(this, "Window");
menuBar()->insertItem(i18n("&Window"), windowMenu);
- connect(windowMenu, SIGNAL(aboutToShow()), this, SLOT(setupWindowActions()));
+ connect(windowMenu, TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(setupWindowActions()));
actionWindowClose->plug(windowMenu);
actionWindowCloseAll->plug(windowMenu);
@@ -544,25 +544,25 @@ void MainWindow::setupWindowActions()
while (windowMenu->count() > 11)
windowMenu->removeItemAt(windowMenu->count() - 1);
- QWidgetList windows = qworkspace->windowList();
+ TQWidgetList windows = qworkspace->windowList();
if (windows.count() && formWindow())
windowMenu->insertSeparator();
int j = 0;
for (int i = 0; i < int (windows.count()); ++i)
{
- QWidget *w = windows.at(i);
+ TQWidget *w = windows.at(i);
if (!w->inherits("FormWindow") && !w->inherits("SourceEditor"))
continue;
j++;
- QString itemText;
+ TQString itemText;
if (j < 10)
- itemText = QString("&%1 ").arg(j);
+ itemText = TQString("&%1 ").arg(j);
if (w->inherits("FormWindow"))
itemText += w->name();
else
itemText += w->caption();
- int id = windowMenu->insertItem(itemText, this, SLOT(windowsMenuActivated(int)));
+ int id = windowMenu->insertItem(itemText, this, TQT_SLOT(windowsMenuActivated(int)));
windowMenu->setItemParameter(id, i);
windowMenu->setItemChecked(id, qworkspace->activeWindow() == windows.at(i));
}
@@ -572,21 +572,21 @@ void MainWindow::setupWindowActions()
void MainWindow::setupSettingsActions()
{
KPopupMenu *settings = new KPopupMenu(this, "Settings");
- KAction* a = KStdAction::keyBindings(this, SLOT(editShortcuts()), actionCollection());
+ KAction* a = KStdAction::keyBindings(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(), this, SLOT(editPlugins()),
+ a = new KAction(i18n("Configure &Plugins..."), KShortcut::null(), 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(), this, SLOT(configureEditor()),
+ a = new KAction(i18n("&Configure Editor..."), KShortcut::null(), this, TQT_SLOT(configureEditor()),
actionCollection(), "configure_editor");
a->setToolTip(i18n("Configure various aspects of this editor."));
a->plug(settings);
- a = KStdAction::preferences(this, SLOT(editPreferences()), actionCollection());
+ a = KStdAction::preferences(this, TQT_SLOT(editPreferences()), actionCollection());
a->setToolTip(i18n("Opens a dialog to change preferences"));
a->setWhatsThis(whatsThisFrom("Edit|Preferences"));
a->plug(settings);
@@ -604,14 +604,14 @@ void MainWindow::setupHelpActions()
void MainWindow::fileNew()
{
statusBar()->message(i18n("Create a new dialog..."));
- NewForm dlg(this, QString::null);
+ NewForm dlg(this, TQString::null);
dlg.exec();
statusBar()->clear();
}
void MainWindow::fileClose()
{
- QWidget *w = qworkspace->activeWindow();
+ TQWidget *w = qworkspace->activeWindow();
if (w->inherits("FormWindow"))
{
emit removedFormFile(((FormWindow *) w)->formFile());
@@ -624,22 +624,22 @@ void MainWindow::fileOpen() // as called by the menu
fileOpen("");
}
-void MainWindow::fileOpen(const QString & fn)
+void MainWindow::fileOpen(const TQString & fn)
{
statusBar()->message(i18n("Open a file..."));
- QStringList additionalSources;
+ TQStringList additionalSources;
- QStringList filenames;
+ TQStringList filenames;
if (fn.isEmpty())
- filenames = KFileDialog::getOpenFileNames(QString::null, i18n("*.kmdr|Kommander Files"), this, i18n("Open Files"));
+ filenames = KFileDialog::getOpenFileNames(TQString::null, i18n("*.kmdr|Kommander Files"), this, i18n("Open Files"));
else
filenames << fn;
- for (QStringList::ConstIterator fit = filenames.constBegin(); fit != filenames.constEnd(); ++fit)
+ for (TQStringList::ConstIterator fit = filenames.constBegin(); fit != filenames.constEnd(); ++fit)
{
- QString filename = *fit;
+ TQString filename = *fit;
if (!filename.isEmpty())
{
- QFileInfo fi(filename);
+ TQFileInfo fi(filename);
if (fi.exists() && openFormWindow(filename))
actionRecent->addURL(filename);
}
@@ -648,36 +648,36 @@ void MainWindow::fileOpen(const QString & fn)
-FormWindow *MainWindow::openFormWindow(const QString &filename, bool validFileName, FormFile *ff)
+FormWindow *MainWindow::openFormWindow(const TQString &filename, bool validFileName, FormFile *ff)
{
if (filename.isEmpty())
return 0;
bool makeNew = false;
- if (!QFile::exists(filename))
+ if (!TQFile::exists(filename))
{
makeNew = true;
} else
{
- QFile f(filename);
+ TQFile f(filename);
f.open(IO_ReadOnly);
- QTextStream ts(&f);
+ TQTextStream ts(&f);
makeNew = ts.read().length() < 2;
}
if (!makeNew)
{
statusBar()->message(i18n("Reading file '%1'...").arg(filename));
- if (QFile::exists(filename))
+ if (TQFile::exists(filename))
{
- QApplication::setOverrideCursor(WaitCursor);
+ TQApplication::setOverrideCursor(WaitCursor);
Resource resource(this);
if (!ff)
ff = new FormFile(filename, false);
bool b = resource.load(ff) && (FormWindow *) resource.widget();
if (!validFileName && resource.widget())
- ((FormWindow *) resource.widget())->setFileName(QString::null);
- QApplication::restoreOverrideCursor();
+ ((FormWindow *) resource.widget())->setFileName(TQString::null);
+ TQApplication::restoreOverrideCursor();
if (b)
{
statusBar()->message(i18n("Loaded file '%1'").arg(filename), 3000);
@@ -716,7 +716,7 @@ bool MainWindow::fileSaveForm()
fw = formWindow();
if (!fw || !fw->formFile()->save())
return false;
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
return true;
}
@@ -724,7 +724,7 @@ bool MainWindow::fileSaveAs()
{
statusBar()->message(i18n("Enter a filename..."));
- QWidget *w = qworkspace->activeWindow();
+ TQWidget *w = qworkspace->activeWindow();
if (!w)
return true;
if (w->inherits("FormWindow"))
@@ -734,7 +734,7 @@ bool MainWindow::fileSaveAs()
void MainWindow::fileSaveAll()
{
- QWidgetList windows = qworkspace->windowList(QWorkspace::StackingOrder);
+ TQWidgetList windows = qworkspace->windowList(TQWorkspace::StackingOrder);
for (int i = 0; i < (int)windows.count(); ++i)
{
FormWindow* fw = dynamic_cast<FormWindow*>(windows.at(i));
@@ -751,15 +751,15 @@ void MainWindow::saveAllTemp()
return;
inSaveAllTemp = true;
statusBar()->message(i18n("Qt Designer is crashing. Attempting to save files..."));
- QWidgetList windows = qWorkspace()->windowList();
- QString baseName = QDir::homeDirPath() + "/.designer/saved-form-";
+ TQWidgetList windows = qWorkspace()->windowList();
+ TQString baseName = TQDir::homeDirPath() + "/.designer/saved-form-";
int i = 1;
- for (QWidget * w = windows.first(); w; w = windows.next())
+ for (TQWidget * w = windows.first(); w; w = windows.next())
{
if (!w->inherits("FormWindow"))
continue;
- QString fn = baseName + QString::number(i++) + ".kmdr";
+ TQString fn = baseName + TQString::number(i++) + ".kmdr";
((FormWindow *) w)->setFileName(fn);
((FormWindow *) w)->formFile()->save();
}
@@ -781,29 +781,29 @@ void MainWindow::fileCreateTemplate()
for (i = 0; i < WidgetDatabase::count(); ++i)
{
if (WidgetDatabase::isContainer(i) && !WidgetDatabase::isForm(i) &&
- WidgetDatabase::className(i) != "QTabWidget" && WidgetDatabase::widgetGroup(i) != "Temp")
+ WidgetDatabase::className(i) != "TQTabWidget" && WidgetDatabase::widgetGroup(i) != "Temp")
{
dia.listClass->insertItem(WidgetDatabase::className(i));
}
}
dia.editName->setText(i18n("NewTemplate"));
- connect(dia.buttonCreate, SIGNAL(clicked()), this, SLOT(createNewTemplate()));
+ connect(dia.buttonCreate, TQT_SIGNAL(clicked()), this, TQT_SLOT(createNewTemplate()));
dia.exec();
}
void MainWindow::createNewTemplate()
{
CreateTemplate *dia = (CreateTemplate *) sender()->parent();
- QString fn = dia->editName->text();
- QString cn = dia->listClass->currentText();
+ TQString fn = dia->editName->text();
+ TQString cn = dia->listClass->currentText();
if (fn.isEmpty() || cn.isEmpty())
{
KMessageBox::information(this, i18n("Could not create the template"), i18n("Create Template"));
return;
}
- QStringList templRoots;
+ TQStringList templRoots;
const char *qtdir = getenv("QTDIR");
if (qtdir)
templRoots << qtdir;
@@ -814,13 +814,13 @@ void MainWindow::createNewTemplate()
templRoots << QT_INSTALL_DATA;
#endif
if (qtdir) //try the tools/designer directory last!
- templRoots << QString(qtdir) + "/tools/designer";
- QFile f;
- for (QStringList::Iterator it = templRoots.begin(); it != templRoots.end(); ++it)
+ templRoots << TQString(qtdir) + "/tools/designer";
+ TQFile f;
+ for (TQStringList::Iterator it = templRoots.begin(); it != templRoots.end(); ++it)
{
- if (QFile::exists((*it) + "/templates/"))
+ if (TQFile::exists((*it) + "/templates/"))
{
- QString tmpfn = (*it) + "/templates/" + fn + ".kmdr";
+ TQString tmpfn = (*it) + "/templates/" + fn + ".kmdr";
f.setName(tmpfn);
if (f.open(IO_WriteOnly))
break;
@@ -831,7 +831,7 @@ void MainWindow::createNewTemplate()
KMessageBox::information(this, i18n("Could not create the template"), i18n("Create Template"));
return;
}
- QTextStream ts(&f);
+ TQTextStream ts(&f);
ts << "<!DOCTYPE UI><UI>" << endl;
ts << "<widget>" << endl;
@@ -884,8 +884,8 @@ void MainWindow::editPaste()
if (!formWindow())
return;
- QWidget *w = formWindow()->mainContainer();
- QWidgetList l(formWindow()->selectedWidgets());
+ TQWidget *w = formWindow()->mainContainer();
+ TQWidgetList l(formWindow()->selectedWidgets());
if (l.count() == 1)
{
w = l.first();
@@ -983,8 +983,8 @@ void MainWindow::editLayoutContainerVertical()
{
if (!formWindow())
return;
- QWidget *w = formWindow()->mainContainer();
- QWidgetList l(formWindow()->selectedWidgets());
+ TQWidget *w = formWindow()->mainContainer();
+ TQWidgetList l(formWindow()->selectedWidgets());
if (l.count() == 1)
w = l.first();
if (w)
@@ -995,8 +995,8 @@ void MainWindow::editLayoutContainerHorizontal()
{
if (!formWindow())
return;
- QWidget *w = formWindow()->mainContainer();
- QWidgetList l(formWindow()->selectedWidgets());
+ TQWidget *w = formWindow()->mainContainer();
+ TQWidgetList l(formWindow()->selectedWidgets());
if (l.count() == 1)
w = l.first();
if (w)
@@ -1007,8 +1007,8 @@ void MainWindow::editLayoutContainerGrid()
{
if (!formWindow())
return;
- QWidget *w = formWindow()->mainContainer();
- QWidgetList l(formWindow()->selectedWidgets());
+ TQWidget *w = formWindow()->mainContainer();
+ TQWidgetList l(formWindow()->selectedWidgets());
if (l.count() == 1)
w = l.first();
if (w)
@@ -1022,7 +1022,7 @@ void MainWindow::editBreakLayout()
{
return;
}
- QWidget *w = formWindow()->mainContainer();
+ TQWidget *w = formWindow()->mainContainer();
if (formWindow()->currentWidget())
w = formWindow()->currentWidget();
if (WidgetFactory::layoutType(w) != WidgetFactory::NoLayout ||
@@ -1033,7 +1033,7 @@ void MainWindow::editBreakLayout()
}
else
{
- QWidgetList widgets = formWindow()->selectedWidgets();
+ TQWidgetList widgets = formWindow()->selectedWidgets();
for (w = widgets.first(); w; w = widgets.next())
{
if (WidgetFactory::layoutType(w) != WidgetFactory::NoLayout ||
@@ -1098,7 +1098,7 @@ void MainWindow::editPreferences()
statusBar()->message(i18n("Edit preferences..."));
Preferences *dia = new Preferences(this, 0, true);
prefDia = dia;
- connect(dia->helpButton, SIGNAL(clicked()), MainWindow::self, SLOT(showDialogHelp()));
+ connect(dia->helpButton, TQT_SIGNAL(clicked()), MainWindow::self, TQT_SLOT(showDialogHelp()));
dia->buttonColor->setEditor(StyledButton::ColorEditor);
dia->buttonPixmap->setEditor(StyledButton::PixmapEditor);
dia->checkBoxShowGrid->setChecked(sGrid);
@@ -1119,13 +1119,13 @@ void MainWindow::editPreferences()
dia->checkBoxSplash->setChecked(splashScreen);
dia->editDocPath->setText(docPath);
dia->checkAutoEdit->setChecked(!databaseAutoEdit);
- connect(dia->buttonDocPath, SIGNAL(clicked()), this, SLOT(chooseDocPath()));
+ connect(dia->buttonDocPath, TQT_SIGNAL(clicked()), this, TQT_SLOT(chooseDocPath()));
- if (dia->exec() == QDialog::Accepted)
+ if (dia->exec() == TQDialog::Accepted)
{
setSnapGrid(dia->checkBoxGrid->isChecked());
setShowGrid(dia->checkBoxShowGrid->isChecked());
- setGrid(QPoint(dia->spinGridX->value(), dia->spinGridY->value()));
+ setGrid(TQPoint(dia->spinGridX->value(), dia->spinGridY->value()));
restoreConfig = dia->checkBoxWorkspace->isChecked();
setUsesBigPixmaps(false /*dia->checkBoxBigIcons->isChecked() */ ); // ### disable for now
setUsesTextLabel(dia->checkBoxTextLabels->isChecked());
@@ -1173,8 +1173,8 @@ void MainWindow::editExternalTool(int id)
{
KProcess* process = new KProcess;
(*process) << "kmdr-executor" << m_editorTools[id];
- connect(process, SIGNAL(processExited(KProcess*)), SLOT(editToolExited(KProcess*)));
- connect(process, SIGNAL(receivedStdout(KProcess*, char*, int)), SLOT(editToolOutput(KProcess*, char*, int)));
+ connect(process, TQT_SIGNAL(processExited(KProcess*)), TQT_SLOT(editToolExited(KProcess*)));
+ connect(process, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), TQT_SLOT(editToolOutput(KProcess*, char*, int)));
m_toolOutput = '\0';
process->start(KProcess::NotifyOnExit, KProcess::Stdout);
}
@@ -1186,14 +1186,14 @@ void MainWindow::editToolExited(KProcess* process)
void MainWindow::editToolOutput(KProcess*, char* buffer, int buflen)
{
- m_toolOutput += QString::fromLocal8Bit(buffer, buflen);
+ m_toolOutput += TQString::fromLocal8Bit(buffer, buflen);
}
void MainWindow::chooseDocPath()
{
if (!prefDia)
return;
- QString fn = KFileDialog::getExistingDirectory(QString::null, this);
+ TQString fn = KFileDialog::getExistingDirectory(TQString::null, this);
if (!fn.isEmpty())
prefDia->editDocPath->setText(fn);
}