4 #ifndef pqTabbedMultiViewWidget_h
5 #define pqTabbedMultiViewWidget_h
7 #include "pqComponentsModule.h"
9 #include <QCoreApplication>
31 typedef QWidget Superclass;
32 Q_PROPERTY(
bool readOnly READ readOnly WRITE setReadOnly)
40 virtual QSize clientSize()
const;
46 void setReadOnly(
bool val);
47 bool readOnly()
const;
53 void setTabVisibility(
bool visible);
54 bool tabVisibility()
const;
64 bool decorationsVisibility()
const;
77 void enableAnnotationFilter(
const QString& annotationKey);
78 void disableAnnotationFilter();
79 void setAnnotationFilterMatching(
bool matching);
87 void updateVisibleTabs();
93 QList<QString> visibleTabLabels()
const;
99 void viewSizeLocked(
bool);
102 virtual int createTab();
105 virtual void closeTab(
int);
110 void setCurrentTab(
int index);
117 void setDecorationsVisibility(
bool);
125 virtual void toggleFullScreen();
130 virtual void toggleWidgetDecoration();
136 virtual void lockViewSize(
const QSize&);
141 virtual void reset();
161 QSize preview(
const QSize& previewSize = QSize());
167 virtual void proxyAdded(
pqProxy*);
168 virtual void proxyRemoved(
pqProxy*);
169 virtual void serverRemoved(
pqServer*);
175 virtual void currentTabChanged(
int);
181 virtual void onStateLoaded();
186 void contextMenuRequested(
const QPoint&);
191 bool eventFilter(QObject* obj, QEvent* event)
override;
198 typedef QTabWidget Superclass;
209 virtual void setTabButton(
int index, QTabBar::ButtonPosition
position, QWidget* wdg);
216 virtual int tabButtonIndex(QWidget* wdg, QTabBar::ButtonPosition
position)
const;
229 static QString popoutLabelText(
bool popped_out);
234 static QStyle::StandardPixmap popoutLabelPixmap(
bool popped_out);
240 void setReadOnly(
bool val);
246 QSize preview(
const QSize&);
254 void setTabBarVisibility(
bool);
258 void createViewSelectorTabIfNeeded(
int tabIndex);
263 bool TabBarVisibility;
271 pqInternals* Internals;
272 friend class pqInternals;