Commit Graph

59 Commits

Author SHA1 Message Date
Klaus Basan
546a8a06d3 Ref T592, improved position handling/failover: use screen position if main widget pos. is unavailable 2019-04-11 22:12:09 +01:00
Klaus Basan
89c5d87c1c Ref T592, allow to reset floating widget position by pressing SHIFT
SHIT mouseclick resets
2019-04-11 22:12:09 +01:00
Klaus Basan
c45592f9b5 Ref T592, minor tweaks
* style
* hide wip_CockpitComPanelShowHideBar initially
* sGui guarding
* function initialFloating() public so it can be explicitly called
2019-04-11 22:12:09 +01:00
Klaus Basan
9f0daa58ea Ref T592, made dock widget related slots Qt::QueuedConnection
Rational: the widget emits floating but is not yet in full floating state, so with a direct connection we deal a bit too early with the widget.
Much more stable (hopefully) using queued connection, then all the handling is done if the window is really a floating window.
2019-04-11 22:12:09 +01:00
Klaus Basan
28d9e98e38 Minor dock widget related tweaks 2019-04-11 22:12:08 +01:00
Roland Rossgotterer
338d4d0cdb Use QScreen instead of QDesktopWidget::screen 2019-04-11 22:11:49 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
8696f45a7c Ref T506, make dock widget overlay message compliant
* overlay widget can used that functionality directly
* no need to use COverlayMessagesFrame
* added COverlayMessagesDockWidget
2019-02-22 20:35:24 +00:00
Mat Sutcliffe
80308b85d5 Changed QOverload to qOverload. 2019-02-22 20:35:11 +00:00
Mat Sutcliffe
333ea1b8df Fixed clazy warnings: empty QStringLiteral. 2019-02-22 20:23:32 +00:00
Klaus Basan
08495a7854 Ref T447, utility function to set on top flag
Also a signal when "always on top" was triggered
2018-12-11 09:00:15 +01:00
Klaus Basan
cd062ba451 Ref T447, allow to set "on top" flag for floating dock widgets 2018-12-05 04:03:42 +01:00
Klaus Basan
a8321f3563 Ref T447, dock widget style 2018-12-05 04:03:42 +01:00
Klaus Basan
499236c391 Ref T369, link font size signals with dock widget 2018-10-03 03:03:39 +02:00
Klaus Basan
35b70db67d Ref T310, removed "m_separator" from IMenuDelegate as it is not used 2018-08-26 15:27:05 +02:00
Klaus Basan
4ca6bb11aa Style change signals used Qt::QueuedConnection 2018-07-31 01:43:38 +02:00
Klaus Basan
4021822753 Setting UI improvement
* pressing shift while clicking the button shows overview
* hint in overview, that there are shortcuts
2018-06-01 01:30:48 +02:00
Klaus Basan
b74652c94a Ref T220, renamed some main window / widget functions
Make clearer if dealing with a window or widget
2018-01-14 18:47:03 +01:00
Klaus Basan
68b01077ba Some dock widget formatting and ESC key can dock ("unfloat") widget 2018-01-14 18:46:38 +01:00
Klaus Basan
c39b8cd7fd Ref T30, use font shortcuts with dock widget
(instead of view)
2017-09-24 19:50:43 +01:00
Klaus Basan
14f3eadc08 refs #766, refs #776 using object name as setting name %OwnerName%
* removed CDockWidgetsSettings (note Widgets, not Widget)
* goal: Use CDockWidgetSettings for all dock widgets

refs #684
2016-12-06 09:34:30 +01:00
Roland Winklmeier
e5e5e796f7 Reduce risk of window init interference when floating dock widgets on XCB platforms
On XCB platforms, the initialization of native windows is an async task.
When floating a dock widget, a new top level window is created, followed
by further customizations (changes to title and status bar, child
rearrangements etc). The customizations might be triggered at a time
when Qt was still processing XCB events and the QWindows state not yet
fully initialized. In some random cases, this caused the Window to be
invisible.
By sleeping for 100 ms on XCB platforms, we make sure that
all customizations are delayed long enough that the XCB event thread can
continue to process. By then all XCB communication
should be finished and the window setup complete.

