From 1fc4fba69fed8607d9b961086a88bcf362a482a5 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Tue, 4 Apr 2017 19:21:30 +0200 Subject: Break down MainTab into smaller classes Maintab is one of our most complex classes, and it's something I'm not actually proud of. But it currently works and the idea of splitting it was in my head for quite a while. This is the third or fourth tentative of splitting it, and this time I let the most complex part of it untouched, the Notes and Equipment tab are way too complex to untangle right now on my limited time. A new class 'TabBase' should be used for any new tab that we may create, and added on the MainTab (see the new lines on the MainTab constructor). Also, Extra Info, Information, Photos and Statistics where ported to this new way helping reduce the number of lines and functions on the MainTab quite a bit. Overall this is a step in the right direction for the future. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- desktop-widgets/tab-widgets/TabDiveExtraInfo.ui | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 desktop-widgets/tab-widgets/TabDiveExtraInfo.ui (limited to 'desktop-widgets/tab-widgets/TabDiveExtraInfo.ui') diff --git a/desktop-widgets/tab-widgets/TabDiveExtraInfo.ui b/desktop-widgets/tab-widgets/TabDiveExtraInfo.ui new file mode 100644 index 000000000..0e3008d1a --- /dev/null +++ b/desktop-widgets/tab-widgets/TabDiveExtraInfo.ui @@ -0,0 +1,24 @@ + + + TabDiveExtraInfo + + + + 0 + 0 + 400 + 300 + + + + Extra Info + + + + + + + + + + -- cgit v1.2.3-70-g09d2