CustusX  22.04-rc5
An IGT application
cxSecondaryViewLayoutWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 #ifndef CXSECONDARYVIEWLAYOUTWINDOW_H
12 #define CXSECONDARYVIEWLAYOUTWINDOW_H
13 
14 #include "cxGuiExport.h"
15 
16 #include <QMainWindow>
17 
18 namespace cx
19 {
20 
34 class cxGui_EXPORT SecondaryViewLayoutWindow: public QMainWindow
35 {
36 Q_OBJECT
37 
38 public:
39  SecondaryViewLayoutWindow(QWidget* parent);
41 
42  void tryShowOnSecondaryScreen();
43 
44 protected:
45  virtual void showEvent(QShowEvent* event);
46  virtual void hideEvent(QCloseEvent* event);
47  virtual void closeEvent(QCloseEvent *event);
48 private:
49  QString toString(QRect r) const;
50  int findSmallestSecondaryScreen();
51 };
52 
53 } // namespace cx
54 
55 #endif // CXSECONDARYVIEWLAYOUTWINDOW_H
std::string toString(T const &value)
converts any type to a string
Definition: catch.hpp:755
Experimental class for IPad usage.
Namespace for all CustusX production code.