cutter/src/widgets/sectionswidget.h
Florian Märkl 6f16a5a95e Get more things from JSON commands and some other things (#161)
* Flags and Flagspaces from JSON

* Sections from JSON

* Change -a option to -A with default value 3.

* Move Plugin name fetching out of QRCore::getList, Enable manual setting of Arch and Bits in OptionsDialog
2017-05-03 11:09:57 +02:00

40 lines
699 B
C++

#ifndef SECTIONSWIDGET_H
#define SECTIONSWIDGET_H
#include <QSplitter>
class MainWindow;
class QTreeWidget;
class QAbstractItemModel;
class QAbstractItemView;
class QItemSelectionModel;
struct SectionDescription;
namespace Ui
{
class SectionsWidget;
}
class SectionsWidget : public QSplitter
{
Q_OBJECT
public:
explicit SectionsWidget(MainWindow *main, QWidget *parent = 0);
void setup();
private:
QAbstractItemView *pieChart;
QItemSelectionModel *selectionModel;
MainWindow *main;
QTreeWidget *tree;
void setupViews();
void fillSections(int row, const SectionDescription &section);
};
#endif // SECTIONSWIDGET_H