• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Product
    • Design UI
    • Develop
    • Analyze and test
    • Deploy
    • Framework and toolbox
    • Compatibility
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • CDPEventList

CDPEventList Class

The CDPEventList is a Qt Plugin/static lib which is able to show events from connected CDP applications. The list supports lots of properties for different configurations, like which columns to show (different event- info), show different pixmaps depending on status/level/eventCode, svg-styling/own colour-selections and different filtering-options. There are three types of CDPEventLists to choose between: history, active and database, see property listType. More...

Header: #include <CDPEventList>
Inherits: CDPBaseWidget and ResourceHandler
  • List of all members, including inherited members

Public Types

enum AdjustmentMode { Auto, Fixed, Interactive }
enum EventInfoVariable { ILLEGAL, eventId, handle, status, ..., statuslevel }
enum LevelsToView { levelAll, levelNoLevel, levelNOTIFY, levelNOTIFYandNoLevel, ..., levelERRORandWARNINGandNOTIFY }
enum ListModelType { history, active, database }
enum StatusLevel { UnackSetError, UnackError, SetError, OkError, ..., OkNotify }
enum StatusToView { statusAll, statusOK, statusSET, statusSETandOK, ..., statusUNACKSETandUNACKandSET }
enum TimeStampFormat { CDP_DOS_American, CDP_UNIX, CDP_DOS_American_No_Ms, CDP_DOS_American_Date, ..., CDP_Day_TimeShortMs }

Properties

  • addEventsFront : bool
  • cdpRoutings : QStringList
  • coloursInList : QString
  • columnHeaders : QString
  • columnSorted : EventInfoVariable
  • columnWidthAdjMode : AdjustmentMode
  • enableEventCodeFiltering : bool
  • eventCodesToViewFilterValue : uint
  • eventIdSortOrder : Qt::SortOrder
  • eventInfoProperties : QString
  • fontFamily : QString
  • fontItalic : bool
  • fontSize : int
  • fontWeight : int
  • groupsAvailable : QString
  • groupsToView : QString
  • levelsToView : LevelsToView
  • lineHeight : int
  • listType : ListModelType
  • minimumColumnWidth : int
  • multiSelection : bool
  • openEventInfoDialogByClick : bool
  • pixmapStatusLevelOkErr : QString
  • pixmapStatusLevelOkNot : QString
  • pixmapStatusLevelOkWar : QString
  • pixmapStatusLevelSetErr : QString
  • pixmapStatusLevelSetNot : QString
  • pixmapStatusLevelSetWar : QString
  • pixmapStatusLevelUnErr : QString
  • pixmapStatusLevelUnNot : QString
  • pixmapStatusLevelUnSetErr : QString
  • pixmapStatusLevelUnSetNot : QString
  • pixmapStatusLevelUnSetWar : QString
  • pixmapStatusLevelUnWar : QString
  • pixmapStatusOk : QString
  • pixmapStatusSet : QString
  • pixmapStatusUnack : QString
  • pixmapStatusUnackSet : QString
  • pixmapsEventCodes : QString
  • popUpWarnings : bool
  • showGrid : bool
  • showHorizontalHeader : bool
  • skipSvgRowBg : bool
  • skipSvgRowTextColor : bool
  • sortOrder : Qt::SortOrder
  • statusToView : StatusToView
  • svgFile : const QString
  • textAlsoPixmapStatus : bool
  • textAlsoPixmapsEventCodes : bool
  • timeStampFormat : TimeStampFormat
  • timestampSortOrder : Qt::SortOrder
  • useTimestampLocal : bool
  • userCanChangeSortColumn : bool
  • version : QString
  • viewColourSelectionMenu : bool
  • viewColumnWidthSelectionMenu : bool
  • viewEventCodesToViewMenu : bool
  • viewFilterColumnMenu : bool
  • viewGroupsToViewMenu : bool
  • viewLevelsToViewMenu : bool
  • viewMenuColumnSelectionMenu : bool
  • viewProvidersGroupsSelectionMenu : bool
  • viewStatusToViewMenu : bool
  • viewTimestampFormatMenu : bool
  • 6 properties inherited from CDPBaseWidget

Public Functions

