src/historyDialog.h

changeset 355
c2db4aa66b5d
parent 354
b32d4d66cb6e
child 356
08398f57aba3
equal deleted inserted replaced
354:b32d4d66cb6e 355:c2db4aa66b5d
1 /*
2 * LDForge: LDraw parts authoring CAD
3 * Copyright (C) 2013 Santeri Piippo
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #ifndef HISTORYDIALOG_H
20 #define HISTORYDIALOG_H
21
22 #include <qdialog.h>
23 #include <qdialogbuttonbox.h>
24 #include <qlistwidget.h>
25 #include <qpushbutton.h>
26 #include "gui.h"
27
28 class HistoryDialog : public QDialog {
29 Q_OBJECT
30
31 public:
32 explicit HistoryDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
33 void populateList ();
34
35 private:
36 QListWidget* historyList;
37 QPushButton* undoButton, *redoButton, *clearButton;
38 QDialogButtonBox* buttons;
39
40 void updateButtons ();
41 void updateSelection ();
42
43 private slots:
44 void slot_undo ();
45 void slot_redo ();
46 void slot_clear ();
47 void slot_selChanged ();
48 };
49
50 #endif // HISTORYDIALOG_H

mercurial