Debian Codegraph @

include/HistoryPanel/HistoryWidget.h

raw symbols SCIP
1 /*
2 * Copyright 2014 Mihai Niculescu <[email protected]>
3 *
4 * This file is part of EqualX Project (https://launchpad.net/equalx/)
5 *
6 * EqualX 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 3 of the License, or
9 * (at your option) any later version.
10 *
11 * EqualX 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 HISTORYWIDGET_H
21 #define HISTORYWIDGET_H
22
23 #include <QWidget>
24 #include <QModelIndex>
25 #include "Library/LibraryData.h"
26
27 namespace Ui {
28 class HistoryWidget;
29 }
30
31 class HistoryListModel;
32
33 class HistoryWidget : public QWidget
34 {
35 Q_OBJECT
36
37 public:
38 explicit HistoryWidget(QWidget *parent = 0);
39 ~HistoryWidget();
40
41 signals:
42 void activated(const LibraryModelData); // emited when an item is double clicked from the history view; it emits the id of the history row (from history table)
43
44 protected slots:
45 void onViewItemActivated(QModelIndex index);
46
47 private:
48 HistoryListModel *mModel;
49 Ui::HistoryWidget *ui;
50 };
51
52 #endif // HISTORYWIDGET_H