CDPEventList(QWidget *parent = 0)
CDPEventList(DatabaseThreadHandler *handler, QWidget *parent = 0)
virtual ~CDPEventList()
virtual void ConfigureAll(void *formEditor)
virtual std::string ConvertDBLogStampToEventFormat(QString strLogStampDB, int CDPTimeFormat)
virtual EventSubscriberModel *GetEventSubscriberModel()
virtual SortFilterProxyModel *GetSortFilterProxyModel()
virtual void SetFlag_PossibleToSendCommands(bool possible)
virtual void SetTextTranslatorInterfacePointer(TextTranslatorInterface *textTranslInterface)
bool addEventsFront() const
QStringList cdpRoutings() const
QString coloursInList() const
QString columnHeaders() const
CDPEventList::EventInfoVariable columnSorted() const
CDPEventList::AdjustmentMode columnWidthAdjMode() const
bool enableEventCodeFiltering() const
unsigned int eventCodesToViewFilterValue() const
Qt::SortOrder eventIdSortOrder() const
QString eventInfoProperties() const
QString fontFamily() const
bool fontItalic() const
int fontSize() const
int fontWeight() const
QString groupsAvailable() const
QString groupsToView() const
CDPEventList::LevelsToView levelsToView() const
int lineHeight() const
CDPEventList::ListModelType listType() const
int minimumColumnWidth() const
bool multiSelection() const
bool openEventInfoDialogByClick() const
QString pixmapStatusLevelOkErr() const
QString pixmapStatusLevelOkNot() const
QString pixmapStatusLevelOkWar() const
QString pixmapStatusLevelSetErr() const
QString pixmapStatusLevelSetNot() const
QString pixmapStatusLevelSetWar() const
QString pixmapStatusLevelUnErr() const
QString pixmapStatusLevelUnNot() const
QString pixmapStatusLevelUnSetErr() const
QString pixmapStatusLevelUnSetNot() const
QString pixmapStatusLevelUnSetWar() const
QString pixmapStatusLevelUnWar() const
QString pixmapStatusOk() const
QString pixmapStatusSet() const
QString pixmapStatusUnack() const
QString pixmapStatusUnackSet() const
QString pixmapsEventCodes() const
bool popUpWarnings() const
IQtCDP *qtCDP()
void setAddEventsFront(bool addEventsFront)
void setCdpRoutings(const QStringList &cdpRoutings)
void setColoursInList(const QString &colourSelections)
void setColumnHeaders(const QString &columnHeadersSeparated)
void setColumnSorted(CDPEventList::EventInfoVariable newColumnSorted)
void setColumnWidthAdjMode(CDPEventList::AdjustmentMode newColumnWidthAdjMode)
void setEnableEventCodeFiltering(bool enableEventCodeFiltering)
void setEventCodesToViewFilterValue(unsigned int eventCodesToViewFilterValue)
void setEventIdSortOrder(Qt::SortOrder newSortOrder)
void setEventInfoProperties(const QString &eventInfoPropertiesSemiColonSeparated)
void setFontFamily(const QString &newFontFamily)
void setFontItalic(bool useFontItalic)
void setFontSize(int newFontSize)
void setFontWeight(int newFontWeight)
void setGroupsAvailable(const QString &groupsAvailableSemiColonSeparated)
void setGroupsToView(const QString &groupsToViewSemiColonSeparated)
void setLevelsToView(CDPEventList::LevelsToView newLevelsToView)
void setLineHeight(int newLineHeight)
void setListType(CDPEventList::ListModelType type)
void setMinimumColumnWidth(int newMinimumColumnWidth)
void setMultiSelection(bool multiSelection)
void setOpenEventInfoDialogByClick(bool open)
void setPixmapStatusLevelOkErr(const QString &pixmapFile)
void setPixmapStatusLevelOkNot(const QString &pixmapFile)
void setPixmapStatusLevelOkWar(const QString &pixmapFile)
void setPixmapStatusLevelSetErr(const QString &pixmapFile)
void setPixmapStatusLevelSetNot(const QString &pixmapFile)
void setPixmapStatusLevelSetWar(const QString &pixmapFile)
void setPixmapStatusLevelUnErr(const QString &pixmapFile)
void setPixmapStatusLevelUnNot(const QString &pixmapFile)
void setPixmapStatusLevelUnSetErr(const QString &pixmapFile)
void setPixmapStatusLevelUnSetNot(const QString &pixmapFile)
void setPixmapStatusLevelUnSetWar(const QString &pixmapFile)
void setPixmapStatusLevelUnWar(const QString &pixmapFile)
void setPixmapStatusOk(const QString &pixmapFile)
void setPixmapStatusSet(const QString &pixmapFile)
void setPixmapStatusUnack(const QString &pixmapFile)
void setPixmapStatusUnackSet(const QString &pixmapFile)
void setPixmapsEventCodes(const QString &eventcodesPixmapsSemiColonSeparated)
void setPopUpWarnings(bool enabled)
void setShowGrid(bool grid)
void setShowHorizontalHeader(bool horizontalHeader)
void setSkipSvgRowBg(bool skip)
void setSkipSvgRowTextColor(bool skip)
void setSortOrder(Qt::SortOrder newSortOrder)
void setStatusToView(CDPEventList::StatusToView newStatusToView)
void setTextAlsoPixmapStatus(bool textAlso)
void setTextAlsoPixmapsEventCodes(bool textAlso)
void setTimeStampFormat(CDPEventList::TimeStampFormat tsFormat)
void setTimestampSortOrder(Qt::SortOrder newSortOrder)
void setUseTimestampLocal(bool useTimestampLocal)
void setUserCanChangeSortColumn(bool sortColumnChangable)
void setVersion(QString newVersion)
void setViewColourSelectionMenu(bool view)
void setViewColumnWidthSelectionMenu(bool view)
void setViewEventCodesToViewMenu(bool view)
void setViewFilterColumnMenu(bool view)
void setViewGroupsToViewMenu(bool view)
void setViewLevelsToViewMenu(bool view)
void setViewMenuColumnSelectionMenu(bool view)
void setViewProvidersGroupsSelectionMenu(bool view)
void setViewRefreshFromDatabase(bool view)
void setViewSelectDatabaseFileMenu(bool view)
void setViewStatusToViewMenu(bool view)
void setViewTimestampFormatMenu(bool view)
bool showGrid() const
bool showHorizontalHeader() const
QSize sizeHint() const override
bool skipSvgRowBg() const
bool skipSvgRowTextColor() const
Qt::SortOrder sortOrder() const
CDPEventList::StatusToView statusToView() const
virtual QString svgFile() const
bool textAlsoPixmapStatus() const
bool textAlsoPixmapsEventCodes() const
CDPEventList::TimeStampFormat timeStampFormat() const
double timerInterval()
Qt::SortOrder timestampSortOrder() const
bool useTimestampLocal() const
bool userCanChangeSortColumn() const
QString version() const
bool viewColourSelectionMenu() const
bool viewColumnWidthSelectionMenu() const
bool viewEventCodesToViewMenu() const
bool viewFilterColumnMenu() const
bool viewGroupsToViewMenu() const
bool viewLevelsToViewMenu() const
bool viewMenuColumnSelectionMenu() const
bool viewProvidersGroupsSelectionMenu() const
bool viewRefreshFromDatabase() const
bool viewSelectDatabaseFileMenu() const
bool viewStatusToViewMenu() const
bool viewTimestampFormatMenu() const

Reimplemented Public Functions

virtual void processSvgFile(QString svg) override
virtual void setIQtCDPPointer(IQtCDP *pIQtCDP) override
  • 8 public functions inherited from CDPBaseWidget
  • 3 public functions inherited from ResourceHandler
  • 4 public functions inherited from CDPBaseControlVisible

Public Slots

virtual void EmitActiveAlarmSignals()
virtual void EmitFilteredActiveAlarmSignals()
virtual void FilterColumn(EeventSubscr::EventInfoVariable column)
virtual void FilterEventCode(bool enableFilterEventCodesGUI, unsigned int filterValue, bool saveToXML)
virtual void FilterGroups(const GroupList &AvailableGroupsList, const GroupList &GroupsToViewList, bool saveToXML)
virtual void FilterLevel(int filterValue, bool saveToXML)
virtual void FilterStatus(int filterValue, bool saveToXML)
virtual void HeaderViewSortIndicatorChanged(int logicalIndex, Qt::SortOrder order)
virtual void ackAll()
virtual void ackAllHiddenIncluded()
virtual void ackSelected()
virtual void ackSelectedAndVisible()
virtual void selectAndAckVisible()
virtual void selectVisible()
virtual void setTimeOffsetSecs(double offsetInSec) override
virtual void setWidgetFont(const QString &font) override
virtual void setWidgetTheme(const QString &theme) override
virtual void showEventInfoDialog()
  • 10 public slots inherited from CDPBaseWidget

Signals

void alarmsActiveChanged(int noAlarms)
void alarmsFilteredActiveChanged(int noAlarms)
void alarmsFilteredSetAckedChanged(int noAlarms)
void alarmsFilteredSetAckedErrorChanged(int noAlarms)
void alarmsFilteredSetAckedNotifyChanged(int noAlarms)
void alarmsFilteredSetAckedWarningChanged(int noAlarms)
void alarmsFilteredSetChanged(int noAlarms)
void alarmsFilteredUnackChanged(int noAlarms)
void alarmsFilteredUnackNotSetChanged(int noAlarms)
void alarmsFilteredUnackNotSetErrorChanged(int noAlarms)
void alarmsFilteredUnackNotSetNotifyChanged(int noAlarms)
void alarmsFilteredUnackNotSetWarningChanged(int noAlarms)
void alarmsFilteredUnackSetChanged(int noAlarms)
void alarmsFilteredUnackSetErrorChanged(int noAlarms)
void alarmsFilteredUnackSetNotifyChanged(int noAlarms)
void alarmsFilteredUnackSetWarningChanged(int noAlarms)
void alarmsSetAckedChanged(int noAlarms)
void alarmsSetAckedErrorChanged(int noAlarms)
void alarmsSetAckedNotifyChanged(int noAlarms)
void alarmsSetAckedWarningChanged(int noAlarms)
void alarmsSetChanged(int noAlarms)
void alarmsUnackChanged(int noAlarms)
void alarmsUnackNotSetChanged(int noAlarms)
void alarmsUnackNotSetErrorChanged(int noAlarms)
void alarmsUnackNotSetNotifyChanged(int noAlarms)
void alarmsUnackNotSetWarningChanged(int noAlarms)
void alarmsUnackSetChanged(int noAlarms)
void alarmsUnackSetErrorChanged(int noAlarms)
void alarmsUnackSetNotifyChanged(int noAlarms)
void alarmsUnackSetWarningChanged(int noAlarms)
  • 1 signal inherited from CDPBaseWidget

