Welcome, Guest
Username: Password: Remember me

TOPIC: Custom Widgets in the Ge

Custom Widgets in the Ge 10 years 9 months ago #6258

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3228
  • Thank you received: 518
  • Karma: 134
Another idea is to create some sort of AlarmTable object where the content of the alarm list is copied to a set of arrays and thus if available to subscribe to from Ge tables. The AlarmTable would contain arrays for alarm time, prio, text and event name, which can be displayed in table columns. The table can be customized with foreground, background and border color, scrollbars, time format etc. I would also want to have some sort of selection criteria in the AlarmTable object so you can choose to display alarms of a certain priority and from certain hierarchies as in the AlarmCategory objects. Another choice should be if acknowledged active alarm should be viewed or not.

/Claes
The administrator has disabled public write access.

Custom Widgets in the Ge 10 years 9 months ago #6261

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 134
  • Karma: 2
Hello Claes

And where would you fit another type say ge_mDynType1_AlarmTable in ge_dyn.h? because we have reached the limit of 32
  //! Dynamic types
  typedef enum {
    ...
    ...
    ge_mDynType1_AnalogText	= 1 << 23,
    ge_mDynType1_Table		= 1 << 24,
    ge_mDynType1_StatusColor   	= 1 << 25,
    ge_mDynType1_HostObject    	= 1 << 26,
    ge_mDynType1_DigSound    	= 1 << 27,
    ge_mDynType1_XY_Curve    	= 1 << 28,
    ge_mDynType1_DigCommand    	= 1 << 29,
    ge_mDynType1_Pie	    	= 1 << 30,
    ge_mDynType1_BarChart      	= 1 << 31
  } ge_mDynType1;

Perhaps 3 << 30 ?

Eduardo
Last Edit: 10 years 9 months ago by beloni.
The administrator has disabled public write access.

Custom Widgets in the Ge 10 years 9 months ago #6262

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3228
  • Thank you received: 518
  • Karma: 134
Hi Eduardo,

Actually there is an DynType2 that is the continuation of DynType1, but what I meant was that AlarmTable should be a database object, not a Ge object. In Ge the already existing Table should be used to show the content of the AlarmTable. The Table subscribes to array attributes and displays the content of one array in one column, so by copying alarmlist info into arrays in an AlarmTable object it would be possible to show them in a Table.

/Claes
The administrator has disabled public write access.

Custom Widgets in the Ge 10 years 9 months ago #6278

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 134
  • Karma: 2
Hi,

I don't know where to start. Do I have to create a new proview class for the AlarmTable?

Eduardo
The administrator has disabled public write access.

Custom Widgets in the Ge 10 years 9 months ago #6280

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3228
  • Thank you received: 518
  • Karma: 134
Hi Eduardo,

Yes, you have to create a new class in the pwrb class volume. This is a bit tricky as pwrb is one of the original class volumes that can't be edited with the class editor. Instead classes are defined with descriptions in text-files. I can create the class for you if you give me a day or to.

/Claes
The administrator has disabled public write access.

Custom Widgets in the Ge 10 years 9 months ago #6282

  • beloni
  • beloni's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 134
  • Karma: 2
Sure. Thank you!
The administrator has disabled public write access.
Time to create page: 12.450 seconds