35 #include "pqComponentsModule.h" 38 #include <QScopedPointer> 42 class QDragEnterEvent;
60 typedef QWidget Superclass;
67 void setTitle(
const QString& text);
68 QString title()
const;
74 void setCentralWidget(QWidget* widget,
pqView* view = 0);
75 QWidget* centralWidget()
const;
79 void setBorderColor(
const QColor& clr);
80 const QColor&
borderColor()
const {
return this->BorderColor; }
91 SplitHorizontal =0x0001,
92 SplitVertical =0x0002,
102 void setStandardButtons(StandardButtons buttons);
106 void addTitleBarAction(QAction* action);
107 QAction* addTitleBarAction(
const QString& title);
108 QAction* addTitleBarAction(
const QIcon& icon,
const QString& title);
111 QAction* addTitleBarSeparator();
114 void removeTitleBarActions();
117 QMenu* contextMenu()
const;
121 {
return this->UniqueID; }
125 void buttonPressed(
int button);
128 void actionTriggered(QAction* action);
131 void swapPositions(
const QString& other);
141 this->BorderVisible = val;
142 this->updateComponentVisibilities();
148 this->TitleBarVisible = val;
149 this->updateComponentVisibilities();
154 this->DecorationsVisible = val;
155 this->updateComponentVisibilities();
161 virtual bool eventFilter(QObject*, QEvent*);
166 virtual void updateComponentVisibilities();
170 void dragEnter(QDragEnterEvent*);
171 void drop(QDropEvent*);
174 void buttonClicked();
175 void contextMenuRequested(
const QPoint&);
198 QToolButton* createButton(QAction* action);
201 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