Protected Functions

virtual void mouseReleaseEvent(QMouseEvent *ev)
virtual void showEvent(QShowEvent *arg)
  • 2 protected functions inherited from ResourceHandler
  • 1 protected function inherited from CDPBaseControlVisible

Additional Inherited Members

  • 2 static public members inherited from ResourceHandler
  • 7 protected variables inherited from CDPBaseWidget
  • 2 protected variables inherited from ResourceHandler
  • 3 protected variables inherited from CDPBaseControlVisible

Detailed Description

The CDPEventList is a Qt Plugin/static lib which is able to show events from connected CDP applications. The list supports lots of properties for different configurations, like which columns to show (different event- info), show different pixmaps depending on status/level/eventCode, svg-styling/own colour-selections and different filtering-options. There are three types of CDPEventLists to choose between: history, active and database, see property listType.

Configuration of the event sources depends on the application type the CDPEventList will be used in.

Receiving Events In Web UI Applications

When the CDPEventList is running in the Web UI application, then by default it receives all events from all applications of the system. However, the widget can be configured to receive events only from some CDP nodes of the system. For that, a cdpRoutings property can be configured, to list the CDP object full names, that this CDPEventList has to receive events from (and from the child objects under them). For example, the cdpRoutings can be set to list either some explicit CDP application names or some specific IOServer full names, etc.

Note: When the cdpRoutings property is empty, all events from all applications of the system will be received when the CDPEventList is running in the Web UI.

Receiving Events In Native GUI Applications

When the CDPEventList is running in the native GUI application, then the application must have a CDPEventSubscriber component, and this component must subscribe to CDPEventNode(s) from wanted application(s).

  • In Configure mode navigate to YourGUIApp.CDP.CDPEventSubscriber. In case CDP.CDPEventSubscriber is not visible, the reason might be that these standard CDP components are filtered away. To get them visible again, see Filtering. Then look into Subcomponents and click on the in front of CDP and CDPEventSubscriber
  • Add an EventProvider to the CDPEventSubscriber
  • Set routing in the EventProvider to the EventNode of an application from which you want to receive events, e.g: AnotherApp.CDP.CDPEventNode

Menus by right-clicking in header

If you right-click in the header of an EventList, you will get a list of different menus to do configuration (both offline view (Design mode) and when running the GUI)

Column selection...You may choose which information to show in the list, and in which sequence the columns are placed.
Column Width selection...You can choose column width adjustment mode: Auto, Fixed or Interactive.
Colour selection...You may have different colours for text and background, depending on alarm status and level (only for active list, when no svgFile has been chosen).
Timestamp Format...You may choose between some predefined ways to display time and date.
Filter column...You may choose which column to filter on, and the filter string.
Providers and Groups selection...You may configure which applications you want to receive events from. The EventProvider is specified by the routing name <Application>.<CDP>.<CDPEventNode> This menu is not available in offline view/design mode nor in Web UI mode.
Groups to view...You may filter the events by Groups. Only events/alarms containing specified Group(s) will be shown.
Levels to view...You may filter which events to view, based on levels.
Status to view...You may filter which events to view, based on status.
EventCodes to view...You may filter which events to view, based on event codes (bits having different meaning). The different meanings of the bits are listed in the menu.

Member Type Documentation

enum CDPEventList::AdjustmentMode

This enum type specifies different adjustment modes for column width:

ConstantValueDescription
CDPEventList::Auto0Auto resize to contents, given width in pixel will be ignored.
CDPEventList::Fixed1Given width in pixel will be set, not possible to drag column-width.
CDPEventList::Interactive2Given width in pixel will be set, user can drag column-width.

For the last column, QHeaderView::Stretch will be applied, causing automatically resize the section to fill the available space.

enum CDPEventList::EventInfoVariable

This enum type specifies what type of info which will be shown in the column, part of property columnHeaders:

ConstantValueDescription
CDPEventList::ILLEGAL-1This is an illegal value of the eventInfoVariable (no info will be shown)
CDPEventList::eventId0The event's eventId (increasing number for each new event, per CDPEventNode).
CDPEventList::handle1Handle of object which generated the event.
CDPEventList::status2The alarm-object's status, shown as text. This column may also be used to show different pixmaps depending on status-value.
CDPEventList::eventCodeHex3The event's eventCode, shown in hex-value. This column may also be used to show different pixmaps depending on eventCode-value.
CDPEventList::timestamp4Timestamp at source-object when event was generated.
CDPEventList::name5Fullname of source-object which generated the event.
CDPEventList::description6Description of source-object, typically for alarms.
CDPEventList::group7Which group(s) the source-object is belonging to (if any is specified).
CDPEventList::text8Text belonging to source-object, typically for alarms.
CDPEventList::level9Level of alarm (Error/Warning/Notify).
CDPEventList::timestampLocal10Timestamp set (local time of this application) when event was received in the eventlist, typically used if applications are not clocksynchronized.
CDPEventList::eventName11Typical name of property.
CDPEventList::eventData12New property value for property in eventName.
CDPEventList::statusHex13The alarm-object's status, shown in hex-value.
CDPEventList::eventCode14The event's eventCode, shown in text.
CDPEventList::statuslevel15Column to show pixmap depending on the event's combination of Status-value and Level-value.

enum CDPEventList::LevelsToView

This enum type specifies different filtering possibilities for levels:

ConstantValueDescription
CDPEventList::levelAll0View all events (no filtering)
CDPEventList::levelNoLevel1View only events where level is empty/has no level
CDPEventList::levelNOTIFY2View only events with level NOTIFY
CDPEventList::levelNOTIFYandNoLevel3View only events with level NOTIFY or no level (level is empty)
CDPEventList::levelWARNING4View only events with level WARNING
CDPEventList::levelWARNINGandNoLevel5View only events with level WARNING or no level (level is empty)
CDPEventList::levelWARNINGandNOTIFY6View only events with level WARNING or NOTIFY
CDPEventList::levelWARNINGandNOTIFYandNoLevel7View only events with level WARNING, NOTIFY or no level (level is empty)
CDPEventList::levelERROR8View only events with level ERROR
CDPEventList::levelERRORandNoLevel9View only events with level ERROR or no level (level is empty)
CDPEventList::levelERRORandNOTIFY10View only events with level ERROR or NOTIFY
CDPEventList::levelERRORandNOTIFYandNoLevel11View only events with level ERROR, NOTIFY or no level (level is empty)
CDPEventList::levelERRORandWARNING12View only events with level ERROR or WARNING
CDPEventList::levelERRORandWARNINGandNoLevel13View only events with level ERROR, WARNING or no level (level is empty)
CDPEventList::levelERRORandWARNINGandNOTIFY14View only events with level ERROR, WARNING or NOTIFY

