add context panel
This commit is contained in:
31
app/gcompose/src/ContextPanel.h
Normal file
31
app/gcompose/src/ContextPanel.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef CONTEXT_PANEL_H
|
||||
#define CONTEXT_PANEL_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QTreeView;
|
||||
class QVBoxLayout;
|
||||
class QLabel;
|
||||
class ContextModel;
|
||||
|
||||
namespace uLib {
|
||||
class ObjectsContext;
|
||||
}
|
||||
|
||||
class ContextPanel : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ContextPanel(QWidget* parent = nullptr);
|
||||
virtual ~ContextPanel();
|
||||
|
||||
void setContext(uLib::ObjectsContext* context);
|
||||
|
||||
private:
|
||||
QVBoxLayout* m_layout;
|
||||
QWidget* m_titleBar;
|
||||
QLabel* m_titleLabel;
|
||||
QTreeView* m_treeView;
|
||||
ContextModel* m_model;
|
||||
};
|
||||
|
||||
#endif // CONTEXT_PANEL_H
|
||||
Reference in New Issue
Block a user