mfreiholz
1fb78aa873
fix #16 : resets WA_WState_Created to true. No longer apply flag to content wrapper widget.
...
note: setting this flag seems to be very ugly, since it breaks some special content views (3D stuff).
2016-04-21 07:05:27 +02:00
mfreiholz
c3e96cfa67
Fix #16 : sets Qt::WA_WState_Created to false before reparenting to avoid internal hide->show sequence, which does forward mousemove events to splitter..
2016-04-20 09:24:00 +02:00
mfreiholz
a1225545e4
Fixes compiler warnings.
2016-04-18 14:34:07 +02:00
mfreiholz
94b1fc85fc
Use prefix for resources.
...
Updates demo project and README with clean main() and initStyleSheet().
2016-04-18 12:47:42 +02:00
mfreiholz
8c3a00d7b5
Create drop indicator images on the fly. No longer use PNG resources
...
(better in case of license issues). Drop images should be scalable now!
2016-04-18 12:30:24 +02:00
mfreiholz
e04b5c7900
fix : #13 custom drop area widgets
...
- adds public function to set widgets
- some cleanup changes
2016-04-18 09:40:51 +02:00
mfreiholz
180ed31fc4
Updates API for #13 - Custom drop indicators.
...
DropOverlayCross is better reusable now and area widgets can be changed.
2016-04-18 08:27:28 +02:00
mfreiholz
9c530dcc58
refactor: Renames member _splitAreas to _cross.
...
mod: removes ContainerWiget::set/Orientation() members. Obsolete since
everything is managed over drop areas.
2016-04-18 07:18:50 +02:00
mfreiholz
86c23c6269
refactor: Renames DropSplitAreas => DropOverlayCross
...
mod: Uses QPalette::Highlight color, instead of in-source fixed color, for area overlay painting.
2016-04-18 07:06:46 +02:00
mfreiholz
0bd5dc57fa
Preparation for #13 - custom drop images.
...
- DropOverlay and DropSplitArea widgets are friendly, but still separate
for better customization.
- Both classes are reusable, no longer create a new instance of
DropSplitArea for each show call.
2016-04-15 12:14:50 +02:00
mfreiholz
5041f5076a
fix #17 - get rid of static drop overlay
...
- holds one instance of DropOverlay for each ContainerWidget.
2016-04-15 08:21:23 +02:00
mfreiholz
823028c6aa
clean handling of QEvent::accept()
2016-04-11 09:12:48 +02:00
mfreiholz
fffc84374a
Use QT_VERSION_CHECK macro for better compatibility.
2016-04-11 07:27:02 +02:00
mfreiholz
14a80f1753
fix: FloatingWidget calls ContainerWidget::hideSectionContent(...) instead
...
of it's own close() method to be consistent in the way of hiding and
showing contents.
2016-04-11 07:15:42 +02:00
mfreiholz
932ec71ad8
Issue #15
...
- adds sectionContentVisibilityChanged(...) signal
2016-04-11 07:08:40 +02:00
mfreiholz
f2a352c305
fixes position mapping of sections inside container. all positions are now relative to it's container.
2016-04-06 07:52:17 +02:00
mfreiholz
0eea083f07
removes no longer required debug prints
2016-04-06 06:55:27 +02:00
mfreiholz
f110ad8ec7
fix: position (not yet tested)
2016-04-05 15:00:05 +02:00
mfreiholz
d8dc37b788
adds read() for SectionIndexData
...
updates unit-tests
2016-04-05 13:23:01 +02:00
mfreiholz
0105ee1de7
fixes file name letter case for builds on linux
...
adds travis-ci icon
2016-04-05 08:01:14 +02:00
mfreiholz
40727028d6
Fix version check for QLayout::replaceWidget()
2016-04-05 07:54:12 +02:00
mfreiholz
a8383d14d0
Updates travis build script
2016-04-05 07:45:12 +02:00
mfreiholz
1566782173
Removes TODOs from README, managed with GitHub Issues now.
...
Updates "Gettings started / Example" section.
2016-04-05 07:39:15 +02:00
mfreiholz
0d50bf8ac0
init x and y
2016-04-04 08:52:03 +02:00
mfreiholz
195b34c0ca
Serialize SectionIndexData on storeSate().
2016-04-04 08:51:38 +02:00
mfreiholz
ac80242545
Fixes version check for serialized data.
...
Use new ::serialization package for save- and restore state.
2016-04-01 13:06:12 +02:00
mfreiholz
2a1bc4c43b
Refactor: Add *Entity to all serialization entities to omit name collisions
2016-04-01 12:35:33 +02:00
mfreiholz
34891e746e
Refactor: Moves EntryTypes into namespace enum.
...
Adds ADS_EXPORT_API defines to public classes.
2016-04-01 12:11:52 +02:00
mfreiholz
158dac5309
Build
...
- Use absolute file paths by using $$PWD variable.
- Adds unit testing project + unit-test for serialization.
- Adds ADS_IMPORT define possibility for static code include.
Core
- Fixes usage of QBuffer.. missed the QBuffer::open() call..
2016-04-01 11:49:16 +02:00
mfreiholz
5ab1751f9b
Build: Moves source file list into separate *.pri file.
2016-04-01 09:58:26 +02:00
mfreiholz
d29bdd1438
Fixes "const" usage
2016-04-01 09:57:52 +02:00
mfreiholz
3d9e3c2efc
fixes qt4 compatibility
2016-04-01 09:53:30 +02:00
mfreiholz
4debaaaf85
Serialization
...
- Adds prototype impls for InMemoryWriter and InMemoryReader.
- Use major- and minor-version idiom
2016-04-01 09:52:59 +02:00
mfreiholz
6c587ff8c4
Adds prototype classes for better serialization.
2016-03-31 14:47:19 +02:00
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