enum CDPEventList::ListModelType

This enum type specifies different model types (what type of events the list will show):

ConstantValueDescription
CDPEventList::historyEeventSubscr::historyShows all events, except events where EVENT_REPRISE-bit is set in eventCode. Will only keep up to a limit (Parameter MaxHistoryEventListSize) of events in memory.
CDPEventList::activeEeventSubscr::activeshows only active alarms, which means status Set and/or Unack. No limit in number of events shown.
CDPEventList::databaseEeventSubscr::databasesame as history, but stores the events to database in addition. The list shown may be limited in size by the property linesToLoadFromDB.

enum CDPEventList::StatusLevel

This enum type specifies different combinations of alarm Status and alarm levels, which may be used to load different pixmaps:

ConstantValueDescription
CDPEventList::UnackSetError0The alarm has status Unack-Set and level is Error.
CDPEventList::UnackError1The alarm has status Unack and level is Error.
CDPEventList::SetError2The alarm has status Set and level is Error.
CDPEventList::OkError3The alarm has status Ok and level is Error.
CDPEventList::UnackSetWarning4The alarm has status Unack-Set and level is Warning.
CDPEventList::UnackWarning5The alarm has status Unack and level is Warning.
CDPEventList::SetWarning6The alarm has status Set and level is Warning.
CDPEventList::OkWarning7The alarm has status Ok and level is Warning.
CDPEventList::UnackSetNotify8The alarm has status Unack-Set and level is Notify.
CDPEventList::UnackNotify9The alarm has status Unack and level is Notify.
CDPEventList::SetNotify10The alarm has status Set and level is Notify.
CDPEventList::OkNotify11The alarm has status Ok and level is Notify.

enum CDPEventList::StatusToView

This enum type specifies different filtering possibilities for status:

ConstantValueDescription
CDPEventList::statusAll0View all events (no filtering)
CDPEventList::statusOK1View only events with status OK
CDPEventList::statusSET2View only events with status SET
CDPEventList::statusSETandOK3View only events with status SET or OK
CDPEventList::statusUNACK4View only events with status UNACK
CDPEventList::statusUNACKandOK5View only events with status UNACK or OK
CDPEventList::statusUNACKandSET6View only events with status UNACK or SET
CDPEventList::statusUNACKandSETandOK7View only events with status UNACK, SET or OK
CDPEventList::statusUNACKSET8View only events with status UNACK-SET
CDPEventList::statusUNACKSETandOK9View only events with status UNACK-SET or OK
CDPEventList::statusUNACKSETandSET10View only events with status UNACK-SET or SET
CDPEventList::statusUNACKSETandSETandOK11View only events with status UNACK-SET, SET or OK
CDPEventList::statusUNACKSETandUNACK12View only events with status UNACK-SET or UNACK
CDPEventList::statusUNACKSETandUNACKandOK13View only events with status UNACK-SET, UNACK or OK
CDPEventList::statusUNACKSETandUNACKandSET14View only events with status UNACK-SET, UNACK or SET

enum CDPEventList::TimeStampFormat

This enum type specifies in which format the timestamps will be shown:

ConstantValueDescription
CDPEventList::CDP_DOS_Americanstatic_cast<int> ( CDPMeta::Type::Time::Format::DOS_American )"01/17/11 08:45:32.510"
CDPEventList::CDP_UNIXstatic_cast<int> ( CDPMeta::Type::Time::Format::UNIX )"Mon Jan 17 08:45:32.510 2011"
CDPEventList::CDP_DOS_American_No_Msstatic_cast<int> ( CDPMeta::Type::Time::Format::DOS_American_No_Ms )"01/17/11 08:45:32"
CDPEventList::CDP_DOS_American_Datestatic_cast<int> ( CDPMeta::Type::Time::Format::DOS_American_Date )"01/17/11"
CDPEventList::CDP_TimeOfDaystatic_cast<int> ( CDPMeta::Type::Time::Format::TimeOfDay )"08:45:32.510"
CDPEventList::CDP_TimeOfDay_No_Msstatic_cast<int> ( CDPMeta::Type::Time::Format::TimeOfDay_No_Ms )"08:45:32"
CDPEventList::CDP_UNIX_No_Msstatic_cast<int> ( CDPMeta::Type::Time::Format::UNIX_No_Ms )"Mon Jan 17 08:45:32 2011"
CDPEventList::CDP_UNIX_No_TimeOfDaystatic_cast<int> ( CDPMeta::Type::Time::Format::UNIX_No_TimeOfDay )"Mon Jan 17 2011"
CDPEventList::CDP_ISO_8601_With_Msstatic_cast<int> ( CDPMeta::Type::Time::Format::ISO_8601_With_Ms )"2011-01-17 08:45:32.510"
CDPEventList::CDP_ISO_8601static_cast<int> ( CDPMeta::Type::Time::Format::ISO_8601 )"2011-01-17 08:45:32"
CDPEventList::CDP_ISO_8601_No_TimeOfDaystatic_cast<int> ( CDPMeta::Type::Time::Format::ISO_8601_No_TimeOfDay )"2011-01-17"
CDPEventList::CDP_ISO_8601_With_Ms_ShortYearstatic_cast<int> ( CDPMeta::Type::Time::Format::ISO_8601_With_Ms_ShortYear )"11-01-17 08:45:32.510"
CDPEventList::CDP_ISO_8601_ShortYearstatic_cast<int> ( CDPMeta::Type::Time::Format::ISO_8601_ShortYear )"11-01-17 08:45:32"
CDPEventList::CDP_ISO_8601_No_TimeOfDay_ShortYearstatic_cast<int> ( CDPMeta::Type::Time::Format::ISO_8601_No_TimeOfDay_ShortYear )"11-01-17"
CDPEventList::CDP_Day_TimeShortMsstatic_cast<int> ( CDPMeta::Type::Time::Format::Day_TimeShortMs )"17. 08:45:32.5"

Property Documentation

addEventsFront : bool

This property holds the bool value which decides if new events shall be added in the end (if false) or in front (if true). By default it is set to .

Access functions:

bool addEventsFront() const
void setAddEventsFront(bool addEventsFront)

cdpRoutings : QStringList

This property holds cDP object full names the events should be retrieved from (and from the child objects under them), while running in Web UI. When left empty, then all events from all applications of the system will be shown when the CDPEventList is running in the Web UI.

Access functions:

QStringList cdpRoutings() const
void setCdpRoutings(const QStringList &cdpRoutings)

coloursInList : QString

This property holds which text/background colours to use in list, unless svg is used. skipSvgRowBg and skipSvgRowTextColor must be set if these colours shall be used.

This property can be set from the 'Colour selection'-menu/dialog, by right-clicking in header. The property should be set from the dialog, but it is constructed like this: Semicolon-separated info, ended with semicolon: first number is 0 (All columns) or 1 (only Status and Level columns), then ';', then 26 semicolon-separated colour-values (hex) for different combinations of level and status, in this sequence: ERROR_UnackSet_TC;ERROR_Unack_TC;ERROR_Set_TC;ERROR_OK_TC; WARNING_UnackSet_TC;WARNING_Unack_TC;WARNING_Set_TC;WARNING_OK_TC; NOTIFY_UnackSet_TC;NOTIFY_Unack_TC;NOTIFY_Set_TC;NOTIFY_OK_TC; ERROR_UnackSet_BC;ERROR_Unack_BC;ERROR_Set_BC;ERROR_OK_BC; WARNING_UnackSet_BC;WARNING_Unack_BC;WARNING_Set_BC;WARNING_OK_BC; NOTIFY_UnackSet_BC;NOTIFY_Unack_BC;NOTIFY_Set_BC;NOTIFY_OK_BC; OtherColumns_TC;OtherColumns_BC;

