Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
bbaa0d44
Commit
bbaa0d44
authored
Oct 08, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt multiwindow, pane, fix and table layout added
parent
01d7cb95
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
220 additions
and
67 deletions
+220
-67
src/wbl/pwrb/src/pwrb_c_a_multiviewelement.wb_load
src/wbl/pwrb/src/pwrb_c_a_multiviewelement.wb_load
+8
-2
src/wbl/pwrb/src/pwrb_c_xttmultiview.wb_load
src/wbl/pwrb/src/pwrb_c_xttmultiview.wb_load
+42
-8
src/wbl/pwrb/src/pwrb_td_multiviewlayoutenum.wb_load
src/wbl/pwrb/src/pwrb_td_multiviewlayoutenum.wb_load
+10
-0
xtt/lib/xtt/gtk/xtt_multiview_gtk.cpp
xtt/lib/xtt/gtk/xtt_multiview_gtk.cpp
+153
-57
xtt/lib/xtt/gtk/xtt_multiview_gtk.h
xtt/lib/xtt/gtk/xtt_multiview_gtk.h
+7
-0
No files found.
src/wbl/pwrb/src/pwrb_c_a_multiviewelement.wb_load
View file @
bbaa0d44
...
...
@@ -41,7 +41,7 @@ SObject pwrb:Class
! @Group Operator,NodeConfiguration
!
! Definition of an array element in a XttMultiView object, describing
! the content of
one part of
the view.
! the content of
a cell in
the view.
!
! @b See also
! @classlink XttMultiView pwrb_xttmultiview.html
...
...
@@ -68,8 +68,14 @@ SObject pwrb:Class
!/**
! Content type.
! - Graph A Ge graph.
! - ObjectGraph A Ge object or hierarchy graph.
(NYI)
! - ObjectGraph A Ge object or hierarchy graph.
! - AlarmList An alarm list
! - MultiView Another multiview specified with an XttMultiView object.
! - EvenList An event list
! - TrendCurve A trend curve specified with a DsTrend, DsTrendCurve or PlotGroup object.
! - FastCurve Not yet implemented.
! - SevHistory History curve specified with a SevHist, SevHistObject or PlotGroup object.
! - Video A video stream specified with an XttVideo object.
!*/
Object Type $Attribute 2
Body SysBody
...
...
src/wbl/pwrb/src/pwrb_c_xttmultiview.wb_load
View file @
bbaa0d44
...
...
@@ -41,18 +41,46 @@ SObject pwrb:Class
! @Group Operator,NodeConfiguration
! @Summary Defines the action of a pushbutton in the operator window
! The XttMultiView object defines a xtt window that is built by a number
! Ge graphs
and alarm windows
.
! Ge graphs
, alarm windows, curves other multiviews etc
.
! The window is structured as a table with rows and columns.
! The content and layout of each table cell is specified in the Action array.
! Each element in the action array correspons to a cell in the table where
! index 0 is the top cell in the first column, index 1 the second row in
! the first column etc.
!
! For ge graps the pwg-file for the graph is specified, and, if the graph
! is an object graph or hierarchy graph, also the object is specified.
! For alarm windows an alarm view can be specified in the Object attribute.
! Example Action array index for a multiview with 3 rows and 3 columns
! ----------------
! | 0 | 3 | 6 |
! ----------------
! | 1 | 4 | 7 |
! ----------------
! | 2 | 5 | 8 |
! ----------------
!
! The multiwiew are opened by the xtt command
! The type of window displayed in a cell is specified in Action[].Type.
!
! Graph
! Specify the pwg file in Action[].Action.
!
! ObjectGraph
! Specify the pwg file in Action[].Action and the instance object in Action[].Object[0].
!
! AlarmList and EventList
! Specify an AlarmView in the Action[]Object[0] attribute.
!
! MultiView
! Specify the name of the XttMultiView object in Actino[].Action.
!
! TrendCurve
! Specify the DsTrend, DsTrendCurve or PlotGroup object in Action[].Object[0].
!
! SevHistory
! Specify the SevHist, SevHistObject or PlotGroup object in Action[].Object[0].
!
! Video
! Specify the XttVideo object in Action.Object[0].
!
! The multiwiew is opened by the xtt command
!
! > open multiview 'object' [/width=] [/height=] [/xpos=] [/ypos=]
!
...
...
@@ -82,9 +110,15 @@ SObject pwrb:Class
EndObject
!/**
! Layout management.
! - Box
! - Fix (NYI)
! - Table (NYI)
! - Box The cells in each row is packed in horizontal boxes, and these boxes are
! then packed in a vertical box.
! - Fix Fix layout with position specified in X, Y and size in Width and Height.
! Column and row doesn't have any meaning and only specifies the number of cells.
! Not resizeable.
! - Pane The cells in each row is inserted in horizontal paned windows, and these
! Windows are then inserted in vertical paned windows. Maximum two rows and two
! columns are supported.
! - Table The cells are ordered in rows and columns. Not resizable.
!*/
Object Layout $Attribute 2
Body SysBody
...
...
src/wbl/pwrb/src/pwrb_td_multiviewlayoutenum.wb_load
View file @
bbaa0d44
...
...
@@ -79,6 +79,16 @@ SObject pwrb:Type
Attr Value = 2
EndBody
EndObject
!/**
! Pane layout.
!*/
Object Pane $Value
Body SysBody
Attr PgmName = "Pane"
Attr Text = "Pane"
Attr Value = 3
EndBody
EndObject
EndObject
EndSObject
...
...
xtt/lib/xtt/gtk/xtt_multiview_gtk.cpp
View file @
bbaa0d44
This diff is collapsed.
Click to expand it.
xtt/lib/xtt/gtk/xtt_multiview_gtk.h
View file @
bbaa0d44
...
...
@@ -60,6 +60,7 @@ class XttMultiViewGtk : public XttMultiView {
GtkWidget
*
exchange_widget
[
MV_SIZE
];
GtkWidget
*
box_widget
;
GtkWidget
*
toplevel
;
GtkWidget
*
col_widget
;
XttGeGtk
*
gectx
[
MV_SIZE
];
XttMultiViewGtk
*
mvctx
[
MV_SIZE
];
EvAlaGtk
*
sala
[
MV_SIZE
];
...
...
@@ -67,6 +68,12 @@ class XttMultiViewGtk : public XttMultiView {
XttTrendGtk
*
trend
[
MV_SIZE
];
XttSevHistGtk
*
sevhist
[
MV_SIZE
];
XttStreamGtk
*
strmctx
[
MV_SIZE
];
int
comp_width
[
MV_SIZE
];
int
comp_height
[
MV_SIZE
];
int
comp_x
[
MV_SIZE
];
int
comp_y
[
MV_SIZE
];
int
orig_width
;
int
orig_height
;
CoWowFocusTimerGtk
focustimer
;
XttMultiViewGtk
(
GtkWidget
*
parent_wid
,
void
*
parent_ctx
,
const
char
*
name
,
pwr_tAttrRef
*
aref
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment