2
* Copyright (C) 2009 Timothy Reaves
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
#ifndef _LOGBOOKCONFIGDIALOG_HPP_
20
#define _LOGBOOKCONFIGDIALOG_HPP_
23
#include "StelDialogLogBook.hpp"
24
#include "StelStyle.hpp"
26
#include "ui_LogBookConfigDialog.h"
27
#include "ui_BarlowsWidget.h"
28
#include "ui_FiltersWidget.h"
29
#include "ui_ImagersWidget.h"
30
#include "ui_ObserversWidget.h"
31
#include "ui_OcularsWidget.h"
32
#include "ui_OpticsWidget.h"
33
#include "ui_SitesWidget.h"
37
class Ui_LogBookConfigDialogForm;
40
class LogBookConfigDialog : public StelDialogLogBook {
44
LogBookConfigDialog(QMap<QString, QSqlTableModel *> theTableModels);
45
virtual ~LogBookConfigDialog();
46
void languageChanged();
47
virtual void setStelStyle(const StelStyle& style);
49
//! Notify that the application style changed
56
void currentBarlowChanged();
57
void currentFilterChanged();
58
void currentImagerChanged();
59
void currentObserverChanged();
60
void currentOcularChanged();
61
void currentOpticChanged();
62
void currentSiteChanged();
66
//! Initialize the dialog widgets and connect the signals/slots
67
virtual void createDialogContent();
68
void setupListViews();
69
//! helper for createDialogContent() that handles the referenced ui widgets.
73
Ui_LogBookConfigDialogForm *ui;
74
Ui_BarlowsWidget *barlowsWidget;
75
Ui_FiltersWidget *filtersWidget;
76
Ui_ImagersWidget *imagersWidget;
77
Ui_ObserversWidget *observersWidget;
78
Ui_OcularsWidget *ocularsWidget;
79
Ui_OpticsWidget *opticsWidget;
80
Ui_SitesWidget *sitesWidget;
82
QMap<QString, QSqlTableModel *> tableModels;
83
QMap<QString, QWidget *> widgets;
86
int selectedBarlowRow;
87
int selectedFilterRow;
88
int selectedImagerRow;
89
int selectedObserverRow;
90
int selectedOcularRow;
95
#endif // _LOGBOOKCONFIGDIALOG_HPP_