Mercurial > hg > orthanc-stone
view Applications/Samples/SimpleViewer/Qt/SimpleViewerMainWindow.ui @ 1314:9b126de2cde2 broker
Since the observer system now uses shared_ptr and many registrations are
done in the constructors, and since we cannot called shared_from_this() in
the constructors, it is mandatory to split construction from registration.
This has been done by making many ctors protected and replacing them
by factory methods that directly return shared_ptrs + added PostConstructor
method when base classes perform shared_from_this() calls too.
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 16 Mar 2020 11:19:50 +0100 |
parents | 56b2e47d3c0c |
children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>SimpleViewerMainWindow</class> <widget class="QMainWindow" name="SimpleViewerMainWindow"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>903</width> <height>634</height> </rect> </property> <property name="minimumSize"> <size> <width>500</width> <height>300</height> </size> </property> <property name="baseSize"> <size> <width>500</width> <height>300</height> </size> </property> <property name="windowTitle"> <string>Stone of Orthanc</string> </property> <property name="layoutDirection"> <enum>Qt::LeftToRight</enum> </property> <widget class="QWidget" name="centralwidget"> <property name="sizePolicy"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="layoutDirection"> <enum>Qt::LeftToRight</enum> </property> <layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,0"> <property name="sizeConstraint"> <enum>QLayout::SetDefaultConstraint</enum> </property> <item> <widget class="QCairoWidget" name="cairoCentralWidget"> <property name="minimumSize"> <size> <width>0</width> <height>500</height> </size> </property> </widget> </item> <item> <widget class="QGroupBox" name="horizontalGroupBox"> <property name="minimumSize"> <size> <width>0</width> <height>100</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> <height>100</height> </size> </property> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QToolButton" name="toolButtonWindowing"> <property name="text"> <string>windowing</string> </property> </widget> </item> <item> <widget class="QToolButton" name="toolButtonCrop"> <property name="text"> <string>crop</string> </property> </widget> </item> <item> <widget class="QPushButton" name="pushButtonUndoCrop"> <property name="text"> <string>undo crop</string> </property> </widget> </item> <item> <widget class="QToolButton" name="toolButtonLine"> <property name="text"> <string>line</string> </property> </widget> </item> <item> <widget class="QToolButton" name="toolButtonCircle"> <property name="text"> <string>circle</string> </property> </widget> </item> <item> <widget class="QPushButton" name="pushButtonRotate"> <property name="text"> <string>rotate</string> </property> </widget> </item> <item> <widget class="QPushButton" name="pushButtonInvert"> <property name="text"> <string>invert</string> </property> </widget> </item> </layout> </widget> </item> </layout> </widget> <widget class="QMenuBar" name="menubar"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>903</width> <height>22</height> </rect> </property> <widget class="QMenu" name="menuTest"> <property name="title"> <string>Test</string> </property> </widget> <addaction name="menuTest"/> </widget> <widget class="QStatusBar" name="statusbar"/> </widget> <customwidgets> <customwidget> <class>QCairoWidget</class> <extends>QGraphicsView</extends> <header location="global">QCairoWidget.h</header> </customwidget> </customwidgets> <resources/> <connections/> </ui>