pqLockViewSizeCustomDialog.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 pqLockViewSizeCustomDialog_h
5 #define pqLockViewSizeCustomDialog_h
6 
7 #include "pqComponentsModule.h"
8 #include <QDialog>
9 
14 {
15  Q_OBJECT;
16  typedef QDialog Superclass;
17 
18 public:
19  pqLockViewSizeCustomDialog(QWidget* parent, Qt::WindowFlags f = Qt::WindowFlags{});
20  ~pqLockViewSizeCustomDialog() override;
21 
25  QSize customResolution() const;
26 
27 public Q_SLOTS: // NOLINT(readability-redundant-access-specifiers)
31  virtual void apply();
32 
36  void accept() override;
37 
41  virtual void unlock();
42 
43 private:
44  Q_DISABLE_COPY(pqLockViewSizeCustomDialog)
45 
46  class pqUI;
47  pqUI* ui;
48 };
49 
50 #endif // pqLockViewSizeCustomDialog_h
#define PQCOMPONENTS_EXPORT
Dialog used to ask the user what resolution to lock the views to.