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
a2686d9b
Commit
a2686d9b
authored
Apr 25, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XttGraph and XttMultview options HideDecorations and Dialog added
parent
15f16cdd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
66 additions
and
2 deletions
+66
-2
src/wbl/pwrb/src/pwrb_td_multiviewoptionsmask.wb_load
src/wbl/pwrb/src/pwrb_td_multiviewoptionsmask.wb_load
+20
-0
src/wbl/pwrb/src/pwrb_td_xttgraphoptionsmask.wb_load
src/wbl/pwrb/src/pwrb_td_xttgraphoptionsmask.wb_load
+20
-0
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
+9
-0
xtt/lib/xtt/gtk/xtt_multiview_gtk.cpp
xtt/lib/xtt/gtk/xtt_multiview_gtk.cpp
+9
-0
xtt/lib/xtt/src/xtt_xnav.h
xtt/lib/xtt/src/xtt_xnav.h
+3
-1
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+5
-1
No files found.
src/wbl/pwrb/src/pwrb_td_multiviewoptionsmask.wb_load
View file @
a2686d9b
...
...
@@ -111,6 +111,26 @@ SObject pwrb:Type
Attr Value = 64
EndBody
EndObject
!/**
! Decorations.
!*/
Object HideDecorations $Bit
Body SysBody
Attr PgmName = "HideDecorations"
Attr Text = "HideDecorations"
Attr Value = 128
EndBody
EndObject
!/**
! Dialog window.
!*/
Object Dialog $Bit
Body SysBody
Attr PgmName = "Dialog"
Attr Text = "Dialog"
Attr Value = 256
EndBody
EndObject
EndObject
EndSObject
...
...
src/wbl/pwrb/src/pwrb_td_xttgraphoptionsmask.wb_load
View file @
a2686d9b
...
...
@@ -121,6 +121,26 @@ SObject pwrb:Type
Attr Value = 64
EndBody
EndObject
!/**
! Decorations.
!*/
Object HideDecorations $Bit
Body SysBody
Attr PgmName = "HideDecorations"
Attr Text = "HideDecorations"
Attr Value = 128
EndBody
EndObject
!/**
! Dialog window.
!*/
Object Dialog $Bit
Body SysBody
Attr PgmName = "Dialog"
Attr Text = "Dialog"
Attr Value = 256
EndBody
EndObject
EndObject
EndSObject
...
...
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
View file @
a2686d9b
...
...
@@ -332,6 +332,15 @@ XttGeGtk::XttGeGtk( GtkWidget *xg_parent_wid, void *xg_parent_ctx, const char *x
gtk_window_set_geometry_hints
(
GTK_WINDOW
(
toplevel
),
GTK_WIDGET
(
toplevel
),
&
geometry
,
GDK_HINT_ASPECT
);
if
(
options
&
ge_mOptions_HideDecorations
)
gtk_window_set_decorated
(
GTK_WINDOW
(
toplevel
),
FALSE
);
if
(
options
&
ge_mOptions_Dialog
)
{
gtk_window_set_type_hint
(
GTK_WINDOW
(
toplevel
),
GDK_WINDOW_TYPE_HINT_DIALOG
);
gtk_widget_set_size_request
(
GTK_WIDGET
(
toplevel
),
window_width
,
window_height
);
gtk_window_set_resizable
(
GTK_WINDOW
(
toplevel
),
FALSE
);
}
g_signal_connect
(
toplevel
,
"delete_event"
,
G_CALLBACK
(
delete_event
),
this
);
g_signal_connect
(
toplevel
,
"destroy"
,
G_CALLBACK
(
destroy_event
),
this
);
g_signal_connect
(
toplevel
,
"focus-in-event"
,
G_CALLBACK
(
action_inputfocus
),
this
);
...
...
xtt/lib/xtt/gtk/xtt_multiview_gtk.cpp
View file @
a2686d9b
...
...
@@ -227,6 +227,15 @@ XttMultiViewGtk::XttMultiViewGtk( GtkWidget *mv_parent_wid, void *mv_parent_ctx,
gtk_window_set_geometry_hints
(
GTK_WINDOW
(
toplevel
),
GTK_WIDGET
(
toplevel
),
&
geometry
,
GDK_HINT_ASPECT
);
if
(
mv
.
Options
&
pwr_mMultiViewOptionsMask_HideDecorations
)
gtk_window_set_decorated
(
GTK_WINDOW
(
toplevel
),
FALSE
);
if
(
mv
.
Options
&
pwr_mMultiViewOptionsMask_Dialog
)
{
gtk_window_set_type_hint
(
GTK_WINDOW
(
toplevel
),
GDK_WINDOW_TYPE_HINT_DIALOG
);
gtk_widget_set_size_request
(
GTK_WIDGET
(
toplevel
),
window_width
,
window_height
);
gtk_window_set_resizable
(
GTK_WINDOW
(
toplevel
),
FALSE
);
}
g_signal_connect
(
toplevel
,
"delete_event"
,
G_CALLBACK
(
delete_event
),
this
);
g_signal_connect
(
toplevel
,
"destroy"
,
G_CALLBACK
(
destroy_event
),
this
);
g_signal_connect
(
toplevel
,
"focus-in-event"
,
G_CALLBACK
(
action_inputfocus
),
this
);
...
...
xtt/lib/xtt/src/xtt_xnav.h
View file @
a2686d9b
...
...
@@ -217,7 +217,9 @@ typedef enum {
ge_mOptions_Invisible
=
1
<<
4
,
ge_mOptions_Embedded
=
1
<<
5
,
ge_mOptions_IsMain
=
1
<<
6
,
ge_mOptions_HideCloseButton
=
1
<<
7
ge_mOptions_HideCloseButton
=
1
<<
7
,
ge_mOptions_HideDecorations
=
1
<<
8
,
ge_mOptions_Dialog
=
1
<<
9
}
ge_mOptions
;
class
XNav
;
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
a2686d9b
...
...
@@ -273,7 +273,7 @@ dcli_tCmdTable xnav_command_table[] = {
"/NAVIGATOR"
,
"/CENTER"
,
"/OBJECT"
,
"/NEW"
,
"/INSTANCE"
,
"/COLLECT"
,
"/FOCUS"
,
"/INPUTEMPTY"
,
"/MAIN"
,
"/ENTRY"
,
"/TITLE"
,
"/ACCESS"
,
"/CLASSGRAPH"
,
"/PARENT"
,
"/PWINDOW"
,
"/PINSTANCE"
,
"/BYPASS"
,
"/PINSTANCE"
,
"/BYPASS"
,
"/CLOSEBUTTON"
,
"/TARGET"
,
"/TRIGGER"
,
"/TYPE"
,
"/FTYPE"
,
"/FULLSCREEN"
,
"/MAXIMIZE"
,
"/FULLMAXIMIZE"
,
"/ICONIFY"
,
"/HIDE"
,
"/XPOSITION"
,
"/YPOSITION"
,
""
}
...
...
@@ -8579,6 +8579,10 @@ int XNav::exec_xttgraph( pwr_tObjid xttgraph, char *instance,
options
|=
ge_mOptions_FullMaximize
;
if
(
xttgraph_o
.
Options
&
pwr_mXttGraphOptionsMask_Iconify
)
options
|=
ge_mOptions_Iconify
;
if
(
xttgraph_o
.
Options
&
pwr_mXttGraphOptionsMask_HideDecorations
)
options
|=
ge_mOptions_HideDecorations
;
if
(
xttgraph_o
.
Options
&
pwr_mXttGraphOptionsMask_Dialog
)
options
|=
ge_mOptions_Dialog
;
open_graph
(
xttgraph_o
.
Title
,
action
,
scrollbars
,
menu
,
navigator
,
xttgraph_o
.
Width
,
...
...
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