Commit Graph

105 Commits

Author SHA1 Message Date
Klaus Basan
f4822b69dd Allow to save "selected objects" only as JSON 2018-11-04 17:42:42 +01:00
Klaus Basan
5e99e557c6 Ref T362, Ref T348 model/view adjustments
* remove model string
* start directory for file dialog
2018-09-22 01:26:38 +02:00
Klaus Basan
ebcdef6884 Ref T362, utility function to display view count in tab 2018-09-20 00:47:15 +02:00
Klaus Basan
46c684f04c Ref T345, in view added acceptRowSelection 2018-09-12 17:40:34 +02:00
Klaus Basan
722566453b Ref T306, use settings for flightplan and view directories 2018-08-26 15:27:01 +02:00
Klaus Basan
19fbc345fb Better shortcut handling in views
- display shortcuts
- shortcut for resize
2018-08-26 15:26:55 +02:00
Klaus Basan
9bb3f98489 Style 2018-08-13 02:59:35 +02:00
Klaus Basan
a6ee6d4b72 Ref T292, Ref T285 minor style improvements, renamings 2018-07-26 04:32:38 +02:00
Klaus Basan
bf36a69be0 Stashed data file can be dropped to model view
* utility functions
* style changes / renamings / slots -> normal functions
* extra flag to enable file drop (and changed signatures)
* split view load function into 2 parts, one can use passed file parameter
2018-07-25 02:37:02 +02:00
Klaus Basan
507167fb8b Ref T285, some smaller view refactoring 2018-07-20 01:30:41 +02:00
Klaus Basan
f06482b554 Ref T268, aircraft situation view allows to "request elevation" 2018-07-10 17:17:22 +02:00
Klaus Basan
6bcded9264 Style 2018-07-09 22:30:20 +02:00
Klaus Basan
0aa5836b62 Ref T275, detect when objects have been deleted in view and using that signal in setup component 2018-06-20 00:58:43 +02:00
Klaus Basan
464c8dfe83 Formatting 2018-05-26 21:19:20 +02:00
Klaus Basan
fc35e8b654 Formatting, style 2018-05-22 13:23:47 +02:00
Klaus Basan
ba8b9a52da Ref T264, Ref T263 simple approach to remember last directory (load/save) in view
* utility function "unwrapCache" to unwrap cache data
* fixed loading from file, also supporting memoized formats as well
* remember last directory
2018-05-18 00:25:09 +02:00
Klaus Basan
98bc0a7d6e Ref T264, sued "new signal syntax" with some QShortcuts and as a result made some slots "normal functions" 2018-05-18 00:25:07 +02:00
Klaus Basan
4ced6b4f97 Formatting 2018-05-18 00:24:58 +02:00
Klaus Basan
4c2aaf73e1 View/Model support push_back 2018-05-18 00:24:57 +02:00
Klaus Basan
7d97b0e2a7 Some view/model improvements
* unselected functions as unselectedRowCount/unselectedRows ...
* turned some private slots -> private functions
2018-05-04 23:03:15 +02:00
Klaus Basan
5d56c295f8 Dtor in view base 2018-01-30 20:30:23 +01:00
Klaus Basan
26c6172816 Ref T197, doxygen fixes
"spooky action at a distance"
https://swift-project.slack.com/archives/G7GD2UP9C/p1510941452000072
2017-12-21 19:46:26 +01:00
Klaus Basan
6650ec89d3 Ref T189, formatting 2017-12-21 19:45:08 +01:00
Klaus Basan
3d76eabac5 Ref T189, context menu "Clear highlighting" only if there are highlighted rows
* added customMenu in template
* added hasHighlightedRows
2017-12-21 19:45:05 +01:00
Klaus Basan
f8e672b04f Ref T154, resize rows height for overlay messages
* for smaller container sizes switch to row content resizing
* row content resizing is slow -> only for small container sizes
* user still can switch manually (context menu) to row resizing
* default is interactive row resizing
2017-09-24 20:28:54 +01:00
Klaus Basan
9ba61cacf6 Ref T138, allow multi line messages 2017-09-24 19:53:44 +01:00
Klaus Basan
534ba5f9ec Ref T30, integrated font menu into view base 2017-09-24 19:49:48 +01:00
Klaus Basan
43bd700687 Ref T63, remember directory 2017-05-09 19:13:56 +02:00
Klaus Basan
5e69be6208 refs #911, support for cut and paste menu and support in views 2017-04-18 00:05:36 +01:00
Klaus Basan
30ef3eedf9 refs #900, filtered flag for containerOrFilteredContainer
more reliable than other approaches
2017-04-17 23:58:37 +01:00
Klaus Basan
02cbd8e00d refs #855, timeout support in view
* clear also hides indicator
* standard functions use timeout to hide indicator just in case something goes wrong
2017-01-10 23:47:29 +00:00
Klaus Basan
c2861b792c refs #855, re-center load indicator when resizing views 2017-01-10 23:47:24 +00:00
Klaus Basan
3c8056c838 refs #506, use digest signal modelDataChangedDigest 2017-01-10 23:45:46 +00:00
Klaus Basan
97137c46a6 refs #785, use selection interface with views
* adjusted sortByPropertyIndex, selectObjects
* function to select by row numbers
2017-01-10 23:45:11 +00:00
Klaus Basan
eb3b2252a2 refs #830, use settings in views
also avoid changing style when not needed
2016-12-13 19:02:22 +01:00
Klaus Basan
5ac701274b Show "loading" indicator when loading from backend is requested 2016-12-06 09:33:30 +01:00
Klaus Basan
630fecf8e8 refs #768, allow reselection of values when a view is sorted
* reselect callbacks
* remark: Only working in some cases as sorting is part of the model, while selection is part of the view (and sorting can take place without the view knowing the model is sorted)
* allow to sort by property index
* renamed to m_sortColumn
2016-12-06 09:33:11 +01:00
Klaus Basan
610dba2028 refs #757, materialize filtered data
* menu item / flag
* functions in view class
* some minor formatting
2016-09-19 16:18:48 +02:00
Klaus Basan
b324a26747 refs #735, allow to reset highlighting
(some leftovers of DB object highlighting also deleted)
2016-08-26 21:05:33 +01:00
Klaus Basan
a8834d0511 refs #720, remove highlight DB data menu (we use the DB icon instead)
* removed menu item
* fixed menu action, so parents submenus are searched upwards
2016-08-26 21:04:36 +01:00
Klaus Basan
635410857e refs #419, reviewed style sheet paintEvent code
* removed for QWidget
* added for QDialog
http://stackoverflow.com/questions/37952348/enable-own-widget-for-stylesheet
2016-06-25 16:00:30 +02:00
Klaus Basan
32d6d68c83 refs #674, code for hover/drop indicator
* item delegate for callback to view for hover
* proxy style for draw drop indicator as primitive
* added functions to view base for hover / callbacks
* highlight hover row in model
2016-06-23 20:13:28 +02:00
Klaus Basan
993a0ebbe9 View / model fixes / improvements
* allow upfront checking of formatter roles
* selection mode menus adjusted (data approach no longer worked with CSlot)
* removed unused style sheet parts
* minor View/Model tweaks/formatting
2016-06-15 00:11:18 +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
92c638cee4 Workaround for improper formatting of vPilot rules
found druing testing of #648
2016-05-07 20:11:52 +02:00
Klaus Basan
1a62de8dc3 refs #641, improvements/fixes of orderable lists / models / views
* set sort order automatically to IndexOrder when changing order of items
* call onChanged when model is changed and then update view (needed when model is changed directly, not via view)
* support for digest signal so redundant updates can be avoided
* renamed rowCountChanged (signal) to modelDataChanged - detecting row count changes only was useless
* updated Doxygen / fixed typos
2016-05-07 20:11:49 +02:00
Klaus Basan
acc1d4fd74 refs #640, changed view base classes to use new context menus
* keep menu actions on heap where possible
* adjusted signatures
2016-05-07 20:11:46 +02:00
Klaus Basan
7d43af343e refs #641, support for IOrderable in specialized views/models
* menu to order objects per drag and drop
* changed model/views to specialized model/views
2016-05-07 20:11:37 +02:00
Klaus Basan
9409f93366 refs #614, allow to resize view by presize algorithm 2016-04-11 20:16:08 +02:00
Klaus Basan
600cd52f30 view base improvements
* Use direct update function (not via CVariant anymore)
* refresh indicator
* new signal syntax
2016-04-11 20:16:06 +02:00