summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/app/remotemdi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clients/tde/src/app/remotemdi.cpp')
-rw-r--r--clients/tde/src/app/remotemdi.cpp50
1 files changed, 7 insertions, 43 deletions
diff --git a/clients/tde/src/app/remotemdi.cpp b/clients/tde/src/app/remotemdi.cpp
index ea17c20..3e7e26b 100644
--- a/clients/tde/src/app/remotemdi.cpp
+++ b/clients/tde/src/app/remotemdi.cpp
@@ -27,29 +27,17 @@ using namespace std;
#include "views/instrumentview.h"
-RemoteMDI::RemoteMDI(KMdi::MdiMode mode)
- : KMdiMainFrm(0, "RemoteMDI", mode), m_children(0)
+RemoteMDI::RemoteMDI()
+ : KMdiMainFrm(0, "RemoteMDI", KMdi::ChildframeMode), m_children(0)
{
setXMLFile("remotelabui.rc");
// Create some actions
- KStdAction::openNew(this, SLOT(openNewWindow()), actionCollection());
KStdAction::close(this, SLOT(closeCurrent()), actionCollection());
KStdAction::quit(this, SLOT(close()), actionCollection());
- // Allow the user to change the MDI mode
- KToggleAction *tl = new KRadioAction(i18n("Top level mode"), KShortcut(), this, SLOT(switchToToplevelMode()), actionCollection(), "toplevel");
- tl->setExclusiveGroup("MDIMode");
- tl->setChecked(mode == KMdi::ToplevelMode);
- KToggleAction *cf = new KRadioAction(i18n("Child frame mode"), KShortcut(), this, SLOT(switchToChildframeMode()), actionCollection(), "childframe");
- cf->setExclusiveGroup("MDIMode");
- cf->setChecked(mode == KMdi::ChildframeMode);
- KToggleAction *tp = new KRadioAction(i18n("Tab page mode"), KShortcut(), this, SLOT(switchToTabPageMode()), actionCollection(), "tabpage");
- tp->setExclusiveGroup("MDIMode");
- tp->setChecked(mode == KMdi::TabPageMode);
- KToggleAction *id = new KRadioAction( i18n("Ideal mode"), KShortcut(), this, SLOT(switchToIDEAlMode()), actionCollection(), "ideal");
- id->setExclusiveGroup("MDIMode");
- id->setChecked(mode == KMdi::IDEAlMode);
+ // Use a traditional MDI
+ switchToChildframeMode();
KToggleAction *inst_sa_menu = new KToggleAction(i18n("Spectrum Analyzer"), KShortcut(), this, SLOT(startSpectrumAnalyzer()), actionCollection(), "spectrum_analyzer");
@@ -244,38 +232,14 @@ bool RemoteMDI::queryClose()
}
}
- // Save current MDI mode
+ // Save current MDI settings (window positions, etc.)
KConfig *c = kapp->config();
- // Put in value a matching string value
- TQString value;
- switch (mdiMode()) {
- case KMdi::ToplevelMode:
- value = "toplevel";
- break;
+ // RAJA FIXME
- case KMdi::ChildframeMode:
- value = "childframe";
- break;
-
- case KMdi::TabPageMode:
- value = "tabpage";
- break;
-
- case KMdi::IDEAlMode:
- value = "ideal";
- break;
-
- case KMdi::UndefinedMode:
- value = "ideal";
- break;
- }
-
- // Write it!
- c->writeEntry( "MDIMode", value );
c->sync();
- // Allow to close the window
+ // Allow this window to close
return true;
}