Commit Graph

58 Commits

Author SHA1 Message Date
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
Roland Winklmeier
e4f2c9e88a Replace occurrences of CVariant::toCVariant() with CVariant::from() 2015-05-30 16:59:51 +02:00
Klaus Basan
6e2830c130 refs #432, originator list model + view 2015-05-28 23:57:24 +02:00
Michał Garapich
985a1caecf refs #396 BlackMisc: nw* goes to network/, hw* goes to hardware/ 2015-04-07 19:22:37 +02:00
Roland Winklmeier
78d3350bf3 refs #396 move Blackmisc Aviation classes into subfolder 2015-04-07 18:20:20 +02:00
Klaus Basan
269c65b578 As of workshop RW/KB, improved / fixed text messages
Also refs #351
* messages can be formatted with style sheet
* fixed: removed command from message
* added originator to command line
* msg parsing now in core
* using ITimestampBased for text messages and status messages
* allow to resize rows to content (view base)
* model / views for text messages
* removed old qt stylesheets
2015-03-20 17:10:58 +01:00
Klaus Basan
7201d09c9a refs #380, changed to CWorker for aircraft mapper
Removed QConcurrent
2015-03-20 16:34:18 +01:00
Klaus Basan
50307c1182 Changed model to QAbstractItemModel 2015-01-24 01:16:38 +01:00
Klaus Basan
23d3ea3ec5 refs #368, filter for views 2015-01-24 01:15:32 +01:00
Klaus Basan
4a94a125f2 refs #358, GUI for installed / matched models
* model / view / component classes
2014-12-28 22:19:54 +01:00
Mathew Sutcliffe
f80d7e27d1 refs #247 Using CVariant in blackgui. 2014-12-13 01:42:00 +00:00
Mathew Sutcliffe
16e285cecd refs #247 Style. 2014-12-13 01:38:53 +00:00
Mathew Sutcliffe
9b06bb1a1e Fix for CListModelBase::at to support classes with defaulted (C++11 §8.4.2/4) default constructors. 2014-11-16 13:51:54 +00:00
Mathew Sutcliffe
8664ed01a8 refs #325, used MS' worker class and removed redundant code
* contains "hacked-in demonstration of CWorker usage"
2014-10-07 13:10:50 +02:00
Klaus Basan
ae0ef4283c Display number of table rows in tab
* countChanged event
* applied in components
2014-10-07 13:10:41 +02:00
Klaus Basan
ef5f5bde0f Formatting, new icons, minor tweaks 2014-10-07 13:10:37 +02:00
Klaus Basan
dc3eff1c1f refs #325, added async update member function to CListModelBase / CViewBase (+ resize modes)
* model:
** required a non templated base class for Q_OBJECT / slots
** added worker for thread, QConcurrent is not used as it does not work with template classes
* views:
** added cpp file for view base class
** added template parameter for container in views
** different modes how resizing will be applied
2014-10-07 13:10:28 +02:00
Klaus Basan
9e6a9a28cb Fixed bug in CListModelBase, avoid double sorting 2014-10-07 13:10:21 +02:00
Klaus Basan
2a11411bc0 refs #325 added sort flag for models / views, allow to update, but not to sort 2014-10-07 13:10:19 +02:00