fix name in gcompose
This commit is contained in:
34
app/gcompose/src/ViewportPane.h
Normal file
34
app/gcompose/src/ViewportPane.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef VIEWPORTPANE_H
|
||||
#define VIEWPORTPANE_H
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class QVBoxLayout;
|
||||
class QLabel;
|
||||
|
||||
class ViewportPane : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ViewportPane(QWidget* parent = nullptr);
|
||||
virtual ~ViewportPane();
|
||||
|
||||
void addVtkViewport();
|
||||
void addRootCanvas();
|
||||
|
||||
QWidget* currentViewport() const { return m_viewport; }
|
||||
|
||||
private slots:
|
||||
void onCloseRequested();
|
||||
void showContextMenu(const QPoint& pos);
|
||||
|
||||
private:
|
||||
void AttemptSplit(Qt::Orientation orientation);
|
||||
void setViewport(QWidget* viewport, const QString& title);
|
||||
|
||||
QVBoxLayout* m_layout;
|
||||
QWidget* m_titleBar;
|
||||
QLabel* m_titleLabel;
|
||||
QWidget* m_viewport;
|
||||
};
|
||||
|
||||
#endif // VIEWPORTPANE_H
|
||||
Reference in New Issue
Block a user