1 /* 2 * ArchaeoLines plug-in for Stellarium 3 * 4 * Copyright (C) 2014 Georg Zotti 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; either version 2 9 * of the License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 #ifndef ARCHAEOLINESDIALOG_HPP 21 #define ARCHAEOLINESDIALOG_HPP 22 23 #include "StelDialog.hpp" 24 #include "StelGui.hpp" 25 #include "StelTranslator.hpp" 26 27 #include <QString> 28 #include <QColor> 29 #include <QColorDialog> 30 31 class Ui_archaeoLinesDialog; 32 class ArchaeoLines; 33 class ArchaeoLinesDialogLocations; 34 35 //! Main window of the ArchaeoLines plug-in. 36 //! @ingroup archaeoLines 37 class ArchaeoLinesDialog : public StelDialog 38 { 39 Q_OBJECT 40 41 public: 42 ArchaeoLinesDialog(); 43 ~ArchaeoLinesDialog(); 44 45 public slots: 46 void retranslate(); 47 48 protected: 49 void createDialogContent(); 50 51 private: 52 Ui_archaeoLinesDialog* ui; 53 ArchaeoLines* al; 54 ArchaeoLinesDialogLocations* locationsDialog; 55 56 void setAboutHtml(); 57 58 private slots: 59 void resetArchaeoLinesSettings(); 60 //! Switch between decimal and DMS inputs 61 void setDisplayFormatForSpins(bool flagDecimalDegrees); 62 //! assign fields from current selection 63 void assignCustomAzimuth1FromSelection(); 64 void assignCustomAzimuth2FromSelection(); 65 void assignCustomAltitude1FromSelection(); 66 void assignCustomAltitude2FromSelection(); 67 void assignCustomDeclination1FromSelection(); 68 void assignCustomDeclination2FromSelection(); 69 //! Connected to a QPushButton with a property "geo" of value 1 or 2 70 //void assignGeographicLocationFromList(); 71 }; 72 73 #endif /* ARCHAEOLINESDIALOG_HPP */ 74