mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 10:15:43 +08:00
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:
@@ -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; }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user