[Kstars-devel] KDE/kdeedu/kstars/kstars
Alexey Khudyakov
alexey.skladnoy at gmail.com
Thu Aug 13 17:15:16 CEST 2009
SVN commit 1010888 by khudyakov:
Delete code for creation/closing windows. This code breaks singleton
nature of KStars class.
Also it hasn't been touched sicne 22-09-2007 so I assume it completely
bit-rotten
CCMAIL: kstars-devel at kde.org
M +0 -6 kstars.h
M +0 -12 kstarsactions.cpp
M +0 -14 kstarsinit.cpp
--- trunk/KDE/kdeedu/kstars/kstars/kstars.h #1010887:1010888
@@ -626,12 +626,6 @@
*/
void datainitFinished(bool worked);
- /**Open new KStars window. */
- void newWindow();
-
- /**Close KStars window. */
- void closeWindow();
-
/** Open FITS image. */
void slotOpenFITS();
--- trunk/KDE/kdeedu/kstars/kstars/kstarsactions.cpp #1010887:1010888
@@ -513,18 +513,6 @@
if ( DialogIsObsolete ) clearCachedFindDialog();
}
-/** Menu Slots **/
-
-//File
-void KStars::newWindow() {
- new KStars(true);
-}
-
-void KStars::closeWindow() {
- show();
- close();
-}
-
void KStars::slotOpenFITS()
{
#ifdef HAVE_CFITSIO_H
--- trunk/KDE/kdeedu/kstars/kstars/kstarsinit.cpp #1010887:1010888
@@ -60,20 +60,6 @@
void KStars::initActions() {
KIconLoader::global()->addAppDir( "kstars" );
- //File Menu:
-//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() ) );
-
KAction *ka = KNS::standardAction(i18n("Download New Data..."), this, SLOT(slotDownload()), actionCollection(), "get_data");
ka->setShortcuts( KShortcut( Qt::CTRL+Qt::Key_D ) );
ka->setWhatsThis(i18n("Downloads new data"));
More information about the Kstars-devel
mailing list