[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Apr 28 17:45:49 CEST 2004
CVS commit by staikos:
new window should create a new view
-> remove the two testviews. you can create them manually now
-> sizes are set to 0 right now - must fix later
M +6 -14 kst.cpp 1.103
M +1 -0 kstui.rc 1.22
--- kdeextragear-2/kst/kst/kst.cpp #1.102:1.103
@@ -172,9 +172,4 @@ KstApp::KstApp(QWidget *parent, const ch
checkFontPresent( "Symbol" );
-
- KstViewWindow *vw = new KstViewWindow;
- addWindow(vw);
- vw = new KstViewWindow;
- addWindow(vw);
}
@@ -698,13 +693,4 @@ bool KstApp::queryExit() {
}
-void KstApp::slotFileNewWindow() {
- slotUpdateStatusMsg(i18n("Opening a new application window..."));
-
- KstApp *new_window= new KstApp;
- new_window->show();
-
- slotUpdateStatusMsg(i18n("Ready"));
-}
-
void KstApp::slotFileNew() {
slotUpdateStatusMsg(i18n("Creating new document..."));
@@ -1032,4 +1018,10 @@ void KstApp::slotCopy() {
}
+
+void KstApp::slotFileNewWindow() {
+ addWindow(new KstViewWindow);
+}
+
+
#include "kst.moc"
// vim: ts=2 sw=2 et
--- kdeextragear-2/kst/kst/kstui.rc #1.21:1.22
@@ -3,4 +3,5 @@
<MenuBar>
<Menu name="file"><text>&File</text>
+ <Action name="file_new_window"/>
<Action name="tmp_file_new"/>
<Action name="graphfiledialog_action"/>
More information about the Kst
mailing list