[Kstars-devel] branches/kstars/summer/kstars/kstars
Prakash Mohan
prak902000 at gmail.com
Wed Jul 29 10:36:09 CEST 2009
SVN commit 1004053 by prakash:
Adding the Execute UI to KStars, it can currently be opened by pressing ctrl+2.
CCMAIL: kstars-devel at kde.org
M +5 -0 kstars.h
M +5 -0 kstarsactions.cpp
M +6 -0 kstarsinit.cpp
--- branches/kstars/summer/kstars/kstars/kstars.h #1004052:1004053
@@ -25,6 +25,7 @@
#include "tools/observinglist.h"
#include "comast/equipmentwriter.h"
#include "comast/observeradd.h"
+#include "comast/execute.h"
// forward declaration is enough. We only need pointers
class QPalette;
@@ -55,6 +56,7 @@
class ObservingList;
class EquipmentWriter;
class ObserverAdd;
+class Execute;
class OpsCatalog;
class OpsGuides;
@@ -700,6 +702,8 @@
void slotObserverAdd();
+ void slotExecute();
+
private:
/**
*Initialize Menu bar, toolbars and all Actions.
@@ -743,6 +747,7 @@
ObservingList *obsList;
EquipmentWriter *eWriter;
ObserverAdd *oAdd;
+ Execute *execute;
AltVsTime *avt;
WUTDialog *wut;
SkyCalendar *skycal;
--- branches/kstars/summer/kstars/kstars/kstarsactions.cpp #1004052:1004053
@@ -1056,6 +1056,11 @@
void KStars::slotObserverAdd() {
oAdd->show();
}
+
+void KStars::slotExecute() {
+ execute->init();
+ execute->show();
+}
//Help Menu
void KStars::slotTipOfDay() {
KTipDialog::showTip(this, "kstars/tips", true);
--- branches/kstars/summer/kstars/kstars/kstarsinit.cpp #1004052:1004053
@@ -401,6 +401,11 @@
ka->setShortcuts( KShortcut( Qt::CTRL+Qt::Key_1 ) );
connect( ka, SIGNAL( triggered() ), this, SLOT( slotObserverAdd() ) );
+ ka = actionCollection()->addAction( "execute" );
+ ka->setText( i18n( "Execute the session Plan..." ) );
+ ka->setShortcuts( KShortcut( Qt::CTRL+Qt::Key_2 ) );
+ connect( ka, SIGNAL( triggered() ), this, SLOT( slotExecute() ) );
+
// devices Menu
#ifdef HAVE_INDI_H
#ifndef Q_WS_WIN
@@ -645,6 +650,7 @@
obsList = new ObservingList( this );
eWriter = new EquipmentWriter();
oAdd = new ObserverAdd;
+ execute = new Execute;
//Do not start the clock if "--paused" specified on the cmd line
if ( StartClockRunning )
More information about the Kstars-devel
mailing list