Note: Applications that include both light and dark themes might require different colors in the list depending on the color palette in the themes. In such a scenario, we could either select colors that would look good in both themes, or we could use CSS to change the coloursInList property depending on the current theme. As the event list overrides the styleSheet property by default, we might have to set the styleSheet in a parent or top-level widget. Have a look at the Container widget for details regarding CSS styling.

Access functions:

QString coloursInList() const
void setColoursInList(const QString &colourSelections)

columnHeaders : QString

This property holds which columns (text in column-header) to be shown in the list, and indirectly which event-values to show.

This property can be set from the 'Column selection'-menu/dialog (and 'Column Width selection'-menu/dialog), by right-clicking in header. The property should be set from the dialog, but it is constructed like this:

Semicolon-separated info, ended with semicolon:
Visible;Visible;NotSelected;NotSelected;
Between 'Visible;' and 'Visible;', the columns to be shown should be listed,
while between 'NotSelected;' and 'NotSelected;', the columns not to be shown
should be listed.
The column info should be listed like this:
N=<text-string in header>;V=number in range [0..NUMB_EVENTINFOVARIABLES-1]
corresponding to variable in EventInfoVariable;W=width-number;|
Notice the end-character '|'. The width-number is used if columnWidthAdjMode
is Fixed or Interactive (not if Auto).
Example for columns-info: N=Date,Time Event;V=4;W=166;|N=Status;V=2;W=89;|
N=Name;V=5;W=148;|N=Level;V=9;W=79;|

Note: To change the text that shows in column-header, you must edit the text after 'N=' directly in this property.

Access functions:

QString columnHeaders() const
void setColumnHeaders(const QString &columnHeadersSeparated)

See also columnWidthAdjMode.

columnSorted : EventInfoVariable

This property holds value which decides which column the list is sorted by. Default is CDPEventList::level.

Access functions:

CDPEventList::EventInfoVariable columnSorted() const
void setColumnSorted(CDPEventList::EventInfoVariable newColumnSorted)

columnWidthAdjMode : AdjustmentMode

This property holds the column width adjustment mode (Auto/Fixed/Interactive).

This property can be set from the 'Column Width selection'-menu/dialog, by right-clicking in header. In this dialog, you may also set the width-numbers used in CDPEventList::columnHeaders-property.

Property-valueDescription
AutoAuto resize to contents, given width in pixel will be ignored.
FixedGiven width in pixel will be set, not possible to drag column-width.
InteractiveGiven width in pixel will be set, user can drag column-width.

For the last column, QHeaderView::Stretch will be applied, causing automatically resize the section to fill the available space.

Access functions:

CDPEventList::AdjustmentMode columnWidthAdjMode() const
void setColumnWidthAdjMode(CDPEventList::AdjustmentMode newColumnWidthAdjMode)

See also columnHeaders.

enableEventCodeFiltering : bool

This property holds the bool value deciding if there will be filtering on event codes or not.

This property can be set from the 'EventCodes to view'-menu/dialog, by right-clicking in header.

Access functions:

bool enableEventCodeFiltering() const
void setEnableEventCodeFiltering(bool enableEventCodeFiltering)

See also eventCodesToViewFilterValue().

eventCodesToViewFilterValue : uint

This property holds filter-value(s) for which events (with matching bits in eventCode) will be shown.

This property can be set from the 'EventCodes to view'-menu/dialog, by right-clicking in header. If value is 0x00000000 or 0xFFFFFFFF, there will be no filtering (all events will be shown). CDPEventList::enableEventCodeFiltering must be true if any filtering shall be done.

Access functions:

unsigned int eventCodesToViewFilterValue() const
void setEventCodesToViewFilterValue(unsigned int eventCodesToViewFilterValue)

See also enableEventCodeFiltering().

eventIdSortOrder : Qt::SortOrder

This property holds sortorder of column eventId as second sorting, when columnSorted is timestamp/timestampLocal and time is equal. Default sortorder is Qt::DescendingOrder.

Is used if the list is sorted by the column timestamp or timestampLocal: When two lines have equal time, the sorting sequence is decided by the order of the eventId.

Access functions:

Qt::SortOrder eventIdSortOrder() const
void setEventIdSortOrder(Qt::SortOrder newSortOrder)

See also columnSorted.

eventInfoProperties : QString

This property holds decides which extra property-values will be requested and shown when opening the EventInfoDialog.

eventInfoProperties are semicolon-separated, and they must be set in Design-mode. The property and values are typically found in the CDPAlarm-lines in the xml-files, and if the property is listed in the eventInfoProperties semicolon-separated string, the property and the value will be shown when opening the EventInfoDialog. An example of this property-string could be: "PossibleCause1;PossibleCause2;PossibleCause3;PossibleSolution1;PossibleSolution2;PossibleSolution3;". A CDPAlarm could then contain e.g.: PossibleCause1="..." PossibleCause2="..." PossibleSolution1="..." PossibleSolution2="...".

To open the EventInfoDialog (only if listType is not database), you have several possibilities:

  • The slot showEventInfoDialog() will open the EventInfoDialog
  • Right click on an event/alarm andf choose 'Event Details...' from the context menu
  • If the property openEventInfoDialogByClick is true, the EventInfoDialog will open when clicking on an event/alrm in the list

Access functions:

QString eventInfoProperties() const
void setEventInfoProperties(const QString &eventInfoPropertiesSemiColonSeparated)

See also openEventInfoDialogByClick.

fontFamily : QString

This property holds font family value.

Default is Arial. Is not set if empty. If fontfamily from svg is wanted to be used, let this property be empty.

Access functions:

QString fontFamily() const
void setFontFamily(const QString &newFontFamily)

fontItalic : bool

This property holds value which decides if italic font will be used or not. By default it is set to .

Access functions:

bool fontItalic() const
void setFontItalic(bool useFontItalic)

fontSize : int

This property holds font size value.

Must be > 0. Is not set if illegal value (default is -1, meaning not set). If fontsize from svg is wanted to be used, let this property have illegal value, like -1.

Access functions:

int fontSize() const
void setFontSize(int newFontSize)

fontWeight : int

This property holds font weight value.

enum QFont::Weight, 0=ultralight, 99=extremely black, legal values [0..99]. Is not set if illegal value. Default value is -1, meaning not set.

Access functions:

int fontWeight() const
void setFontWeight(int newFontWeight)

groupsAvailable : QString

This property holds only other group-names available but not selected into the CDPEventList::groupsToView-property.

This property can be set from the 'Groups to view'-menu/dialog, by right-clicking in header.

Access functions:

QString groupsAvailable() const
void setGroupsAvailable(const QString &groupsAvailableSemiColonSeparated)

groupsToView : QString

