|
|
|
@ -183,7 +183,7 @@ MainWindow::MainWindow()
|
|
|
|
|
createConnections();
|
|
|
|
|
mWindowListActions.setAutoDelete(true);
|
|
|
|
|
updateWindowActions();
|
|
|
|
|
KMainWindow::applyMainWindowSettings(KGlobal::config(), "MainWindow");
|
|
|
|
|
KMainWindow::applyMainWindowSettings(TDEGlobal::config(), "MainWindow");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -197,7 +197,7 @@ void MainWindow::setFullScreen(bool value) {
|
|
|
|
|
bool MainWindow::queryClose() {
|
|
|
|
|
mDocument->saveBeforeClosing();
|
|
|
|
|
|
|
|
|
|
KConfig* config=KGlobal::config();
|
|
|
|
|
KConfig* config=TDEGlobal::config();
|
|
|
|
|
|
|
|
|
|
// Don't store dock layout if only the image dock is visible. This avoid
|
|
|
|
|
// saving layout when in "fullscreen" or "image only" mode.
|
|
|
|
@ -216,7 +216,7 @@ bool MainWindow::queryClose() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!mToggleFullScreen->isChecked()) {
|
|
|
|
|
saveMainWindowSettings(KGlobal::config(), "MainWindow");
|
|
|
|
|
saveMainWindowSettings(TDEGlobal::config(), "MainWindow");
|
|
|
|
|
}
|
|
|
|
|
MiscConfig::setHistory( mURLEdit->historyItems() );
|
|
|
|
|
MiscConfig::writeConfig();
|
|
|
|
@ -570,7 +570,7 @@ void MainWindow::showToolBars() {
|
|
|
|
|
|
|
|
|
|
void MainWindow::toggleFullScreen() {
|
|
|
|
|
if (mToggleFullScreen->isChecked()) {
|
|
|
|
|
saveMainWindowSettings(KGlobal::config(), "MainWindow");
|
|
|
|
|
saveMainWindowSettings(TDEGlobal::config(), "MainWindow");
|
|
|
|
|
|
|
|
|
|
showFullScreen();
|
|
|
|
|
menuBar()->hide();
|
|
|
|
@ -690,7 +690,7 @@ void MainWindow::showKeyDialog() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::showToolBarDialog() {
|
|
|
|
|
saveMainWindowSettings(KGlobal::config(), "MainWindow");
|
|
|
|
|
saveMainWindowSettings(TDEGlobal::config(), "MainWindow");
|
|
|
|
|
KEditToolbar dlg(actionCollection());
|
|
|
|
|
connect(&dlg,TQT_SIGNAL(newToolbarConfig()),TQT_TQOBJECT(this),TQT_SLOT(applyMainWindowSettings()));
|
|
|
|
|
dlg.exec();
|
|
|
|
@ -698,7 +698,7 @@ void MainWindow::showToolBarDialog() {
|
|
|
|
|
|
|
|
|
|
void MainWindow::applyMainWindowSettings() {
|
|
|
|
|
createGUI();
|
|
|
|
|
KMainWindow::applyMainWindowSettings(KGlobal::config(), "MainWindow");
|
|
|
|
|
KMainWindow::applyMainWindowSettings(TDEGlobal::config(), "MainWindow");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -856,7 +856,7 @@ void MainWindow::updateImageActions() {
|
|
|
|
|
* actions are created in createObjectInteractions
|
|
|
|
|
*/
|
|
|
|
|
void MainWindow::createWidgets() {
|
|
|
|
|
KConfig* config=KGlobal::config();
|
|
|
|
|
KConfig* config=TDEGlobal::config();
|
|
|
|
|
|
|
|
|
|
mCentralStack=new TQWidgetStack(this);
|
|
|
|
|
setCentralWidget(mCentralStack);
|
|
|
|
|