Commit Graph

71 Commits

Author SHA1 Message Date
mfreiholz
a566ea64be Merge branch 'tanaxiusi-master' 2016-03-16 14:00:46 +01:00
mfreiholz
45f269835b Using grabMouse() leads to more problems. I think there is a better way to ensure that the mouse sometimes doesn't lose the current dragging floating widget. 2016-03-16 13:58:57 +01:00
mfreiholz
4ce04ecf2b Merge branch 'master' of https://github.com/tanaxiusi/Qt-Advanced-Docking-System into tanaxiusi-master 2016-03-16 13:29:46 +01:00
mfreiholz
69dca97333 Updates notes. 2016-03-16 13:29:05 +01:00
tanaxiusi
f2f5de707c Fix bug after saving-restoring a empty container with no SectionWidget.
SectionTitleWidget::mousePressEvent call 'grabMouse' to ensure the floaing widget can always follow the mouse after floated.
SectionTitleWidget::mouseMoveEvent check Qt::LeftButton.
2016-03-16 20:12:39 +08:00
mfreiholz
d2d2467101 Adds possibility to remove section contents. 2016-03-14 15:12:34 +01:00
mfreiholz
9c958d0d22 Adds notes 2016-03-09 12:02:31 +01:00
mfreiholz
21f316577f Again... Fixes invisible FloatingWidget's title-widget after restoring state. 2016-03-09 08:37:20 +01:00
mfreiholz
afb5abd635 Fixes invisible FloatingWidget's title-widget after restoring state. 2016-03-09 08:07:16 +01:00
mfreiholz
34cf851e24 Updates default stylesheet and demo app 2016-03-08 14:24:33 +01:00
mfreiholz
9bbc5e41a3 Better implementation of empty QSplitter deletion (no longer crashes).
Call it after restore, because sometimes one splitter was left ?-/
2016-03-08 10:58:56 +01:00
mfreiholz
94d8fe3e25 Fixes invisible SectionWidget TAB, if the content was hidden previously, by calling setvisible(true) on title-widget - content-widget is managed by QStackedWidget. 2016-03-04 06:50:22 +01:00
mfreiholz
c5e39068b2 Replaces a qFatal with qWarning to skip a bug, which i couldn't find yet... 2016-03-03 13:44:14 +01:00
mfreiholz
a47073cdf8 raise* now works on hidden contents, too. 2016-03-03 07:12:26 +01:00
mfreiholz
bbf2fd26b7 Updates readme todos. 2016-03-02 11:39:16 +01:00
mfreiholz
9f952c38f0 takeContents now also searches for SC in hidden items. Otherwise we sometimes get a crash during restoreState. 2016-03-01 07:41:13 +01:00
mfreiholz
865213c5b5 Fixes includes for Qt4. 2016-02-26 12:48:10 +01:00
mfreiholz
06304b9818 Optimizes includes and forward declarations.
Fixes a bug where SectionWidget removes itself from _sections list during a qDeleteAll call on _sections.. that was stupid..
2016-02-26 12:43:14 +01:00
mfreiholz
74f6ba333f Adds activeTabChanged() signal to let API users know about this state
change. It might be use to re-polish style sheets.
2016-02-26 09:07:19 +01:00
mfreiholz
014fb04daf Linux fixes. 2016-02-24 17:39:35 +01:00
mfreiholz
4482182dad Adds dllimport spec 2016-02-24 15:17:53 +01:00
mfreiholz
0e831ee55f Adds optional "title" attribute to SectionContent and show it in visible
areas e.g. context-menu.
Build as shared library by default.
2016-02-24 12:12:09 +01:00
mfreiholz
7e41d18a6d Adds function to raise a section-content. 2016-02-24 11:45:19 +01:00
mfreiholz
747874b1e5 Adds capabilities to build as shared library on Windows. 2016-02-23 21:31:09 +01:00
mfreiholz
0238828afa Uses static lazy loaded QHash objects instead of static linker initialized
class members. This should fix multi initialization when linking static
into DLL and EXE at the same time. Hopefully..
2016-02-23 20:51:19 +01:00
mfreiholz
8508a0323a Updates stylesheets 2016-02-23 15:14:44 +01:00
mfreiholz
846535c085 Fixes crash, if only a single SectionContent elemet has been added to
ContainerWidget, make it floating and drop it back into ContainerWidget.
2016-02-23 09:30:17 +01:00
mfreiholz
778192176f Updates travis script. 2016-02-21 17:00:40 +01:00
mfreiholz
1e72cd0229 Updates travis script. 2016-02-21 16:49:18 +01:00
mfreiholz
4b3c6b4a74 Adds comment to start travis build. 2016-02-21 16:41:00 +01:00
mfreiholz
b115c3dc0d Adds travis config file. 2016-02-21 16:24:13 +01:00
mfreiholz
fa90c7f7e9 Updates README, adds license. 2016-02-19 12:41:15 +01:00
mfreiholz
032a5d6cdf Memleak fixes
* Set parent of title- and content-widget to associated container-widget
* inside FloatingWidget::takeContent(...)

