[Kst] kdeextragear-2/kst/kst
Andrew Walker
arwalker at sumusltd.com
Tue Aug 17 18:28:32 CEST 2004
CVS commit by arwalker:
Moved the File->New Window... menu item to Window->New... which is the more logical location for it. Fix for 87002.
CCMAIL: 87002-done at bugs.kde.org
M +9 -2 kst.cpp 1.211
M +1 -0 kst.h 1.99
--- kdeextragear-2/kst/kst/kst.cpp #1.210:1.211
@@ -208,7 +208,15 @@ KstApp::KstApp(QWidget *parent, const ch
menuBar()->insertItem(i18n("&Window"), windowMenu());
}
+ QObject::connect( windowMenu(), SIGNAL(aboutToShow()), this, SLOT(addNewWindowMenu()) );
}
}
+
+void KstApp::addNewWindowMenu() {
+ int id = windowMenu()->insertItem(i18n("&New..."), this, SLOT(slotFileNewWindow()), 0, -1, 0);
+ windowMenu()->setWhatsThis(id, i18n("Create a new plot window."));
+}
+
+
void KstApp::checkFontPresent(const QString& font) {
QFont f(font);
@@ -273,10 +281,9 @@ KstApp::~KstApp() {
void KstApp::initActions() {
-
+#if 0
fileNewWindow = new KAction(i18n("New &Window..."), 0, 0,
this, SLOT(slotFileNewWindow()),
actionCollection(),"file_new_window");
-#if 0
fileOpenNew = KStdAction::openNew(this, SLOT(slotFileNew()), actionCollection());
fileOpenNew->setWhatsThis(i18n("Open Kst plot file."));
--- kdeextragear-2/kst/kst/kst.h #1.98:1.99
@@ -170,4 +170,5 @@ class KstApp : public KMdiMainFrm {
void slotSettingsChanged();
+ void addNewWindowMenu();
public slots:
More information about the Kst
mailing list