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

@@ -12,6 +12,7 @@
#ifndef BLACKMISC_STATUSMESSAGELIST_H
#define BLACKMISC_STATUSMESSAGELIST_H
#include "timestampobjectlist.h"
#include "valueobject.h"
#include "sequence.h"
#include "collection.h"
@@ -23,7 +24,9 @@ namespace BlackMisc
/*!
* Status messages, e.g. from Core -> GUI
*/
class CStatusMessageList : public CSequence<CStatusMessage>
class CStatusMessageList :
public CSequence<CStatusMessage>,
public ITimestampObjectList<CStatusMessage, CStatusMessageList>
{
public:
//! Constructor
@@ -52,6 +55,13 @@ namespace BlackMisc
//! Register metadata of unit and quantity
static void registerMetadata();
protected:
//! Myself
virtual const CStatusMessageList &container() const override { return *this; }
//! Myself
virtual CStatusMessageList &container() override { return *this; }
};
}