35 #include "pqComponentsModule.h" 38 #include <QScopedPointer> 42 class QDragEnterEvent;
62 typedef QWidget Superclass;
72 void setTitle(
const QString& text);
73 QString
title()
const;
81 void setCentralWidget(QWidget* widget,
pqView* view = 0);
82 QWidget* centralWidget()
const;
88 void setBorderColor(
const QColor& clr);
89 const QColor&
borderColor()
const {
return this->BorderColor; }
104 SplitHorizontal = 0x0001,
105 SplitVertical = 0x0002,
111 Q_DECLARE_FLAGS(StandardButtons, StandardButton);
117 void setStandardButtons(StandardButtons buttons);
123 void addTitleBarAction(QAction* action);
124 QAction* addTitleBarAction(
const QString& title);
125 QAction* addTitleBarAction(
const QIcon& icon,
const QString& title);
130 QAction* addTitleBarSeparator();
135 void removeTitleBarActions();
140 QMenu* contextMenu()
const;
151 void buttonPressed(
int button);
156 void actionTriggered(QAction* action);
161 void swapPositions(
const QString& other);
175 this->BorderVisible = val;
176 this->updateComponentVisibilities();
184 this->TitleBarVisible = val;
185 this->updateComponentVisibilities();
190 this->DecorationsVisible = val;
191 this->updateComponentVisibilities();
199 bool eventFilter(QObject*, QEvent*)
override;
206 virtual void updateComponentVisibilities();
212 void dragEnter(QDragEnterEvent*);
213 void drop(QDropEvent*);
216 void buttonClicked();
217 void contextMenuRequested(
const QPoint&);
242 QToolButton* createButton(QAction* action);
245 const QScopedPointer<pqInternals> Internals;
QPalette PaletteWithoutBorder
QUuid uniqueID() const
provides access to the unique id assigned to the frame.
pqViewFrame is used to represent a frame for any ParaView view shown in the pqMultiViewWidget.
StandardToolButtonsMap StandardToolButtons
void setDecorationsVisibility(bool val)
pqServerManagerModelItem is a element maintained by pqServerManagerModel.
This is a PQ abstraction of a generic view module.
void setBorderVisibility(bool val)
set whether the border is visible.
QPointer< QToolBar > ToolBar
QPointer< QWidget > CentralWidget
const QColor & borderColor() const
bool isTitleBarVisible() const
Get whether the title-bar is shown.
QPalette PaletteWithBorder
void setTitleBarVisibility(bool val)
set whether the title-bar is visible.
bool isBorderVisible() const
Get/Set the border visibility.
Q_DECLARE_OPERATORS_FOR_FLAGS(pqViewFrame::StandardButtons)
QMap< StandardButton, QPointer< QToolButton > > StandardToolButtonsMap
StandardButtons standardButtons() const
QPointer< QMenu > ContextMenu