Vespucci  1.0.0
globalgradientdialog.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 GLOBALGRADIENTDIALOG_H
21 #define GLOBALGRADIENTDIALOG_H
22 
23 #include <QDialog>
26 class ColorRangeDialog;
27 namespace Ui {
29 }
30 
31 class GlobalGradientDialog : public QDialog
32 {
33  Q_OBJECT
34 
35 public:
36  explicit GlobalGradientDialog(MainWindow *parent, QSharedPointer<VespucciWorkspace> workspace);
38  void AddGradient(QString name, QString gradient_key, double lower, double upper);
39 private slots:
40  void on_addPushButton_clicked();
41 
42  void on_editPushButton_clicked();
43 
44  void on_removePushButton_clicked();
45 
46  void on_recalculatePushButton_clicked();
47 
48 private:
49  void RefreshListWidget();
50  Ui::GlobalGradientDialog *ui;
51  QSharedPointer<VespucciWorkspace> workspace_;
52  ColorRangeDialog *color_range_dialog_;
53 };
54 
55 #endif // GLOBALGRADIENTDIALOG_H
Definition: ahcadialog.h:26
The MainWindow class The main window of the program, this is where the user performs most operations...
Definition: mainwindow.h:58