This property holds the value(s) of how and if there will be filtering on groups or not.

Group-names are semicolon-separated. If empty or 'All' is found, there will be no filtering. Otherwise, only events belonging to one or more of the specified groups will be shown. This property can be set from the 'Groups to view'-menu/dialog, by right-clicking in header.

Access functions:

QString groupsToView() const
void setGroupsToView(const QString &groupsToViewSemiColonSeparated)

levelsToView : LevelsToView

This property holds the value(s) of how and if there will be filtering on levels or not.

This property (enum CDPEventList::LevelsToView) can be set from the 'Levels to view'-menu/dialog, by right-clicking in header.

Access functions:

CDPEventList::LevelsToView levelsToView() const
void setLevelsToView(CDPEventList::LevelsToView newLevelsToView)

lineHeight : int

This property holds line height value. Default is 30.

Access functions:

int lineHeight() const
void setLineHeight(int newLineHeight)

listType : ListModelType

This property holds what type of events the list will show.

Property-valueDescription
activeShows only active alarms, which means status Set and/or Unack. There is no limit in number of events shown.
historyShows all events, except events where EVENT_REPRISE-bit is set in eventCode. Will only keep up to a limit (Parameter MaxHistoryEventListSize) of events in memory.
databaseSame as history, but stores the events to database in addition. The list shown may be limited in size by the property linesToLoadFromDB.

Access functions:

CDPEventList::ListModelType listType() const
void setListType(CDPEventList::ListModelType type)

minimumColumnWidth : int

This property holds minimum column width value. Default is 30.

Access functions:

int minimumColumnWidth() const
void setMinimumColumnWidth(int newMinimumColumnWidth)

multiSelection : bool

This property holds the bool value which decides if multiple rows can be selected or not. If true, when the user selects an item in the usual way, the selection status of that item is toggled and the other items are left alone. By default it is set to .

Access functions:

bool multiSelection() const
void setMultiSelection(bool multiSelection)

openEventInfoDialogByClick : bool

This property holds the bool value which decides if clicking on and event/alarm in the list will open the EventInfodialog or not.

Note: By default this property is set to false.

Access functions:

bool openEventInfoDialogByClick() const
void setOpenEventInfoDialogByClick(bool open)

See also eventInfoProperties.

pixmapStatusLevelOkErr : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Ok and level is Error.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelOkErr() const
void setPixmapStatusLevelOkErr(const QString &pixmapFile)

pixmapStatusLevelOkNot : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Ok and level is Notify.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelOkNot() const
void setPixmapStatusLevelOkNot(const QString &pixmapFile)

pixmapStatusLevelOkWar : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Ok and level is Warning.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelOkWar() const
void setPixmapStatusLevelOkWar(const QString &pixmapFile)

pixmapStatusLevelSetErr : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Set and level is Error.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelSetErr() const
void setPixmapStatusLevelSetErr(const QString &pixmapFile)

pixmapStatusLevelSetNot : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Set and level is Notify.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelSetNot() const
void setPixmapStatusLevelSetNot(const QString &pixmapFile)

pixmapStatusLevelSetWar : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Set and level is Warning.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelSetWar() const
void setPixmapStatusLevelSetWar(const QString &pixmapFile)

pixmapStatusLevelUnErr : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Unack and level is Error.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelUnErr() const
void setPixmapStatusLevelUnErr(const QString &pixmapFile)

pixmapStatusLevelUnNot : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Unack and level is Notify.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelUnNot() const
void setPixmapStatusLevelUnNot(const QString &pixmapFile)

pixmapStatusLevelUnSetErr : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Unack-Set and level is Error.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelUnSetErr() const
void setPixmapStatusLevelUnSetErr(const QString &pixmapFile)

pixmapStatusLevelUnSetNot : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Unack-Set and level is Notify.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelUnSetNot() const
void setPixmapStatusLevelUnSetNot(const QString &pixmapFile)

pixmapStatusLevelUnSetWar : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Unack-Set and level is Warning.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelUnSetWar() const
void setPixmapStatusLevelUnSetWar(const QString &pixmapFile)

pixmapStatusLevelUnWar : QString

This property holds value which decides if and which pixmap-symbol to show in column statuslevel (enum EventInfoVariable) when status is Unack and level is Warning.

If property is empty (default), no pixmap will be shown. The different combinations of status and level are found in enum StatusLevel. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Access functions:

QString pixmapStatusLevelUnWar() const
void setPixmapStatusLevelUnWar(const QString &pixmapFile)

pixmapStatusOk : QString

This property holds value which decides if and which pixmap-symbol to show in column status (enum EventInfoVariable) when status is Ok.

If property is empty (default), no pixmap will be shown. Then the status text will be shown in the status column. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Note: If you specify a pixmap to be shown, the property textAlsoPixmapStatus decides if both pixmap and text shall be shown, or only pixmap.

Access functions:

QString pixmapStatusOk() const
void setPixmapStatusOk(const QString &pixmapFile)

See also textAlsoPixmapStatus.

pixmapStatusSet : QString

This property holds value which decides if and which pixmap-symbol to show in column status (enum EventInfoVariable) when status is Set.

If property is empty (default), no pixmap will be shown. Then the status text will be shown in the status column. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Note: If you specify a pixmap to be shown, the property textAlsoPixmapStatus decides if both pixmap and text shall be shown, or only pixmap.

Access functions:

QString pixmapStatusSet() const
void setPixmapStatusSet(const QString &pixmapFile)

See also textAlsoPixmapStatus.

pixmapStatusUnack : QString

This property holds value which decides if and which pixmap-symbol to show in column status (enum EventInfoVariable) when status is Unack.

If property is empty (default), no pixmap will be shown. Then the status text will be shown in the status column. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Note: If you specify a pixmap to be shown, the property textAlsoPixmapStatus decides if both pixmap and text shall be shown, or only pixmap.

Access functions:

QString pixmapStatusUnack() const
void setPixmapStatusUnack(const QString &pixmapFile)

See also textAlsoPixmapStatus.

pixmapStatusUnackSet : QString

This property holds value which decides if and which pixmap-symbol to show in column status (enum EventInfoVariable) when status is Unack-Set.

If property is empty (default), no pixmap will be shown. Then the status text will be shown in the status column. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file.

Note: If you specify a pixmap to be shown, the property textAlsoPixmapStatus decides if both pixmap and text shall be shown, or only pixmap.

Access functions:

QString pixmapStatusUnackSet() const
void setPixmapStatusUnackSet(const QString &pixmapFile)

See also textAlsoPixmapStatus.

pixmapsEventCodes : QString

This property holds value which decides if pixmaps should be loaded in the eventCode (enum EventInfoVariable) column or not.

If property is empty (default), no pixmap will be shown. Then only the eventCode text will be shown in the eventCode column. Different files can be specified for each of the Eventcodes listed (you may add as many eventcodes as wanted), telling which pixmap to show, correspondingly. The files (bmp,gif,jpg,jpeg,png,pbm,pgm,ppm,xbm,xpm) must be specified with full path/relative to run-directory/or begin with ':/' to indicate that file is found in the resource file. The value of the eventcode must match exactly. The property is semicolon-separated, ended with semicolon. Example: "0x00000001;D:\Projects\pixmaps\alarmSet32x32.png;0x00000004;D:\Projects\pixmaps\alarmAck32x32.png;"