refs #754
2016-09-19 16:25:00 +02:00
Klaus Basan
d2aa2e9c1c refs #750, allow to reset window position of dock widget 2016-08-29 18:33:00 +02:00
Klaus Basan
862a84b661 refs #697, BlackGui settings renamed 2016-08-01 16:48:48 +02:00
Klaus Basan
c1179ed52b refs #680, now display CDockWidget context menus in views/info area 2016-06-23 20:13:34 +02:00
Klaus Basan
44bfcc2d9c Allow to reset dockwidget settings/margins
* changed name to object name
* reset to defaults possible
2016-06-23 20:13:33 +02:00
Mathew Sutcliffe
9bef6854ca Caches: rename "get" to "getThreadLocal" and rename "getCopy" to get. 2016-06-08 18:21:01 +02:00
Klaus Basan
8b66f595d4 refs #512, changed dock widget to use settings
* allow to load from settings / save to settings
* removed outdated members / functions
* aligned naming of some functioss
2016-06-08 18:20:55 +02:00
Klaus Basan
436b60700f refs #512, added settings to dock widget for testing 2016-06-08 18:20:53 +02:00
Klaus Basan
67512d9d1f refs #512, GUI improvements
* menu widget to correct margin
* optimized stylesheet by adding dynamic properties for CDockWidget widgets (allows better qss selection)
2016-06-08 18:20:49 +02:00
Roland Winklmeier
f4c2939253 Fix BlackGui header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-20 01:31:11 +02:00
Klaus Basan
18a907086d refs #485, moved stylesheet utility into CGuiApplication 2016-03-18 01:10:32 +00:00
Klaus Basan
431117e83b Support stylesheets in drop site widget 2015-12-20 16:57:54 +01:00
Klaus Basan
0d27351e11 Improved asserts/comments in dock widget class 2015-11-19 20:59:29 +00:00
Klaus Basan
6119c22c78 some fixes noticed during today's discussion around refs #302
* move hotkey settings in own GUI component -> easier adjustments
* some fixes for dock widgets when tab widget is shown without names (unrelated but found + fixed in same step)
2015-05-12 21:03:41 +01:00
Klaus Basan
464a8f4258 Some improvements and fixes refs #312, Navigator (aka navigation bars)
* Added extra QFrame in CDockWidgets to have better control in stylesheez (CDockWidget -> QWidget -> QFrame)
* Adjusted stylesheets
* Force update of stylesheet when frameless changes
* Cascading status message in nested CInfoArea components

Floating frameless dock widget still not transparent
2015-04-19 03:04:22 +02:00
Klaus Basan
72aa072f30 refs #312, Navigator (aka navigation bars)
* different dyn. property names for main window, dock window and infoarea
* dyn.properties for nested QWidgets
* style sheet for navigator
* utility function to delete layout
* added standard OS icons, some formatting in CICons
* actions in main window to be used in navigator
* main window becomes normal window when minimized so it is correctly displayed in Win taskbar

Remark: Frameless floating dockwidgets with rounded borders not yet working
2015-04-19 03:00:38 +02:00
Klaus Basan
e7c8c28252 refs #312 navigation bars, contributes also to #347
* allow to set/unset frameless mode in CDockWidget
* adjusted context menus
* adjusted style sheets
* ini settings for margins
* hidden info area to host floating widgets only visible when floating (allows to CDockInfoArea widgets)
* made some private slots non-virtual
2015-04-08 23:04:43 +02:00
Klaus Basan
425e034b19 refs #312, preparation for small navigation bars 2015-04-08 23:04:39 +02:00
Klaus Basan
96434928fe refs #400, GUI after Qt 5.4.1 migration
* ini file to complement style sheets (values changed in code)
* aircrafts -> aircraft
* some .h code to .cpp
2015-04-08 23:04:33 +02:00
Klaus Basan
bd2bf0d3ba refs #347, improvements in CInfoArea and CDockWidget
* renamed to toggleFloatingWholeInfoArea() for whole info area (in contrast to toggleInfoArea for individual areas)
* signal for changedWholeInfoAreaFloating (allows the main GUI to hide this area if empty)
* add. flag to understand m_resetedFloating
* prepared for frameless dock widget (not yet implemented)
2014-11-30 00:57:17 +01:00
Klaus Basan
facbefeeea Fixed some minor GUI issues
* resizing for floating widgets
* vertical policies
* menus for views
* margins for keypad
* using property mainwindowframeless in style sheet
2014-11-30 00:56:58 +01:00
Klaus Basan
8acf8e2ed0 refs #335, support for status bar for dock widgets
* status bar when floating
* improved info area status
* removed ui parts from infoarea
2014-11-30 00:54:28 +01:00
Klaus Basan
9a920367b2 Formatting 2014-11-30 00:54:15 +01:00
Klaus Basan
6e332683b1 refs #335, updated dock widget
* removed unused methods
* added toggleVisibility
* renamed slot
2014-11-30 00:52:34 +01:00
Klaus Basan
3c4fc76094 refs #335, renaming 2014-11-30 00:52:12 +01:00
Klaus Basan
6d01376e37 fixed paintEvent 2014-11-29 22:38:56 +01:00
Klaus Basan
b0f01a3ec6 refs #335, formatting, member initialization, new icons, remove redundant methods 2014-11-29 22:38:37 +01:00
Klaus Basan
ef5f5bde0f Formatting, new icons, minor tweaks 2014-10-07 13:10:37 +02:00
Klaus Basan
b989dec74d Slightly changed ATC stations appearance, reload ATIS / load METAR 2014-10-07 13:08:23 +02:00