Vespucci  1.0.0
scalebardialog.h
Go to the documentation of this file.
1 /*******************************************************************************
2  Copyright (C) 2014-2016 Wright State University - All Rights Reserved
3  Daniel P. Foose - Maintainer/Lead Developer
4 
5  This file is part of Vespucci.
6 
7  Vespucci is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  Vespucci is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Vespucci. If not, see <http://www.gnu.org/licenses/>.
19 *******************************************************************************/
20 #ifndef SCALEBARDIALOG_H
21 #define SCALEBARDIALOG_H
22 
23 #include <QDialog>
24 #include "GUI/Display/mapviewer.h"
25 
26 class MapData;
27 class MapViewer;
28 
29 namespace Ui {
30 class ScaleBarDialog;
31 }
32 
36 class ScaleBarDialog : public QDialog
37 {
38  Q_OBJECT
39 
40 public:
41  explicit ScaleBarDialog(QWidget *parent, QSharedPointer<MapData> map_data);
42  ~ScaleBarDialog();
43 
44 private slots:
45  void on_colorPushButton_clicked();
46 
47  void on_buttonBox_accepted();
48 
49  void on_buttonBox_rejected();
50 
51 private:
52  Ui::ScaleBarDialog *ui;
53 
57  QColor color_;
58 
62  QSharedPointer<MapData> map_data_;
63 };
64 
65 #endif // SCALEBARDIALOG_H
The MapData class Class for processed map data. Images are created from this data.
Definition: mapdata.h:44
Definition: ahcadialog.h:26
The MapViewer class Displays the image created by MapData.
Definition: mapviewer.h:45
The ScaleBarDialog class Dialog for the user to create a scale bar on the image.