diff options
author | Doug Junkins <junkins@foghead.com> | 2019-05-04 20:51:16 -0700 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-05-06 10:48:44 +0200 |
commit | 00ec824129ea2662ace5a4077ba9bc865ecc70ff (patch) | |
tree | c722c55a48a6c226e879e3f2e915adb6fd3b13d6 /desktop-widgets/divesiteimportdialog.ui | |
parent | 98b3a326bd952c616843694821a48e0c029db699 (diff) | |
download | subsurface-00ec824129ea2662ace5a4077ba9bc865ecc70ff.tar.gz |
Create DivesiteImportDialog to select sites to import
Creates the dialog box to select which sites to import from the file
selected in mainwindow.cpp. The DivesiteImportModel is created as a
table to display and select which sites are to be imported. Once the
sites are selected, the Command::importDiveSites command is called to
add the sites to the core dive site table with undo/redo functions.
Signed-off-by: Doug Junkins <junkins@foghead.com>
Diffstat (limited to 'desktop-widgets/divesiteimportdialog.ui')
-rw-r--r-- | desktop-widgets/divesiteimportdialog.ui | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/desktop-widgets/divesiteimportdialog.ui b/desktop-widgets/divesiteimportdialog.ui new file mode 100644 index 000000000..8ee80ba22 --- /dev/null +++ b/desktop-widgets/divesiteimportdialog.ui @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>DivesiteImportDialog</class> + <widget class="QDialog" name="DivesiteImportDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>747</width> + <height>535</height> + </rect> + </property> + <property name="windowTitle"> + <string>Select dive sites to import</string> + </property> + <property name="windowIcon"> + <iconset> + <normalon>:subsurface-icon</normalon> + </iconset> + </property> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <property name="spacing"> + <number>5</number> + </property> + <property name="leftMargin"> + <number>5</number> + </property> + <property name="topMargin"> + <number>5</number> + </property> + <property name="rightMargin"> + <number>5</number> + </property> + <property name="bottomMargin"> + <number>5</number> + </property> + <item> + <layout class="QHBoxLayout" name="labelSelectAllNoneLayout"> + <property name="spacing"> + <number>5</number> + </property> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="selectAllButton"> + <property name="text"> + <string>Select all</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="unselectAllButton"> + <property name="text"> + <string>Unselect all</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QTableView" name="importedDivesitesView"> + <property name="sizePolicy"> + <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> + <horstretch>1</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="buttonBoxLayout"> + <property name="spacing"> + <number>0</number> + </property> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="ok"> + <property name="text"> + <string>OK</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="cancel"> + <property name="text"> + <string>Cancel</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> |