Note: If you specify a pixmap to be shown, the property textAlsoPixmapsEventCodes decides if both pixmap and text shall be shown, or only pixmap.

Access functions:

QString pixmapsEventCodes() const
void setPixmapsEventCodes(const QString &eventcodesPixmapsSemiColonSeparated)

See also textAlsoPixmapsEventCodes.

popUpWarnings : bool

This property holds if pop up warnings are allowed in case of error. By default it is set to .

Access functions:

bool popUpWarnings() const
void setPopUpWarnings(bool enabled)

showGrid : bool

Access functions:

bool showGrid() const
void setShowGrid(bool grid)

showHorizontalHeader : bool

Access functions:

bool showHorizontalHeader() const
void setShowHorizontalHeader(bool horizontalHeader)

skipSvgRowBg : bool

This property holds the bool value which decides if Background colour is fetched from svg or not. If set, Background colour is fetched from CDPEventList::coloursInList property instead.

Access functions:

bool skipSvgRowBg() const
void setSkipSvgRowBg(bool skip)

See also coloursInList.

skipSvgRowTextColor : bool

This property holds the bool value which decides if Text colour is fetched from svg or not. If set, Text colour is fetched from CDPEventList::coloursInList property instead.

Access functions:

bool skipSvgRowTextColor() const
void setSkipSvgRowTextColor(bool skip)

See also coloursInList.

sortOrder : Qt::SortOrder

This property holds sortorder of column specified in columnSorted. Default Qt::AscendingOrder.

Access functions:

Qt::SortOrder sortOrder() const
void setSortOrder(Qt::SortOrder newSortOrder)

See also columnSorted.

statusToView : StatusToView

This property holds the value(s) of how and if there will be filtering on status or not.

This property (enum CDPEventList::StatusToView) can be set from the 'Status to view'-menu/dialog, by right-clicking in header.

Access functions:

CDPEventList::StatusToView statusToView() const
void setStatusToView(CDPEventList::StatusToView newStatusToView)

svgFile : const QString

This property holds the name of svg-file to be used for configuration. Default value from plugin is .

Access functions:

virtual QString svgFile() const

textAlsoPixmapStatus : bool

This property holds bool-value which decides if text shall be shown in addition to pixmap in column status (enum EventInfoVariable) (if pixmap is specified). By default it is set to .

Access functions:

bool textAlsoPixmapStatus() const
void setTextAlsoPixmapStatus(bool textAlso)

See also pixmapStatusUnackSet, pixmapStatusUnack, pixmapStatusSet, and pixmapStatusOk.

textAlsoPixmapsEventCodes : bool

This property holds bool-value which decides if text shall be shown in addition to pixmap in column eventCode (enum EventInfoVariable) (if pixmap is specified). By default it is set to .

Access functions:

bool textAlsoPixmapsEventCodes() const
void setTextAlsoPixmapsEventCodes(bool textAlso)

See also pixmapsEventCodes.

timeStampFormat : TimeStampFormat

This property holds the value which specifies in which format the the time/date is shown in the timestamp/timestampLocal column. Can be set from the 'Timestamp Format'-menu/dialog, by right-clicking in header.

Access functions:

CDPEventList::TimeStampFormat timeStampFormat() const
void setTimeStampFormat(CDPEventList::TimeStampFormat tsFormat)

timestampSortOrder : Qt::SortOrder

This property holds sortorder of column timestamp/timestampLocal as second sorting, when columnSorted is level and level is equal. Default sortorder is Qt::AscendingOrder.

Is used if the list is sorted by the column level: When two lines have equal level, the sorting sequence is decided by the order of the column timestamp or timestampLocal (decided by the property useTimestampLocal).

Access functions:

Qt::SortOrder timestampSortOrder() const
void setTimestampSortOrder(Qt::SortOrder newSortOrder)

See also columnSorted and useTimestampLocal.

useTimestampLocal : bool

This property holds value which decides if timestamp or timestampLocal is used as second sorting when columnSorted is level, and the events have equal level.

Access functions:

bool useTimestampLocal() const
void setUseTimestampLocal(bool useTimestampLocal)

See also columnSorted and timestampSortOrder.

userCanChangeSortColumn : bool

This property holds value which decides if user is allowed to change which column to sort by.

