summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <[email protected]>2017-07-08 00:14:17 +0300
committerJasem Mutlaq <[email protected]>2017-07-08 00:14:17 +0300
commitac956f9e68e76d276808dc06a9422de8c856c1ca (patch)
treefba9f3fd7bd84e5f52b176e142629a532ce2c53b
parentcc7aa3a245f21a8df0f916197ee964f1adc23c02 (diff)
Fix odd Windows bug, add splitters, remove miniButton
-rw-r--r--kstars/tools/observinglist.cpp110
-rw-r--r--kstars/tools/observinglist.h10
-rw-r--r--kstars/tools/observinglist.ui1126
3 files changed, 563 insertions, 683 deletions
diff --git a/kstars/tools/observinglist.cpp b/kstars/tools/observinglist.cpp
index 8d05030..7859966 100644
--- a/kstars/tools/observinglist.cpp
+++ b/kstars/tools/observinglist.cpp
@@ -92,8 +92,7 @@ ObservingListUI::ObservingListUI(QWidget *p) : QFrame(p)
// ObservingList
// ---------------------------------
ObservingList::ObservingList()
- : QDialog((QWidget *)KStars::Instance()), LogObject(0), m_CurrentObject(0), isModified(false), bIsLarge(true),
- m_dl(0)
+ : QDialog((QWidget *)KStars::Instance()), LogObject(0), m_CurrentObject(0), isModified(false), m_dl(0)
{
#ifdef Q_OS_OSX
setWindowFlags(Qt::Tool | Qt::WindowStaysOnTopHint);
@@ -101,16 +100,8 @@ ObservingList::ObservingList()
ui = new ObservingListUI(this);
QVBoxLayout *mainLayout = new QVBoxLayout;
mainLayout->addWidget(ui);
- mainLayout->setMargin(3);
setWindowTitle(i18n("Observation Planner"));
- // Close button seems redundant since one can close the window -- occupies space
- /*
- QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close);
- mainLayout->addWidget(buttonBox);
- connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
- */
-
setLayout(mainLayout);
dt = KStarsDateTime::currentDateTime();
@@ -176,7 +167,6 @@ ObservingList::ObservingList()
connect(ui->SaveButton, SIGNAL(clicked()), this, SLOT(slotSaveSession()));
connect(ui->SaveAsButton, SIGNAL(clicked()), this, SLOT(slotSaveSessionAs()));
connect(ui->WizardButton, SIGNAL(clicked()), this, SLOT(slotWizard()));
- connect(ui->MiniButton, SIGNAL(clicked()), this, SLOT(slotToggleSize()));
connect(ui->SetLocation, SIGNAL(clicked()), this, SLOT(slotLocation()));
connect(ui->Update, SIGNAL(clicked()), this, SLOT(slotUpdate()));
connect(ui->DeleteImage, SIGNAL(clicked()), this, SLOT(slotDeleteCurrentImage()));
@@ -197,7 +187,6 @@ ObservingList::ObservingList()
ui->SaveAsButton->setAttribute(Qt::WA_LayoutUsesWidgetRect);
ui->WizardButton->setIcon(QIcon::fromTheme("tools-wizard", QIcon(":/icons/breeze/default/tools-wizard.svg")));
ui->WizardButton->setAttribute(Qt::WA_LayoutUsesWidgetRect);
- ui->MiniButton->setIcon(QIcon::fromTheme("view-restore", QIcon(":/icons/breeze/default/view-restore.svg")));
noSelection = true;
showScope = false;
ui->NotesEdit->setEnabled(false);
@@ -245,6 +234,12 @@ ObservingList::ObservingList()
// qDebug() << "Updating altitude for " << p.ra().toHMSString() << " " << p.dec().toDMSString() << " alt = " << p.alt().toDMSString() << " info to " << itemText;
return altItem;
};
+
+// Needed to fix weird bug on Windows that started with Qt 5.9 that makes the title bar
+// not visible and therefore dialog not movable.
+#ifdef Q_OS_WIN
+ move(100,100);
+#endif
}
ObservingList::~ObservingList()
@@ -267,13 +262,7 @@ void ObservingList::showEvent(QShowEvent *)
slotLoadWishList(); //Load the wishlist from disk if present
m_CurrentObject = 0;
- setSaveImagesButton();
- //Hide the MiniButton until I can figure out how to resize the Dialog!
- // ui->MiniButton->hide();
-
- // Set up for the large-size view
- bIsLarge = false;
- slotToggleSize();
+ setSaveImagesButton();
slotUpdateAltitudes();
m_altitudeUpdater = new QTimer(this);
@@ -1186,89 +1175,6 @@ double ObservingList::findAltitude(SkyPoint *p, double hour)
return sp.alt().Degrees();
}
-void ObservingList::slotToggleSize()
-{
- if (isLarge())
- {
- ui->MiniButton->setIcon(
- QIcon::fromTheme("view-fullscreen", QIcon(":/icons/breeze/default/view-fullscreen.svg")));
- //Abbreviate text on each button
- ui->FindButton->setText("");
- ui->FindButton->setIcon(QIcon::fromTheme("edit-find", QIcon(":/icons/breeze/default/edit-find.svg")));
- ui->WUTButton->setText(i18nc("Abbreviation of What's Up Tonight", "WUT"));
- ui->saveImages->setText("");
- ui->DeleteAllImages->setText("");
- ui->saveImages->setIcon(QIcon::fromTheme("download", QIcon(":/icons/breeze/default/download.svg")));
- ui->DeleteAllImages->setIcon(QIcon::fromTheme("edit-delete", QIcon(":/icons/breeze/default/edit-delete.svg")));
- ui->refLabel->setText(i18nc("Abbreviation for Reference Images:", "RefImg:"));
- ui->addLabel->setText(i18nc("Add objects to a list", "Add:"));
- //Hide columns 1-5
- ui->WishListView->hideColumn(1);
- ui->WishListView->hideColumn(2);
- ui->WishListView->hideColumn(3);
- ui->WishListView->hideColumn(4);
- ui->WishListView->hideColumn(5);
- //Hide the headers
- ui->WishListView->horizontalHeader()->hide();
- ui->WishListView->verticalHeader()->hide();
- //Hide Observing notes
- ui->NotesEdit->hide();
- //ui->kseparator->hide();
- ui->avt->hide();
- ui->dssMetadataLabel->hide();
- ui->setMinimumSize(320, 600);
- //Set the width of the Table to be the width of 5 toolbar buttons,
- //or the width of column 1, whichever is larger
- /*
- int w = 5*ui->MiniButton->width();
- if ( ui->WishListView->columnWidth(0) > w ) {
- w = ui->WishListView->columnWidth(0);
- } else {
- ui->WishListView->setColumnWidth(0, w);
- }
- int left, right, top, bottom;
- ui->layout()->getContentsMargins( &left, &top, &right, &bottom );
- resize( w + left + right, height() );
- */
- bIsLarge = false;
- ui->resize(400, ui->height());
- adjustSize();
- this->resize(400, this->height());
- update();
- }
- else
- {
- ui->MiniButton->setIcon(QIcon::fromTheme("view-restore", QIcon(":/icons/breeze/default/view-restore.svg")));
- //Show columns 1-5
- ui->WishListView->showColumn(1);
- ui->WishListView->showColumn(2);
- ui->WishListView->showColumn(3);
- ui->WishListView->showColumn(4);
- ui->WishListView->showColumn(5);
- //Show the horizontal header
- ui->WishListView->horizontalHeader()->show();
- //Expand text on each button
- ui->FindButton->setText(i18n("Find &Object"));
- ui->saveImages->setText(i18n("Download all Images"));
- ui->DeleteAllImages->setText(i18n("Delete all Images"));
- ui->FindButton->setIcon(QIcon());
- ui->saveImages->setIcon(QIcon());
- ui->DeleteAllImages->setIcon(QIcon());
- ui->WUTButton->setText(i18n("What's up Tonight tool"));
- ui->refLabel->setText(i18nc("Abbreviation for Reference Images:", "Reference Images:"));
- ui->addLabel->setText(i18nc("Add objects to a list", "Adding Objects:"));
- //Show Observing notes
- ui->NotesEdit->show();
- //ui->kseparator->show();
- ui->setMinimumSize(837, 650);
- ui->avt->show();
- ui->dssMetadataLabel->show();
- adjustSize();
- update();
- bIsLarge = true;
- }
-}
-
void ObservingList::slotChangeTab(int index)
{
noSelection = true;
diff --git a/kstars/tools/observinglist.h b/kstars/tools/observinglist.h
index 7c0b5e5..c75372e 100644
--- a/kstars/tools/observinglist.h
+++ b/kstars/tools/observinglist.h
@@ -95,10 +95,6 @@ class ObservingList : public QDialog
*/
~ObservingList();
- /** @return true if the window is in its default "large" state.
- */
- bool isLarge() const { return bIsLarge; }
-
/** @return reference to the current observing list
*/
QList<QSharedPointer<SkyObject>> &obsList() { return m_WishList; }
@@ -278,10 +274,6 @@ class ObservingList : public QDialog
*/
void slotWizard();
- /** @short toggle between the large and small window states
- */
- void slotToggleSize();
-
/** @short toggle the setEnabled flags according to current view
*set the m_currentItem to nullptr and clear selections
*@p index captures the integer value sent by the signal
@@ -410,7 +402,7 @@ class ObservingList : public QDialog
ObservingListUI *ui;
QList<QSharedPointer<SkyObject>> m_WishList, m_SessionList;
SkyObject *LogObject, *m_CurrentObject;
- bool isModified, bIsLarge, sessionView, dss, singleSelection, showScope, noSelection;
+ bool isModified, sessionView, dss, singleSelection, showScope, noSelection;
QString m_listFileName, m_currentImageFileName, m_currentThumbImageFileName;
KStarsDateTime dt;
GeoLocation *geo;
diff --git a/kstars/tools/observinglist.ui b/kstars/tools/observinglist.ui
index b703ecd..62d0b11 100644
--- a/kstars/tools/observinglist.ui
+++ b/kstars/tools/observinglist.ui
@@ -6,11 +6,11 @@
<rect>
<x>0</x>
<y>0</y>
- <width>654</width>
- <height>576</height>
+ <width>640</width>
+ <height>605</height>
</rect>
</property>
- <layout class="QVBoxLayout" name="verticalLayout_4">
+ <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0">
<property name="spacing">
<number>3</number>
</property>
@@ -27,675 +27,657 @@
<number>3</number>
</property>
<item>
- <layout class="QHBoxLayout" name="toolLayout">
- <property name="spacing">
- <number>3</number>
+ <widget class="QSplitter" name="mainSplitter">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
</property>
- <property name="leftMargin">
- <number>0</number>
- </property>
- <property name="topMargin">
- <number>0</number>
- </property>
- <property name="rightMargin">
- <number>0</number>
- </property>
- <property name="bottomMargin">
- <number>0</number>
- </property>
- <item>
- <widget class="QPushButton" name="OpenButton">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>32</width>
- <height>32</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>32</width>
- <height>32</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Open an observation session list</string>
- </property>
- <property name="whatsThis">
- <string>Load an observing list from disk</string>
- </property>
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="SaveButton">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>32</width>
- <height>32</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>32</width>
- <height>32</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Save the observing session</string>
- </property>
- <property name="whatsThis">
- <string>Save the current observing list to disk</string>
- </property>
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="SaveAsButton">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>32</width>
- <height>32</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>32</width>
- <height>32</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Save observing session as...</string>
- </property>
- <property name="whatsThis">
- <string>Save the current observing list to disk, specifying the filename</string>
- </property>
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="OALExport">
- <property name="text">
- <string>Export to OAL</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="Spacer1">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>QSizePolicy::Expanding</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="MiniButton">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>32</width>
- <height>32</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>32</width>
- <height>32</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Make window small</string>
- </property>
- <property name="whatsThis">
- <string>This button toggles between large and small states. The small state may be useful if you want the Observing list open while working in the main window.</string>
- </property>
- <property name="text">
- <string/>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <layout class="QHBoxLayout" name="LocationTimeLayout">
- <property name="spacing">
- <number>3</number>
- </property>
- <property name="topMargin">
- <number>0</number>
- </property>
- <item>
- <widget class="QLabel" name="locationLabel">
- <property name="text">
- <string>Location:</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="SetLocation">
- <property name="text">
- <string>Choose</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLabel" name="dateLabel">
- <property name="text">
- <string>Date:</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QDateEdit" name="DateEdit">
- <property name="showGroupSeparator" stdset="0">
- <bool>false</bool>
- </property>
- <property name="displayFormat">
- <string>dd/MM/yyyy</string>
- </property>
- <property name="calendarPopup">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="Update">
- <property name="toolTip">
- <string>Update the table and the plot for the new date and location.</string>
- </property>
- <property name="text">
- <string>Update</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_2">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QLabel" name="refLabel">
- <property name="text">
- <string>Reference Images:</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="saveImages">
- <property name="toolTip">
- <string>Download the SDSS/DSS images of all the objects in the current list.</string>
- </property>
- <property name="text">
- <string>Download all Images</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="DeleteAllImages">
- <property name="toolTip">
- <string>Deletes all the stored DSS/SDSS images</string>
- </property>
- <property name="text">
- <string>Delete all Images</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <layout class="QHBoxLayout" name="addingObjectsLayout">
- <property name="spacing">
- <number>3</number>
- </property>
- <property name="topMargin">
- <number>0</number>
- </property>
- <item>
- <widget class="QLabel" name="addLabel">
- <property name="text">
- <string>Adding Objects:</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="WizardButton">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>0</width>
- <height>0</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>16777215</width>
- <height>16777215</height>
- </size>
- </property>
- <property name="toolTip">
- <string>Observing List Wizard</string>
- </property>
- <property name="whatsThis">
- <string>The list wizard helps you construct observing lists based on filtering by object type, position on the sky, and magnitude.</string>
- </property>
- <property name="text">
- <string>Wizard</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="FindButton">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="toolTip">
- <string>Open Find Dialog</string>
- </property>
- <property name="whatsThis">
- <string>Open the Find Dialog for adding objects to the list</string>
- </property>
- <property name="text">
- <string>Find Object</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="WUTButton">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="toolTip">
- <string>Open the WUT dialog</string>
- </property>
- <property name="whatsThis">
- <string>Opens the What's up tonight dialog, from which objects can be added to the list</string>
- </property>
- <property name="text">
- <string>What's up Tonight tool</string>
- </property>
- </widget>
- </item>
- <item>
- <spacer name="horizontalSpacer_5">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item>
- <widget class="QPushButton" name="clearListB">
- <property name="text">
- <string>Clear List</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- <item>
- <layout class="QHBoxLayout" name="WishSessionLayout" stretch="2,1">
- <property name="spacing">
- <number>3</number>
- </property>
- <property name="sizeConstraint">
- <enum>QLayout::SetMinimumSize</enum>
- </property>
- <item>
- <widget class="QTabWidget" name="tabWidget">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>0</width>
- <height>202</height>
- </size>
- </property>
- <property name="currentIndex">
- <number>0</number>
+ <widget class="QWidget" name="">
+ <layout class="QVBoxLayout" name="topLayout">
+ <property name="spacing">
+ <number>3</number>
</property>
- <widget class="QWidget" name="WishList">
- <attribute name="title">
- <string>Wish List</string>
- </attribute>
- <layout class="QVBoxLayout">
+ <item>
+ <layout class="QHBoxLayout" name="toolLayout">
<property name="spacing">
<number>3</number>
</property>
<property name="leftMargin">
- <number>3</number>
+ <number>0</number>
</property>
<property name="topMargin">
- <number>3</number>
+ <number>0</number>
</property>
<property name="rightMargin">
- <number>3</number>
+ <number>0</number>
</property>
<property name="bottomMargin">
- <number>3</number>
+ <number>0</number>
</property>
<item>
- <widget class="QTableView" name="WishListView">
+ <widget class="QPushButton" name="OpenButton">
<property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="editTriggers">
- <set>QAbstractItemView::NoEditTriggers</set>
+ <property name="minimumSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
</property>
- <property name="alternatingRowColors">
- <bool>true</bool>
+ <property name="maximumSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
</property>
- <property name="selectionBehavior">
- <enum>QAbstractItemView::SelectRows</enum>
+ <property name="toolTip">
+ <string>Open an observation session list</string>
</property>
- <property name="showGrid">
- <bool>false</bool>
+ <property name="whatsThis">
+ <string>Load an observing list from disk</string>
</property>
- <property name="sortingEnabled">
- <bool>true</bool>
+ <property name="text">
+ <string/>
</property>
</widget>
</item>
- </layout>
- </widget>
- <widget class="QWidget" name="Session">
- <attribute name="title">
- <string>Session Plan</string>
- </attribute>
- <layout class="QVBoxLayout" name="verticalLayout_5">
- <property name="spacing">
- <number>3</number>
- </property>
- <property name="leftMargin">
- <number>3</number>
- </property>
- <property name="topMargin">
- <number>3</number>
- </property>
- <property name="rightMargin">
- <number>3</number>
- </property>
- <property name="bottomMargin">
- <number>3</number>
- </property>
<item>
- <widget class="QTableView" name="SessionView">
+ <widget class="QPushButton" name="SaveButton">
<property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="editTriggers">
- <set>QAbstractItemView::NoEditTriggers</set>
+ <property name="minimumSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
</property>
- <property name="alternatingRowColors">
- <bool>true</bool>
+ <property name="maximumSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
</property>
- <property name="selectionBehavior">
- <enum>QAbstractItemView::SelectRows</enum>
+ <property name="toolTip">
+ <string>Save the observing session</string>
</property>
- <property name="showGrid">
- <bool>false</bool>
+ <property name="whatsThis">
+ <string>Save the current observing list to disk</string>
</property>
- <property name="sortingEnabled">
- <bool>true</bool>
+ <property name="text">
+ <string/>
</property>
</widget>
</item>
<item>
- <layout class="QHBoxLayout" name="horizontalLayout_5">
- <property name="spacing">
- <number>3</number>
+ <widget class="QPushButton" name="SaveAsButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
</property>
- <item>
- <widget class="QLabel" name="scheduledTimeLabel">
- <property name="text">
- <string>Scheduled Time</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QTimeEdit" name="TimeEdit">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="maximumSize">
- <size>
- <width>100</width>
- <height>30</height>
- </size>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QPushButton" name="SetTime">
- <property name="text">
- <string>Set Time</string>
- </property>
- </widget>
- </item>
- </layout>
+ <property name="minimumSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>32</width>
+ <height>32</height>
+ </size>
+ </property>
+ <property name="toolTip">
+ <string>Save observing session as...</string>
+ </property>
+ <property name="whatsThis">
+ <string>Save the current observing list to disk, specifying the filename</string>
+ </property>
+ <property name="text">
+ <string/>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="OALExport">
+ <property name="text">
+ <string>Export to OAL</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="Spacer1">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeType">
+ <enum>QSizePolicy::Expanding</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
</item>
</layout>
- </widget>
- </widget>
- </item>
- <item>
- <layout class="QVBoxLayout" name="objectInfoLayout">
- <property name="spacing">
- <number>3</number>
- </property>
- <property name="sizeConstraint">
- <enum>QLayout::SetDefaultConstraint</enum>
- </property>
- <item>
- <widget class="QLabel" name="quickInfoLabel">
- <property name="text">
- <string>Select an object to view information here.</string>
- </property>
- </widget>
</item>
<item>
- <widget class="AVTPlotWidget" name="avt">
- <property name="enabled">
- <bool>true</bool>
- </property>
- <property name="sizePolicy">
- <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="minimumSize">
- <size>
- <width>350</width>
- <height>200</height>
- </size>
- </property>
- <property name="maximumSize">
- <size>
- <width>350</width>
- <height>200</height>
- </size>
+ <layout class="QHBoxLayout" name="LocationTimeLayout">
+ <property name="spacing">
+ <number>3</number>
</property>
- <property name="cursor">
- <cursorShape>CrossCursor</cursorShape>
+ <property name="topMargin">
+ <number>0</number>
</property>
- </widget>
+ <item>
+ <widget class="QLabel" name="locationLabel">
+ <property name="text">
+ <string>Location:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="SetLocation">
+ <property name="text">
+ <string>Choose</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLabel" name="dateLabel">
+ <property name="text">
+ <string>Date:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QDateEdit" name="DateEdit">
+ <property name="showGroupSeparator" stdset="0">
+ <bool>false</bool>
+ </property>
+ <property name="displayFormat">
+ <string>dd/MM/yyyy</string>
+ </property>
+ <property name="calendarPopup">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="Update">
+ <property name="toolTip">
+ <string>Update the table and the plot for the new date and location.</string>
+ </property>
+ <property name="text">
+ <string>Update</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QLabel" name="refLabel">
+ <property name="text">
+ <string>Reference Images:</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="saveImages">
+ <property name="toolTip">
+ <string>Download the SDSS/DSS images of all the objects in the current list.</string>
+ </property>
+ <property name="text">
+ <string>Download all Images</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="DeleteAllImages">
+ <property name="toolTip">
+ <string>Deletes all the stored DSS/SDSS images</string>
+ </property>
+ <property name="text">
+ <string>Delete all Images</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
<item>
- <layout class="QHBoxLayout" name="horizontalLayout_4">
+ <layout class="QHBoxLayout" name="addingObjectsLayout">
<property name="spacing">
<number>3</number>
</property>
+ <property name="topMargin">
+ <number>0</number>
+ </property>
+ <item>
+ <widget class="QLabel" name="addLabel">
+ <property name="text">
+ <string>Adding Objects:</string>
+ </property>
+ </widget>
+ </item>
<item>
- <widget class="QLabel" name="ImagePreview">
+ <widget class="QPushButton" name="WizardButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="minimumSize">
<size>
- <width>200</width>
- <height>200</height>
+ <width>0</width>
+ <height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
- <width>200</width>
- <height>200</height>
+ <width>16777215</width>
+ <height>16777215</height>
</size>
</property>
+ <property name="toolTip">
+ <string>Observing List Wizard</string>
+ </property>
+ <property name="whatsThis">
+ <string>The list wizard helps you construct observing lists based on filtering by object type, position on the sky, and magnitude.</string>
+ </property>
+ <property name="text">
+ <string>Wizard</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="FindButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="toolTip">
+ <string>Open Find Dialog</string>
+ </property>
+ <property name="whatsThis">
+ <string>Open the Find Dialog for adding objects to the list</string>
+ </property>
+ <property name="text">
+ <string>Find Object</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="WUTButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="toolTip">
+ <string>Open the WUT dialog</string>
+ </property>
+ <property name="whatsThis">
+ <string>Opens the What's up tonight dialog, from which objects can be added to the list</string>
+ </property>
<property name="text">
- <string>(No Image)</string>
+ <string>What's up Tonight tool</string>
</property>
</widget>
</item>
<item>
- <layout class="QVBoxLayout" name="verticalLayout_3">
+ <spacer name="horizontalSpacer_5">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QPushButton" name="clearListB">
+ <property name="text">
+ <string>Clear List</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QSplitter" name="WishObjectInfoSplitter">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <widget class="QTabWidget" name="tabWidget">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>202</height>
+ </size>
+ </property>
+ <property name="currentIndex">
+ <number>0</number>
+ </property>
+ <widget class="QWidget" name="WishList">
+ <attribute name="title">
+ <string>Wish List</string>
+ </attribute>
+ <layout class="QVBoxLayout">
+ <property name="spacing">
+ <number>3</number>
+ </property>
+ <property name="leftMargin">
+ <number>3</number>
+ </property>
+ <property name="topMargin">
+ <number>3</number>
+ </property>
+ <property name="rightMargin">
+ <number>3</number>
+ </property>
+ <property name="bottomMargin">
+ <number>3</number>
+ </property>
+ <item>
+ <widget class="QTableView" name="WishListView">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="editTriggers">
+ <set>QAbstractItemView::NoEditTriggers</set>
+ </property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <property name="selectionBehavior">
+ <enum>QAbstractItemView::SelectRows</enum>
+ </property>
+ <property name="showGrid">
+ <bool>false</bool>
+ </property>
+ <property name="sortingEnabled">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <widget class="QWidget" name="Session">
+ <attribute name="title">
+ <string>Session Plan</string>
+ </attribute>
+ <layout class="QVBoxLayout" name="verticalLayout_5">
+ <property name="spacing">
+ <number>3</number>
+ </property>
+ <property name="leftMargin">
+ <number>3</number>
+ </property>
+ <property name="topMargin">
+ <number>3</number>
+ </property>
+ <property name="rightMargin">
+ <number>3</number>
+ </property>
+ <property name="bottomMargin">
+ <number>3</number>
+ </property>
+ <item>
+ <widget class="QTableView" name="SessionView">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="editTriggers">
+ <set>QAbstractItemView::NoEditTriggers</set>
+ </property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <property name="selectionBehavior">
+ <enum>QAbstractItemView::SelectRows</enum>
+ </property>
+ <property name="showGrid">
+ <bool>false</bool>
+ </property>
+ <property name="sortingEnabled">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_5">
+ <property name="spacing">
+ <number>3</number>
+ </property>
+ <item>
+ <widget class="QLabel" name="scheduledTimeLabel">
+ <property name="text">
+ <string>Scheduled Time</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QTimeEdit" name="TimeEdit">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>100</width>
+ <height>30</height>
+ </size>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="SetTime">
+ <property name="text">
+ <string>Set Time</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ <widget class="QWidget" name="">
+ <layout class="QVBoxLayout" name="objectInfoLayout">
<property name="spacing">
- <number>2</number>
+ <number>3</number>
</property>
+ <property name="sizeConstraint">
+ <enum>QLayout::SetDefaultConstraint</enum>
+ </property>
+ <item>
+ <widget class="QLabel" name="quickInfoLabel">
+ <property name="text">
+ <string>Select an object to view information here.</string>
+ </property>
+ </widget>
+ </item>
<item>
- <widget class="QLabel" name="dssMetadataLabel">
+ <widget class="AVTPlotWidget" name="avt">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
<property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
- <width>145</width>
- <height>0</height>
+ <width>350</width>
+ <height>200</height>
</size>
</property>
- <property name="text">
- <string>Image Metadata Info</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+ <property name="maximumSize">
+ <size>
+ <width>350</width>
+ <height>200</height>
+ </size>
</property>
- <property name="wordWrap">
- <bool>true</bool>
+ <property name="cursor">
+ <cursorShape>CrossCursor</cursorShape>
</property>
</widget>
</item>
<item>
- <layout class="QVBoxLayout" name="verticalLayout">
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="spacing">
<number>3</number>
</property>
- <property name="rightMargin">
- <number>12</number>
- </property>
<item>
- <widget class="QPushButton" name="SearchImage">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
+ <widget class="QLabel" name="ImagePreview">
+ <property name="minimumSize">
+ <size>
+ <width>200</width>
+ <height>200</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>200</width>
+ <height>200</height>
+ </size>
</property>
<property name="text">
- <string>Replace from internet</string>
+ <string>(No Image)</string>
</property>
</widget>
</item>
<item>
- <widget class="QPushButton" name="DeleteImage">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>Delete Image</string>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <property name="spacing">
+ <number>2</number>
</property>
- </widget>
+ <item>
+ <widget class="QLabel" name="dssMetadataLabel">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>145</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>Image Metadata Info</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+ </property>
+ <property name="wordWrap">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <property name="spacing">
+ <number>3</number>
+ </property>
+ <property name="rightMargin">
+ <number>12</number>
+ </property>
+ <item>
+ <widget class="QPushButton" name="SearchImage">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Replace from internet</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="DeleteImage">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Delete Image</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
</item>
</layout>
</item>
</layout>
- </item>
- </layout>
+ </widget>
+ </widget>
</item>
</layout>
- </item>
- </layout>
- </item>
- <item>
- <widget class="QTextEdit" name="NotesEdit">
- <property name="placeholderText">
- <string>Record object notes here.</string>
- </property>
+ </widget>
+ <widget class="QTextEdit" name="NotesEdit">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="placeholderText">
+ <string>Record object notes here.</string>
+ </property>
+ </widget>
</widget>
</item>
</layout>