|
|
|
@ -136,7 +136,7 @@ MainWindow::MainWindow(bool asClient)
|
|
|
|
|
|
|
|
|
|
setupPlugins();
|
|
|
|
|
|
|
|
|
|
kapp->setMainWidget(this);
|
|
|
|
|
tdeApp->setMainWidget(this);
|
|
|
|
|
self = this;
|
|
|
|
|
|
|
|
|
|
prefDia = 0;
|
|
|
|
@ -171,13 +171,13 @@ MainWindow::MainWindow(bool asClient)
|
|
|
|
|
emit hasActiveWindow(false);
|
|
|
|
|
|
|
|
|
|
lastPressWidget = 0;
|
|
|
|
|
kapp->installEventFilter(this);
|
|
|
|
|
tdeApp->installEventFilter(this);
|
|
|
|
|
|
|
|
|
|
TQSize as(kapp->desktop()->size());
|
|
|
|
|
TQSize as(tdeApp->desktop()->size());
|
|
|
|
|
as -= TQSize(30, 30);
|
|
|
|
|
resize(TQSize(1200, 1000).boundedTo(as));
|
|
|
|
|
|
|
|
|
|
connect(kapp->clipboard(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(clipboardChanged()));
|
|
|
|
|
connect(tdeApp->clipboard(), TQ_SIGNAL(dataChanged()), this, TQ_SLOT(clipboardChanged()));
|
|
|
|
|
clipboardChanged();
|
|
|
|
|
layoutChilds = false;
|
|
|
|
|
layoutSelected = false;
|
|
|
|
@ -926,7 +926,7 @@ void MainWindow::popupFormWindowMenu(const TQPoint & gp, FormWindow *fw)
|
|
|
|
|
setupRMBSpecialCommands(ids, commands, fw);
|
|
|
|
|
setupRMBProperties(ids, commands, fw);
|
|
|
|
|
|
|
|
|
|
kapp->processEvents();
|
|
|
|
|
tdeApp->processEvents();
|
|
|
|
|
int r = rmbFormWindow->exec(gp);
|
|
|
|
|
|
|
|
|
|
handleRMBProperties(r, commands, fw);
|
|
|
|
@ -944,7 +944,7 @@ void MainWindow::popupWidgetMenu(const TQPoint &gp, FormWindow * /*fw*/, TQWidge
|
|
|
|
|
setupRMBSpecialCommands(ids, commands, w);
|
|
|
|
|
setupRMBProperties(ids, commands, w);
|
|
|
|
|
|
|
|
|
|
kapp->processEvents();
|
|
|
|
|
tdeApp->processEvents();
|
|
|
|
|
int r = rmbWidgets->exec(gp);
|
|
|
|
|
|
|
|
|
|
handleRMBProperties(r, commands, w);
|
|
|
|
@ -1257,7 +1257,7 @@ void MainWindow::handleRMBSpecialCommands(int id, TQMap<TQString, int> &commands
|
|
|
|
|
|
|
|
|
|
void MainWindow::clipboardChanged()
|
|
|
|
|
{
|
|
|
|
|
TQString text(kapp->clipboard()->text());
|
|
|
|
|
TQString text(tdeApp->clipboard()->text());
|
|
|
|
|
TQString start("<!DOCTYPE UI-SELECTION>");
|
|
|
|
|
actionEditPaste->setEnabled(text.left(start.length()) == start);
|
|
|
|
|
}
|
|
|
|
@ -1392,7 +1392,7 @@ void MainWindow::selectionChanged()
|
|
|
|
|
|
|
|
|
|
void MainWindow::writeConfig()
|
|
|
|
|
{
|
|
|
|
|
TDEConfig* config = kapp->config();
|
|
|
|
|
TDEConfig* config = tdeApp->config();
|
|
|
|
|
|
|
|
|
|
config->setGroup("General");
|
|
|
|
|
config->writeEntry("RestoreWorkspace", restoreConfig);
|
|
|
|
@ -1429,7 +1429,7 @@ void MainWindow::writeConfig()
|
|
|
|
|
|
|
|
|
|
void MainWindow::readConfig()
|
|
|
|
|
{
|
|
|
|
|
TDEConfig *config = kapp->config();
|
|
|
|
|
TDEConfig *config = tdeApp->config();
|
|
|
|
|
|
|
|
|
|
config->setGroup("General");
|
|
|
|
|
restoreConfig = config->readBoolEntry("RestoreWorkspace", true);
|
|
|
|
|