Klaus Basan
9f408e8319
Fixes in model set form as described by RP
...
https://swift-project.slack.com/archives/G96QTUBEG/p1544353355002400
* fixed missing radio button groups
* return values for some functions to detect "changes"
* minor style fixes
2018-12-10 03:41:16 +01:00
Klaus Basan
02213e860d
Ref T442, style
2018-12-07 02:37:14 +01:00
Klaus Basan
f4822b69dd
Allow to save "selected objects" only as JSON
2018-11-04 17:42:42 +01: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
69e1c3f4c2
Ref T275, CAircraftSituationChange view/model
...
* added some more indexes
* CAircraftSituationChangeListModel
* CAircraftSituationChangeListView
2018-06-13 14:00:28 +02:00
Klaus Basan
c16f5575f4
Ref T270, models/views for parts and situations
...
* added base class CListModelTimestampObjects
* added model/view for CAircraftParts
* added model/view for CAircraftSituation
2018-05-29 00:56:36 +02:00
Klaus Basan
9fb7ba7592
Ref T264, application info list model
2018-05-22 13:34:58 +02:00
Klaus Basan
4c2aaf73e1
View/Model support push_back
2018-05-18 00:24:57 +02:00
Klaus Basan
6c50c4ea72
Formatting, minor tweaks
2018-05-12 21:40:23 +02:00
Klaus Basan
74f52cf39c
Ref T259, Ref T243 adjusted container, models and views to support CInterpolationSetupList
...
* added forward declarations
* added some utility functions
2018-04-13 23:36:38 +02: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
ff4b37b3fe
refs #923 , use CVariant JSON to load/save from view
2017-04-18 00:06:19 +01:00
Klaus Basan
30ef3eedf9
refs #900 , filtered flag for containerOrFilteredContainer
...
more reliable than other approaches
2017-04-17 23:58:37 +01:00
Mathew Sutcliffe
1c7fb518ca
Fixed broken link URLs in comments.
2017-02-24 00:18:16 +00:00
Klaus Basan
b35bbd8b81
refs #849 , model/view for statistics
2017-01-10 23:46:52 +00:00
Klaus Basan
a374146a41
refs #785 , use selection interface
...
* reselect of updates
* marked some QStandardItemModel functions as final (as suggested by MS)
* removed no longer used functions
2017-01-10 23:45:09 +00: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
58faed5ea7
refs #745 , removed unused hover code
...
(this was a trial to highlight the drop position, the callback function was kept)
2016-08-27 14:31:42 +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
20f335c0bc
refs #707 , adjusted list model base
...
* allow property for line numbers
* compare for ATC stations
2016-07-14 18:49:18 +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
Roland Winklmeier
099282d0aa
Weather UI Models
...
refs #663
2016-06-17 10:46:31 +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
0f5d2a29a8
refs #655 , Change signature (order) of setProperty/compareProperty
2016-05-13 16:44:17 +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
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
e877c6dba5
Better performance for filter
...
* valid filter flag only calculated once
* Better removal detection of filter dialog
2016-04-11 20:22:12 +02:00
Klaus Basan
70aacf8cb1
Minor: Logging for reader, removed sort log message, guard name
2016-04-11 20:16:20 +02:00
Klaus Basan
a5ad8c245b
Fix, also emit when complete data change and rows are the same (as it could be entirely different dataset)
2016-03-23 03:24:57 +01:00
Klaus Basan
c3722f9198
refs #485 , refs #584 removed include blackmiscfreefunctions.h
2016-03-18 01:07:49 +00:00
Klaus Basan
6089dc1106
Formatting, comments
2016-02-05 18:00:00 +01:00
Klaus Basan
de4b07dc32
refs #576 , tweaking view base
...
* renaming in view base (similar to Qt name rowCount)
* insert function for whole container
2016-02-05 17:59:54 +01:00
Klaus Basan
b09dbd4828
refs #568 , improved display / sorting for status message categories
...
* display technical categories when no hr categories are available
* compare function for status message
2016-01-28 16:32:01 +01:00
Klaus Basan
f607b72821
refs #568 , specialized model class for models from DB
...
* support for keys
* renamed to listmodeldbobjects (unified with views)
* key type as template parameter
* adjusted derived classes
2016-01-28 16:31:41 +01:00
Klaus Basan
9fcc846b7a
refs #560 , allow to load / save from view/model
...
* added load/save functions
* changed menu from multiple bool members to flag
* shortcut for save
* cleaned up filter dialog handling
2015-12-20 17:01:32 +01:00
Klaus Basan
ecb4694c7f
refs #535 , updated viewbase and formatters
...
* Fixed wrong masking
* changed signal for model
* update selected models
* directly set object in model
2015-12-20 16:59:30 +01:00
Klaus Basan
8e852b19ae
refs #525 , specialized model class for DB entities and improved funtions in view base class
...
* will allow to highlight entities
* nested custom menus
* moved displayAutomatically() menus in view base class
* fixed which menus are displayed for aircraft models
* also changed to QStandardItem model to see if this is causing any trouble (the real bigger changes will follow in #530 )
2015-12-08 20:14:11 +01:00
Klaus Basan
8f85c54989
refs #538 , Formatting, minor tweaks, comments
...
* new slot syntax in ATC station component
* formatting, comments
* tab order
* utility function for severity in status message
* null checks in threadutils
* invalidKey function in datastore
* changed data object keys (cached objets)
* added missing value object compare cases
* renamed timer in context network
* finder function for model list
* renamed getContainer to container (as it is just a reference)
2015-12-07 02:25:26 +01:00
Klaus Basan
0c94922bd6
refs #501 , compareByPropertyIndex (performance for sort)
2015-11-19 21:04:34 +00:00
Mathew Sutcliffe
a0a503599f
refs #479 Fixed mistake in CListModelBase::updateAsync.
2015-11-19 21:00:48 +00:00
Klaus Basan
fb4baa0ef8
refs #452 , model base class
...
* drag and drop support
* model can be marked as destoyed when view is about to be destroyed (to cancel pending actions)
2015-11-19 20:59:30 +00:00
Mathew Sutcliffe
f50400bd94
refs #457 Use cases for CWorker non-void tasks and thenWithResult().
2015-11-19 20:58:24 +00:00
Roland Winklmeier
08a1de995a
refs #454 #455 #458 Remove obsolete code
2015-11-19 20:58:06 +00:00
Klaus Basan
b308014bc2
refs #445 , models and views for new value classes
...
* livery
* distributor
2015-11-19 20:57:24 +00:00
Mathew Sutcliffe
d4d862927e
refs #441 Rename COriginator to CIdentifier and rename COriginatorAware to CIdentifiable.
2015-06-06 18:02:16 +01:00
Mathew Sutcliffe
47cac09e81
refs #437 Removed toQVariant and convertFromQVariant.
2015-05-31 17:21:17 +01:00
Klaus Basan
e04ada3a7c
refs #437 , remove convertFromCVariant
2015-05-31 01:31:09 +02:00