Commit Graph

48 Commits

Author SHA1 Message Date
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
Klaus Basan
5d6713032f Formatting, new icons 2014-10-07 13:10:17 +02:00
Klaus Basan
473f8cd608 Debug messages to monitor model reloading/sorting, will be removed later 2014-09-09 20:07:19 +02:00
Klaus Basan
9567d1aedf refs #319, added column formatters
* Specialized formatters (e.g. for bool, for PQs etc.) allow specialized look and feel for each column
* Fixed isValidComFrequency used for formatters
* Changed models to use formatters
* Outdated propertyByIndexAsString methods removed
* During the above tasks: fixed override keyword in some places
* Column tooltips
* refs #323, wrong column name fix
2014-09-09 20:07:12 +02:00
Klaus Basan
d88c1bb252 refs #314, changed models and views to new CPropertyIndex approach 2014-08-24 02:47:01 +02:00
Klaus Basan
3fb5087ea8 Renaming, header, Doxygen, formatting (during refs #314) 2014-08-24 02:45:52 +02:00
Roland Winklmeier
f76e0bc957 refs #313 Change GUI classes to use new hotkey settings wrapper classes 2014-08-19 15:30:04 +02:00
Klaus Basan
6d5461cff8 Formatting, headers, Doxygen 2014-08-05 23:31:53 +02:00
Klaus Basan
c500a561be refs #300, moved models in own namespace and directory 2014-08-05 23:31:45 +02:00