If set to true, user can click on column-header causing list to be sorted by that column. If false, clicking have no effect (list is sorted as given by properties.

Access functions:

bool userCanChangeSortColumn() const
void setUserCanChangeSortColumn(bool sortColumnChangable)

See also columnSorted.

version : QString

This property holds the LIB_VERSION. CDPEventList::setVersion doesn't do anything.

Access functions:

QString version() const
void setVersion(QString newVersion)

viewColourSelectionMenu : bool

This property holds the bool value which decides if the 'Colour selection'-menu/dialog is listed/available when right-clicking in header.

Note: When right-clicking in Design mode, the menu is always available. This property has only influence when running your application. Default true.

Access functions:

bool viewColourSelectionMenu() const
void setViewColourSelectionMenu(bool view)

viewColumnWidthSelectionMenu : bool

This property holds the bool value which decides if the 'Column Width selection'-menu/ dialog is listed/available when right-clicking in header.

Note: When right-clicking in Design mode, the menu is always available. This property has only influence when running your application. Default true.

Access functions:

bool viewColumnWidthSelectionMenu() const
void setViewColumnWidthSelectionMenu(bool view)

viewEventCodesToViewMenu : bool

This property holds the bool value which decides if the 'EventCodes to view'-menu/dialog is listed/available when right-clicking in header.

Note: When right-clicking in Design mode, the menu is always available. This property has only influence when running your application. Default true.

Access functions:

bool viewEventCodesToViewMenu() const
void setViewEventCodesToViewMenu(bool view)

viewFilterColumnMenu : bool

This property holds the bool value which decides if the 'Filter column'-menu/dialog is listed/available when right-clicking in header.

Note: When right-clicking in Design mode, the menu is always available. This property has only influence when running your application. Default true.

Access functions:

bool viewFilterColumnMenu() const
void setViewFilterColumnMenu(bool view)

viewGroupsToViewMenu : bool

This property holds the bool value which decides if the 'Groups to view'-menu/dialog is listed/available when right-clicking in header.

Note: When right-clicking in Design mode, the menu is always available. This property has only influence when running your application. Default true.

Access functions:

bool viewGroupsToViewMenu() const
void setViewGroupsToViewMenu(bool view)

viewLevelsToViewMenu : bool

This property holds the bool value which decides if the 'Levels to view'-menu/dialog is listed/available when right-clicking in header.

Note: When right-clicking in Design mode, the menu is always available. This property has only influence when running your application. Default true.

Access functions:

bool viewLevelsToViewMenu() const
void setViewLevelsToViewMenu(bool view)

viewMenuColumnSelectionMenu : bool

This property holds the bool value which decides if the 'Column selection'-menu/dialog is listed/available when right-clicking in header.

Note: This property has only influence when running your application. Default true.

Access functions:

bool viewMenuColumnSelectionMenu() const
void setViewMenuColumnSelectionMenu(bool view)

viewProvidersGroupsSelectionMenu : bool

This property holds the bool value which decides if the 'Providers and Groups selection'- menu/dialog is listed/available when right-clicking in header.

Note: When right-clicking in Design mode, the menu is always available. This property has only influence when running your application. Default true.

Access functions:

bool viewProvidersGroupsSelectionMenu() const
void setViewProvidersGroupsSelectionMenu(bool view)

viewStatusToViewMenu : bool

This property holds the bool value which decides if the 'Status to view'-menu/dialog is listed/available when right-clicking in header.

Note: When right-clicking in Design mode, the menu is always available. This property has only influence when running your application. Default true.

Access functions:

bool viewStatusToViewMenu() const
void setViewStatusToViewMenu(bool view)

viewTimestampFormatMenu : bool

This property holds the bool value which decides if the 'Timestamp Format'-menu/dialog is listed/available when right-clicking in header.

Note: When right-clicking in Design mode, the menu is always available. This property has only influence when running your application. Default true.

Access functions:

bool viewTimestampFormatMenu() const
void setViewTimestampFormatMenu(bool view)

Member Function Documentation

CDPEventList::CDPEventList(QWidget *parent = 0)

Default constructs an instance of CDPEventList.

CDPEventList::CDPEventList(DatabaseThreadHandler *handler, QWidget *parent = 0)

Default constructs an instance of CDPEventList.

[virtual] CDPEventList::~CDPEventList()

Destroys the instance of CDPEventList. The destructor is virtual.

[virtual] void CDPEventList::ConfigureAll(void *formEditor)

[virtual] std::string CDPEventList::ConvertDBLogStampToEventFormat(QString strLogStampDB, int CDPTimeFormat)

[virtual slot] void CDPEventList::EmitActiveAlarmSignals()

[virtual slot] void CDPEventList::EmitFilteredActiveAlarmSignals()

[virtual slot] void CDPEventList::FilterColumn(EeventSubscr::EventInfoVariable column)

[virtual slot] void CDPEventList::FilterEventCode(bool enableFilterEventCodesGUI, unsigned int filterValue, bool saveToXML)

[virtual slot] void CDPEventList::FilterGroups(const GroupList &AvailableGroupsList, const GroupList &GroupsToViewList, bool saveToXML)

[virtual slot] void CDPEventList::FilterLevel(int filterValue, bool saveToXML)

[virtual slot] void CDPEventList::FilterStatus(int filterValue, bool saveToXML)

[virtual] EventSubscriberModel *CDPEventList::GetEventSubscriberModel()

[virtual] SortFilterProxyModel *CDPEventList::GetSortFilterProxyModel()

[virtual slot] void CDPEventList::HeaderViewSortIndicatorChanged(int logicalIndex, Qt::SortOrder order)

[virtual] void CDPEventList::SetFlag_PossibleToSendCommands(bool possible)

[virtual] void CDPEventList::SetTextTranslatorInterfacePointer(TextTranslatorInterface *textTranslInterface)

[virtual slot] void CDPEventList::ackAll()

A signal from e.g. a button should be connected to this slot when you want to Ack all shown alarms in alarmlist which have status Unack, not including hidden/filtered alarms.

[virtual slot] void CDPEventList::ackAllHiddenIncluded()

A signal from e.g. a button should be connected to this slot when you want to Ack all alarms in alarmlist which have status Unack, including hidden/filtered alarms.

[virtual slot] void CDPEventList::ackSelected()

A signal from e.g. a button should be connected to this slot when you want to Ack currently selected alarm(s) in alarmlist.

[virtual slot] void CDPEventList::ackSelectedAndVisible()

A signal from e.g. a button should be connected to this slot when you want to Ack currently selected alarm(s) in alarmlist. The alarm(s) must also be visible in the viewport. Non-visible alarm(s) will not be Acknowledged.

[signal] void CDPEventList::alarmsActiveChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredActiveChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredSetAckedChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredSetAckedErrorChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredSetAckedNotifyChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredSetAckedWarningChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredSetChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredUnackChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredUnackNotSetChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredUnackNotSetErrorChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredUnackNotSetNotifyChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredUnackNotSetWarningChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredUnackSetChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredUnackSetErrorChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredUnackSetNotifyChanged(int noAlarms)

[signal] void CDPEventList::alarmsFilteredUnackSetWarningChanged(int noAlarms)

[signal] void CDPEventList::alarmsSetAckedChanged(int noAlarms)

[signal] void CDPEventList::alarmsSetAckedErrorChanged(int noAlarms)

[signal] void CDPEventList::alarmsSetAckedNotifyChanged(int noAlarms)

[signal] void CDPEventList::alarmsSetAckedWarningChanged(int noAlarms)

[signal] void CDPEventList::alarmsSetChanged(int noAlarms)

[signal] void CDPEventList::alarmsUnackChanged(int noAlarms)

[signal] void CDPEventList::alarmsUnackNotSetChanged(int noAlarms)

[signal] void CDPEventList::alarmsUnackNotSetErrorChanged(int noAlarms)

[signal] void CDPEventList::alarmsUnackNotSetNotifyChanged(int noAlarms)

[signal] void CDPEventList::alarmsUnackNotSetWarningChanged(int noAlarms)

[signal] void CDPEventList::alarmsUnackSetChanged(int noAlarms)

[signal] void CDPEventList::alarmsUnackSetErrorChanged(int noAlarms)

[signal] void CDPEventList::alarmsUnackSetNotifyChanged(int noAlarms)

[signal] void CDPEventList::alarmsUnackSetWarningChanged(int noAlarms)

[virtual protected] void CDPEventList::mouseReleaseEvent(QMouseEvent *ev)

[override virtual] void CDPEventList::processSvgFile(QString svg)

IQtCDP *CDPEventList::qtCDP()

[virtual slot] void CDPEventList::selectAndAckVisible()

A signal from e.g. a button should be connected to this slot when you want to select all visible alarms in the viewport of the alarmlist, and then ack them. This slot will first call selectVisible(), and then ackSelectedAndVisible().

[virtual slot] void CDPEventList::selectVisible()

A signal from e.g. a button should be connected to this slot when you want to select all visible alarms in the viewport of the alarmlist.

[override virtual] void CDPEventList::setIQtCDPPointer(IQtCDP *pIQtCDP)

[override virtual slot] void CDPEventList::setTimeOffsetSecs(double offsetInSec)

void CDPEventList::setViewRefreshFromDatabase(bool view)

See also viewRefreshFromDatabase().

void CDPEventList::setViewSelectDatabaseFileMenu(bool view)

See also viewSelectDatabaseFileMenu().

[override virtual slot] void CDPEventList::setWidgetFont(const QString &font)

[override virtual slot] void CDPEventList::setWidgetTheme(const QString &theme)

[virtual protected] void CDPEventList::showEvent(QShowEvent *arg)

[virtual slot] void CDPEventList::showEventInfoDialog()

QSize CDPEventList::sizeHint() const

double CDPEventList::timerInterval()

bool CDPEventList::viewRefreshFromDatabase() const

See also setViewRefreshFromDatabase().

bool CDPEventList::viewSelectDatabaseFileMenu() const

See also setViewSelectDatabaseFileMenu().

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2024 CDP Technologies. Privacy and cookie policy.

Return to top