[Kstars-devel] branches/kstars/summer/kstars/kstars/tools
Prakash Mohan
prak902000 at gmail.com
Wed May 6 06:45:54 CEST 2009
SVN commit 964130 by prakash:
Adding functionality to open What's Up Tonight dialog from Observing list.
CCMAIL: kstars-devel at kde.org
M +9 -0 observinglist.cpp
M +5 -1 observinglist.h
M +27 -8 observinglist.ui
--- branches/kstars/summer/kstars/kstars/tools/observinglist.cpp #964129:964130
@@ -47,6 +47,7 @@
#include "dialogs/detaildialog.h"
#include "dialogs/finddialog.h"
#include "tools/altvstime.h"
+#include "tools/wutdialog.h"
#include "Options.h"
#include <config-kstars.h>
@@ -115,6 +116,8 @@
this, SLOT( slotDetails() ) );
connect( ui->AVTButton, SIGNAL( clicked() ),
this, SLOT( slotAVT() ) );
+ connect( ui->WUTButton, SIGNAL( clicked() ),
+ this, SLOT( slotWUT() ) );
connect( ui->FindButton, SIGNAL( clicked() ),
this, SLOT( slotFind() ) );
connect( ui->OpenButton, SIGNAL( clicked() ),
@@ -512,6 +515,12 @@
}
}
+void ObservingList::slotWUT() {
+ WUTDialog w( ks );
+ w.exec();
+}
+
+
void ObservingList::slotFind() {
FindDialog fd( ks );
if ( fd.exec() == QDialog::Accepted ) {
--- branches/kstars/summer/kstars/kstars/tools/observinglist.h #964129:964130
@@ -132,10 +132,14 @@
*/
void slotDetails();
- /**@short Show the details window for the selected object
+ /**@short Show the Altitude vs Time for selecteld objects
*/
void slotAVT();
+ /**@short Open the WUT dialog
+ */
+ void slotWUT();
+
/**@short Open the Find Dialog
*/
void slotFind();
--- branches/kstars/summer/kstars/kstars/tools/observinglist.ui #964129:964130
@@ -315,7 +315,7 @@
</widget>
</item>
<item>
- <widget class="KPushButton" name="FindButton" >
+ <widget class="KPushButton" name="RemoveButton" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
@@ -323,18 +323,18 @@
</sizepolicy>
</property>
<property name="toolTip" >
- <string>Open FindDialog</string>
+ <string>Remove from list</string>
</property>
<property name="whatsThis" >
- <string>Open the FindDialog for adding objects to the list</string>
+ <string>Remove the highlighted object(s) from the observing list</string>
</property>
<property name="text" >
- <string>Find..</string>
+ <string>Remove</string>
</property>
</widget>
</item>
<item>
- <widget class="KPushButton" name="RemoveButton" >
+ <widget class="KPushButton" name="WUTButton" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
<horstretch>0</horstretch>
@@ -342,17 +342,36 @@
</sizepolicy>
</property>
<property name="toolTip" >
- <string>Remove from list</string>
+ <string>Open the WUT dialog</string>
</property>
<property name="whatsThis" >
- <string>Remove the highlighted object(s) from the observing list</string>
+ <string>Opens the What's up tonight dialog, from which objects can be added to the list</string>
</property>
<property name="text" >
- <string>Remove</string>
+ <string>WUT</string>
</property>
</widget>
</item>
<item>
+ <widget class="KPushButton" name="FindButton" >
+ <property name="sizePolicy" >
+ <sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="toolTip" >
+ <string>Open FindDialog</string>
+ </property>
+ <property name="whatsThis" >
+ <string>Open the FindDialog for adding objects to the list</string>
+ </property>
+ <property name="text" >
+ <string>Find..</string>
+ </property>
+ </widget>
+ </item>
+ <item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
More information about the Kstars-devel
mailing list