This website requires JavaScript.
Explore
Help
Sign in
mifr
/
subsurface
Watch
1
Star
0
Fork
You've already forked subsurface
0
mirror of
https://github.com/subsurface/subsurface.git
synced
2024-12-11 11:31:29 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
c1e7cd1428
subsurface
/
desktop-widgets
/
tab-widgets
/
TabBase.cpp
7 lines
94 B
C++
Raw
Normal View
History
Unescape
Escape
Add SPDX header to desktop widgets Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-27 18:26:05 +00:00
// SPDX-License-Identifier: GPL-2.0
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 <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-04-04 17:21:30 +00:00
#
include
"TabBase.h"
cleanup: remove TabBase::enter/exitEditMode() functions Since the edit mode was removed, these became unnecessary. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2022-03-11 19:43:11 +00:00
void
TabBase
:
:
updateUi
(
QString
)
cleanup: break out the dive-notes tab There was always this weird asymmetry that the "maintab" widget is one of the tabs itself, whereas the additional tabs were treated as extra-widgets. Turn the first tab into explicit source files to make the distinction between container and content clear. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2022-03-05 16:25:49 +00:00
{
}
Reference in a new issue
Copy permalink