mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
76f71b4ca0
Add files for dive list model/view implementation. Replace TableView with the custom list view. Amendments to makefile to match. Note: we don't yet handle trips and may want to add additional columns to describe the dive. A single, dummy dive is added to show how this works (get root; item is child of root). Purely to illustrate - needs proper integration etc. Amend member names for dive list view components Various naming changes to conform to coding style. Required changes to members (remove prefix) and methods (avoid clash with members). Clean up indentation (swap spaces for tabs). Code for model/view was written with a different editor which had different settings :-/ [Dirk Hohndel: minor whitespace cleanup] Signed-off-by: Amit Chaudhuri <amit.k.chaudhuri@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
302 lines
7.7 KiB
XML
302 lines
7.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>MainWindow</class>
|
|
<widget class="QMainWindow" name="MainWindow">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>763</width>
|
|
<height>548</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>MainWindow</string>
|
|
</property>
|
|
<widget class="QWidget" name="centralwidget">
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QSplitter" name="splitter_3">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<widget class="QSplitter" name="splitter_2">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<widget class="MainTab" name="InfoWidget" native="true"/>
|
|
<widget class="QGraphicsView" name="ProfileWidget"/>
|
|
</widget>
|
|
<widget class="DiveListView" name="ListWidget"/>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QSplitter" name="splitter">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menubar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>763</width>
|
|
<height>20</height>
|
|
</rect>
|
|
</property>
|
|
<widget class="QMenu" name="menuFile">
|
|
<property name="title">
|
|
<string>File</string>
|
|
</property>
|
|
<addaction name="actionNew"/>
|
|
<addaction name="actionOpen"/>
|
|
<addaction name="actionSave"/>
|
|
<addaction name="actionSaveAs"/>
|
|
<addaction name="actionClose"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionImport"/>
|
|
<addaction name="actionExportUDDF"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionPrint"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionPreferences"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionQuit"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menuLog">
|
|
<property name="title">
|
|
<string>Log</string>
|
|
</property>
|
|
<addaction name="actionDownloadDC"/>
|
|
<addaction name="actionDownloadWeb"/>
|
|
<addaction name="actionEditDeviceNames"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionAddDive"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionRenumber"/>
|
|
<addaction name="actionAutoGroup"/>
|
|
<addaction name="actionToggleZoom"/>
|
|
<addaction name="actionYearlyStatistics"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menuView">
|
|
<property name="title">
|
|
<string>View</string>
|
|
</property>
|
|
<addaction name="actionViewList"/>
|
|
<addaction name="actionViewProfile"/>
|
|
<addaction name="actionViewInfo"/>
|
|
<addaction name="actionViewAll"/>
|
|
<addaction name="actionPreviousDC"/>
|
|
<addaction name="actionNextDC"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menuFilter">
|
|
<property name="title">
|
|
<string>Filter</string>
|
|
</property>
|
|
<addaction name="actionSelectEvents"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menuPlanner">
|
|
<property name="title">
|
|
<string>Planner</string>
|
|
</property>
|
|
<addaction name="actionInputPlan"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menuHelp">
|
|
<property name="title">
|
|
<string>Help</string>
|
|
</property>
|
|
<addaction name="actionAboutSubsurface"/>
|
|
<addaction name="actionUserManual"/>
|
|
</widget>
|
|
<addaction name="menuFile"/>
|
|
<addaction name="menuLog"/>
|
|
<addaction name="menuView"/>
|
|
<addaction name="menuFilter"/>
|
|
<addaction name="menuPlanner"/>
|
|
<addaction name="menuHelp"/>
|
|
</widget>
|
|
<action name="actionNew">
|
|
<property name="text">
|
|
<string>New</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+N</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionOpen">
|
|
<property name="text">
|
|
<string>Open</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+O</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionSave">
|
|
<property name="text">
|
|
<string>Save</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+S</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionSaveAs">
|
|
<property name="text">
|
|
<string>Save as</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+Shift+S</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionClose">
|
|
<property name="text">
|
|
<string>Close</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+W</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionImport">
|
|
<property name="text">
|
|
<string>Import Files</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+I</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionExportUDDF">
|
|
<property name="text">
|
|
<string>Export UDDF</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionPrint">
|
|
<property name="text">
|
|
<string>Print</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+P</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionPreferences">
|
|
<property name="text">
|
|
<string>Preferences</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionQuit">
|
|
<property name="text">
|
|
<string>Quit</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+Q</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionDownloadDC">
|
|
<property name="text">
|
|
<string>Download from Dive computer</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionDownloadWeb">
|
|
<property name="text">
|
|
<string>Download from Web Service</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionEditDeviceNames">
|
|
<property name="text">
|
|
<string>Edit Device Names</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionAddDive">
|
|
<property name="text">
|
|
<string>Add Dive</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionRenumber">
|
|
<property name="text">
|
|
<string>Renumber</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionAutoGroup">
|
|
<property name="text">
|
|
<string>Auto Group</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionToggleZoom">
|
|
<property name="text">
|
|
<string>Toggle Zoom</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionYearlyStatistics">
|
|
<property name="text">
|
|
<string>Yearly Statistics</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionViewList">
|
|
<property name="text">
|
|
<string>View List</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionViewProfile">
|
|
<property name="text">
|
|
<string>View Profile</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionViewInfo">
|
|
<property name="text">
|
|
<string>View Info</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionViewAll">
|
|
<property name="text">
|
|
<string>View All</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionPreviousDC">
|
|
<property name="text">
|
|
<string>Prev DC</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionNextDC">
|
|
<property name="text">
|
|
<string>Next DC</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionSelectEvents">
|
|
<property name="text">
|
|
<string>Select Events</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionInputPlan">
|
|
<property name="text">
|
|
<string>Input Plan</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionAboutSubsurface">
|
|
<property name="text">
|
|
<string>About Subsurface</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionUserManual">
|
|
<property name="text">
|
|
<string>User Manual</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>MainTab</class>
|
|
<extends>QWidget</extends>
|
|
<header>maintab.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
<customwidget>
|
|
<class>DiveListView</class>
|
|
<extends>QTreeView</extends>
|
|
<header>divelistview.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|