DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
editpalettedialog.h
Go to the documentation of this file.
1 // --------------------------------------------------------------------------
2 // DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
3 // AND EFFORT DISPLACEMENT
4 // Copyright (c) 2012-2019 Francois Bastardie <fba@aqua.dtu.dk>
5 
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (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 along
17 // with this program; if not, write to the Free Software Foundation, Inc.,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 // --------------------------------------------------------------------------
20 
21 /* --------------------------------------------------------------------------
22  * DISPLACE: DYNAMIC INDIVIDUAL VESSEL-BASED SPATIAL PLANNING
23  * AND EFFORT DISPLACEMENT
24  * Copyright (c) 2012, 2013, 2014 Francois Bastardie <fba@aqua.dtu.dk>
25  *
26  * This program is free software; you can redistribute it and/or modify
27  * it under the terms of the GNU General Public License as published by
28  * the Free Software Foundation; either version 2 of the License, or
29  * (at your option) any later version.
30  *
31  * This program is distributed in the hope that it will be useful,
32  * but WITHOUT ANY WARRANTY; without even the implied warranty of
33  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34  * GNU General Public License for more details.
35  *
36  * You should have received a copy of the GNU General Public License along
37  * with this program; if not, write to the Free Software Foundation, Inc.,
38  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
39  * --------------------------------------------------------------------------
40  */
41 #ifndef EDITPALETTEDIALOG_H
42 #define EDITPALETTEDIALOG_H
43 
44 #include <QDialog>
45 #include <QModelIndex>
46 
47 namespace Ui {
48  class EditPaletteDialog;
49 }
50 
51 class Palette;
52 class PaletteModel;
54 
55 class EditPaletteDialog : public QDialog
56 {
57  Q_OBJECT
58 
59 public:
60  explicit EditPaletteDialog(QWidget *parent = 0);
62 
63  void showSpecials(bool visible = true);
64 
65  void linkPalette (Palette *palette);
66 
67 signals:
68  void paletteChanged();
69 
70 private slots:
71  void on_palette_doubleClicked(const QModelIndex &index);
72  void on_specialPalette_doubleClicked(const QModelIndex &index);
73  void on_btLoad_clicked();
74  void on_btSave_clicked();
75  void on_name_textChanged(const QString &arg1);
76  void on_add_clicked();
77  void on_remove_clicked();
78 
79  void on_pushButton_clicked();
80 
81 protected:
82  void updateControlValues();
83 
84 private:
86  Palette *mPalette;
87  PaletteModel *mModel;
88  SpecialPaletteModel *mSpecialModel;
89 
90  static QString mFileFilter;
91 };
92 
93 #endif // EDITPALETTEDIALOG_H
Definition: dteditorwindow.h:32
~EditPaletteDialog()
Definition: editpalettedialog.cpp:229
void paletteChanged()
Definition: moc_editpalettedialog.cpp:166
EditPaletteDialog(QWidget *parent=0)
Definition: editpalettedialog.cpp:221
void updateControlValues()
Definition: editpalettedialog.cpp:249
Definition: editpalettedialog.h:55
Definition: editpalettedialog.cpp:34
void showSpecials(bool visible=true)
Definition: editpalettedialog.cpp:234
void linkPalette(Palette *palette)
Definition: editpalettedialog.cpp:239
Definition: editpalettedialog.cpp:162
Definition: ui_editpalettedialog.h:204
Definition: palettemanager.h:62