[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed May 19 18:07:45 CEST 2004
CVS commit by staikos:
childframe mode readded
M +10 -10 kst.cpp 1.112
M +2 -1 kstui.rc 1.24
--- kdeextragear-2/kst/kst/kst.cpp #1.111:1.112
@@ -202,19 +202,19 @@ void KstApp::checkFontPresent( const QSt
void KstApp::mdiModeChanged(KMdi::MdiMode mode) {
- _MDITopLevelAction->setEnabled( true );
- _MDITabModeAction->setEnabled( true );
-// _MDIChildFrameAction->setEnabled( true );
+ _MDITopLevelAction->setEnabled(true);
+ _MDITabModeAction->setEnabled(true);
+ _MDIChildFrameAction->setEnabled(true);
// _MDIIDEAlModeAction->setEnabled( true );
switch( mode ) {
case KMdi::ToplevelMode:
- _MDITopLevelAction->setEnabled( false );
+ _MDITopLevelAction->setEnabled(false);
break;
case KMdi::TabPageMode:
- _MDITabModeAction->setEnabled( false );
+ _MDITabModeAction->setEnabled(false);
+ break;
+ case KMdi::ChildframeMode:
+ _MDIChildFrameAction->setEnabled(false);
break;
-// case KMdi::ChildframeMode:
-// _MDIChildFrameAction->setEnabled( false );
-// break;
// case KMdi::IDEAlMode:
// _MDIIDEAlModeAction->setEnabled( false );
@@ -586,6 +586,6 @@ void KstApp::initActions() {
_MDITopLevelAction = new KAction("Toplevel Mode", 0, 0, this, SLOT(switchToToplevelMode()), actionCollection(), "mdi_toplevel");
_MDITopLevelAction->setWhatsThis(i18n("Set top level MDI mode."));
-// _MDIChildFrameAction = new KAction("Childframe Mode", 0, 0, this, SLOT(switchToChildframeMode()), actionCollection(), "mdi_childframe");
-// _MDIChildFrameAction->setWhatsThis(i18n("Child frame MDI mode."));
+ _MDIChildFrameAction = new KAction("Childframe Mode", 0, 0, this, SLOT(switchToChildframeMode()), actionCollection(), "mdi_childframe");
+ _MDIChildFrameAction->setWhatsThis(i18n("Child frame MDI mode."));
_MDITabModeAction = new KAction("Tab Mode", 0, 0, this, SLOT(switchToTabPageMode()), actionCollection(), "mdi_tab");
_MDITabModeAction->setWhatsThis(i18n("Set tab MDI mode."));
--- kdeextragear-2/kst/kst/kstui.rc #1.23:1.24
@@ -1,4 +1,4 @@
<!DOCTYPE kpartgui>
-<kpartgui version="7" name="kst">
+<kpartgui version="8" name="kst">
<MenuBar>
<Menu name="file"><text>&File</text>
@@ -63,4 +63,5 @@
<Action name="mdi_toplevel"/>
<Action name="mdi_tab"/>
+ <Action name="mdi_childframe"/>
</Menu>
</Menu>
More information about the Kst
mailing list