Restore state
* Restore all contents as visible and then call hideSectionContent(...) at
* the end. This is more consistent and uses same code (public API).
* Pass version to sub-methods to handle different formats
* Fix serialization, if nothing is visible (no sections, only hidden
* contents)
2016-02-19 12:00:39 +01:00
mfreiholz
6a1b6307c9 Implements show/hide of SectionContent + serialization of state (not yet
completed/tested).
Context menu also works with new impl.
Shows close button on top-right corner of SectionWidget.
2016-02-18 15:06:00 +01:00
mfreiholz
d5eaabd2a7 Updates todo list. 2016-02-17 14:58:47 +01:00
mfreiholz
45bb77e7d7 Updates todo list. 2016-02-17 14:52:22 +01:00
mfreiholz
eaff4f3d4e Refactors: Move save/restore impl into separate methods.
Updates SectionContent API: Its only possible to use it as shared pointer
(RefPtr), Copies not possible.
Handle missing or too many content references in restore procecure.
2016-02-17 14:42:46 +01:00
mfreiholz
1b91fe241b Use takeContents() for strict ownership switch. 2016-02-17 11:09:24 +01:00
mfreiholz
8914904dba Adds previews. 2016-02-17 10:57:28 +01:00
mfreiholz
d67a7e65e9 Save/restore visiblity state of FloatingWidget. 2016-02-17 10:10:36 +01:00
mfreiholz
f0b1ea4735 Serializes and deserializes FloatingWidgets. 2016-02-17 09:59:11 +01:00
mfreiholz
5a17a88146 Updates stylesheet margins and more... 2016-02-15 15:18:52 +01:00
mfreiholz
91e0f62f3e Move style sheets into resource *.css files.
Even keep vendor style sheets there.
2016-02-15 14:25:12 +01:00
mfreiholz
3ec2d9d8f6 Fixes compiler warning C4482 (enum usage with type name). 2016-02-15 13:56:42 +01:00
mfreiholz
34d7bf6aeb Fixes qt4 compatibility.. Pass all WindowFlags at once (bug). 2016-02-15 13:00:09 +01:00
mfreiholz
2513ab1f2b Better compatible with qt4.
* Q_PROPERTY MEMBER wasn't available, use READ and WRITE instead
* Disables namespace with qt4
* Updates default stylesheet to work with qt4 (no namespaces)

Unifies include/forward-declaration style in header files.
README status updates
2016-02-15 12:27:23 +01:00
mfreiholz
2d1a3b8665 Do some refactoring for public api logic 2016-02-15 11:32:35 +01:00
mfreiholz
9b09ae2fa6 Do some refactoring for public api logic 2016-02-15 11:13:58 +01:00
mfreiholz
77d05431c6 Updates high level api usage of ContainerWidget. 2016-02-15 10:28:42 +01:00
mfreiholz
1befbace4b Updates readme todos 2016-02-12 11:58:12 +01:00