pqPopOutWidget.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3 // SPDX-License-Identifier: BSD-3-Clause
4 #ifndef pqPopOutWidget_h
5 #define pqPopOutWidget_h
6 
7 #include "pqComponentsModule.h"
8 #include <QWidget>
9 
10 class QLayout;
11 class QPushButton;
12 
21 class PQCOMPONENTS_EXPORT pqPopOutWidget : public QWidget
22 {
23  Q_OBJECT
24 public:
30  pqPopOutWidget(QWidget* widgetToPopOut, const QString& dialogTitle, QWidget* p = nullptr);
31  ~pqPopOutWidget() override;
32 
39  void setPopOutButton(QPushButton* button);
40 
41 Q_SIGNALS:
42 
43 protected Q_SLOTS:
47  void toggleWidgetLocation();
53  void moveWidgetToDialog();
60  void moveWidgetBackToParent();
61 
62 private:
63  class pqInternal;
64  pqInternal* Internals;
65 };
66 
67 #endif // pqPopOutWidget_h
This pqPopOutWidget provides a mechanism to pop out its contained widget into a dialog return it to i...
#define PQCOMPONENTS_EXPORT