[Kstars-devel] KDE/kdeedu/kstars/kstars
Jason Harris
kstars at 30doradus.org
Mon Sep 24 16:35:41 CEST 2007
SVN commit 716326 by harris:
Disabling the New Window, Close Window, and Glossary actions
CCMAIL: kstars-devel at kde.org
M +20 -18 kstarsinit.cpp
--- trunk/KDE/kdeedu/kstars/kstars/kstarsinit.cpp #716325:716326
@@ -58,31 +58,32 @@
KIconLoader::global()->addAppDir( "kstars" );
//File Menu:
- QAction *ka = actionCollection()->addAction( "new_window" );
- ka->setIcon( KIcon( "window-new" ) );
- ka->setText( i18n("&New Window") );
- ka->setShortcuts( KShortcut( Qt::CTRL+Qt::Key_N ) );
- connect( ka, SIGNAL( triggered() ), this, SLOT( newWindow() ) );
+//FIXME: New window disabled
+// QAction *ka = actionCollection()->addAction( "new_window" );
+// ka->setIcon( KIcon( "window-new" ) );
+// ka->setText( i18n("&New Window") );
+// ka->setShortcuts( KShortcut( Qt::CTRL+Qt::Key_N ) );
+// connect( ka, SIGNAL( triggered() ), this, SLOT( newWindow() ) );
+//
+// ka = actionCollection()->addAction( "close_window");
+// ka->setIcon( KIcon( "window-close" ) );
+// ka->setText( i18n("&Close Window") );
+// ka->setShortcuts( KShortcut( Qt::CTRL+Qt::Key_W ) );
+// connect( ka, SIGNAL( triggered() ), this, SLOT( closeWindow() ) );
- ka = actionCollection()->addAction( "close_window");
- ka->setIcon( KIcon( "window-close" ) );
- ka->setText( i18n("&Close Window") );
- ka->setShortcuts( KShortcut( Qt::CTRL+Qt::Key_W ) );
- connect( ka, SIGNAL( triggered() ), this, SLOT( closeWindow() ) );
-
- ka = KNS::standardAction(i18n("Data..."), this, SLOT(slotDownload()), actionCollection(), "get_data");
+ QAction *ka = KNS::standardAction(i18n("Data..."), this, SLOT(slotDownload()), actionCollection(), "get_data");
ka->setShortcuts( KShortcut( Qt::CTRL+Qt::Key_D ) );
ka->setWhatsThis(i18n("Downloads new data"));
ka->setToolTip(ka->whatsThis());
ka->setStatusTip(ka->whatsThis());
- #ifdef HAVE_CFITSIO_H
+#ifdef HAVE_CFITSIO_H
ka = actionCollection()->addAction( "open_file");
ka->setIcon( KIcon( "document-open" ) );
ka->setText( i18n( "Open FITS...") );
ka->setShortcuts( KShortcut( Qt::CTRL+Qt::Key_O ) );
connect( ka, SIGNAL( triggered() ), this, SLOT( slotOpenFITS() ) );
- #endif
+#endif
ka = actionCollection()->addAction( "export_image" );
ka->setIcon( KIcon( "fileexport" ) );
@@ -356,10 +357,11 @@
ka->setShortcuts( KShortcut(Qt::CTRL+Qt::Key_U ) );
connect( ka, SIGNAL( triggered() ), this, SLOT( slotWUT() ) );
- ka = actionCollection()->addAction( "glossary");
- ka->setText( i18n( "Glossary...") );
- ka->setShortcuts( KShortcut(Qt::CTRL+Qt::Key_K ) );
- connect( ka, SIGNAL( triggered() ), this, SLOT( slotGlossary() ) );
+//FIXME: implement glossary
+// ka = actionCollection()->addAction( "glossary");
+// ka->setText( i18n( "Glossary...") );
+// ka->setShortcuts( KShortcut(Qt::CTRL+Qt::Key_K ) );
+// connect( ka, SIGNAL( triggered() ), this, SLOT( slotGlossary() ) );
ka = actionCollection()->addAction( "scriptbuilder");
ka->setText( i18n( "Script Builder...") );
More information about the Kstars-devel
mailing list