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
This commit is contained in:
Klaus Basan
2015-03-13 01:53:37 +01:00
parent aee2b2495f
commit 269c65b578
73 changed files with 1301 additions and 1311 deletions

View File

@@ -162,17 +162,21 @@ namespace BlackGui
//! Object at row position
virtual const ObjectType &at(const QModelIndex &index) const;
//! Sort by given sort order \sa getSortColumn() \sa getSortOrder()
void sort();
//! \copydoc QAbstractItemModel::sort()
virtual void sort(int column, Qt::SortOrder order) override;
/*!
* Sort container by given column / order. This is used by sort() but als
* for asynchronous updates in the views
* \param container used list
* \param column column inder
* \param order sort order (ascending / descending)
* \threadsafe under normal conditions thread safe as long as the column metadata are not changed
*/
//! Truncate to given number
void truncate(int maxNumber, bool forceSort = false);
//! Sort container by given column / order. This is used by sort() but als
//! for asynchronous updates in the views
//! \param container used list
//! \param column column inder
//! \param order sort order (ascending / descending)
//! \threadsafe under normal conditions thread safe as long as the column metadata are not changed
ContainerType sortContainerByColumn(const ContainerType &container, int column, Qt::SortOrder order) const;
//! Similar to ContainerType::push_back