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
44c43e96
Commit
44c43e96
authored
May 17, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt graph options for fullscreen, maximize, iconfiy added for command and XttGraph object
parent
fa44634f
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
198 additions
and
51 deletions
+198
-51
src/wbl/pwrb/src/pwrb_c_xttgraph.wb_load
src/wbl/pwrb/src/pwrb_c_xttgraph.wb_load
+14
-24
src/wbl/pwrb/src/pwrb_td_xttgraphoptionsmask.wb_load
src/wbl/pwrb/src/pwrb_td_xttgraphoptionsmask.wb_load
+112
-0
xtt/exe/rt_xtt/src/xtt_main.cpp
xtt/exe/rt_xtt/src/xtt_main.cpp
+1
-1
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
+10
-0
xtt/lib/xtt/gtk/xtt_ge_gtk.h
xtt/lib/xtt/gtk/xtt_ge_gtk.h
+1
-1
xtt/lib/xtt/gtk/xtt_xnav_gtk.cpp
xtt/lib/xtt/gtk/xtt_xnav_gtk.cpp
+3
-2
xtt/lib/xtt/gtk/xtt_xnav_gtk.h
xtt/lib/xtt/gtk/xtt_xnav_gtk.h
+1
-1
xtt/lib/xtt/motif/xtt_ge_motif.cpp
xtt/lib/xtt/motif/xtt_ge_motif.cpp
+1
-1
xtt/lib/xtt/motif/xtt_ge_motif.h
xtt/lib/xtt/motif/xtt_ge_motif.h
+2
-2
xtt/lib/xtt/motif/xtt_xnav_motif.cpp
xtt/lib/xtt/motif/xtt_xnav_motif.cpp
+2
-2
xtt/lib/xtt/motif/xtt_xnav_motif.h
xtt/lib/xtt/motif/xtt_xnav_motif.h
+1
-1
xtt/lib/xtt/src/xtt_c_object.cpp
xtt/lib/xtt/src/xtt_c_object.cpp
+1
-1
xtt/lib/xtt/src/xtt_item.cpp
xtt/lib/xtt/src/xtt_item.cpp
+1
-1
xtt/lib/xtt/src/xtt_xnav.h
xtt/lib/xtt/src/xtt_xnav.h
+10
-3
xtt/lib/xtt/src/xtt_xnav_command.cpp
xtt/lib/xtt/src/xtt_xnav_command.cpp
+38
-11
No files found.
src/wbl/pwrb/src/pwrb_c_xttgraph.wb_load
View file @
44c43e96
...
@@ -141,38 +141,28 @@ SObject pwrb:Class
...
@@ -141,38 +141,28 @@ SObject pwrb:Class
EndBody
EndBody
EndObject
EndObject
!/**
!/**
! If action is opening a ge graph, open a navigator window for the graph.
! Name of an object, if action is opening a class graph for a specific object.
!*/
Object Navigator $Attribute 10
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags = 0
EndBody
EndObject
!/**
! If action is opening a ge graph, display scrollbars in the graph window.
!*/
Object Scrollbar $Attribute 11
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
Attr Flags = 0
EndBody
EndObject
!/**
! If action is opening a ge graph, display a menu in the graph window.
!*/
!*/
Object
Menu $Attribute 12
Object
Object $Attribute 13
Body SysBody
Body SysBody
Attr TypeRef = "pwrs:Type-$
Boolean
"
Attr TypeRef = "pwrs:Type-$
Objid
"
Attr Flags = 0
Attr Flags = 0
EndBody
EndBody
EndObject
EndObject
!/**
!/**
! Name of an object, if action is opening a class graph for a specific object.
! Options for the graph.
!
! - FullScreen Open the graph as full screen without frame.
! - Maximize Open the graph maximized, not covering the operator window (NYI).
! - FullMaximize Open the graph maximized, covering the operator window.
! - Iconify Open the graph iconified.
! - Menu Add a standard menu with close and zoom buttons.
! - Srollbars Add scrollbars.
! - Navigator Open a navigator window for scrolling and zooming the graph.
!*/
!*/
Object O
bject $Attribute 13
Object O
ptions $Attribute 15
Body SysBody
Body SysBody
Attr TypeRef = "pwr
s:Type-$Objid
"
Attr TypeRef = "pwr
b:Type-XttGraphOptionsMask
"
Attr Flags = 0
Attr Flags = 0
EndBody
EndBody
EndObject
EndObject
...
...
src/wbl/pwrb/src/pwrb_td_xttgraphoptionsmask.wb_load
0 → 100644
View file @
44c43e96
!
! Proview $Id$
! Copyright (C) 2005 SSAB Oxelsund AB.
!
! This program is free software; you can redistribute it and/or
! modify it under the terms of the GNU General Public License as
! published by the Free Software Foundation, either version 2 of
! the License, or (at your option) any later version.
!
! This program is distributed in the hope that it will be useful
! but WITHOUT ANY WARRANTY; without even the implied warranty of
! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! GNU General Public License for more details.
!
! You should have received a copy of the GNU General Public License
! along with the program, if not, write to the Free Software
! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
!
! pwrb_xttgraphoptionsmask.wb_load -- Defines the mask type XttGraphOptionsMask
!
SObject pwrb:Type
!/**
! @Version 1.0
! @Group Types
! Bitmask for xtt graph options.
!
! @b See also
! @classlink XttGraph pwrb_xttgraph.html
!*/
Object XttGraphOptionsMask $TypeDef 55
Body SysBody
Attr Type = pwr_eType_Mask
Attr Size = 4
Attr TypeRef = "pwrs:Type-$Mask"
Attr Elements = 1
EndBody
!/**
! Full screen.
!*/
Object FullSceen $Bit
Body SysBody
Attr PgmName = "FullScreen"
Attr Text = "FullScreen"
Attr Value = 1
EndBody
EndObject
!/**
! Maximize.
!*/
Object Maximize $Bit
Body SysBody
Attr PgmName = "Maximize"
Attr Text = "Maximize"
Attr Value = 2
EndBody
EndObject
!/**
! Hide Status bar.
!*/
Object FullMaximize $Bit
Body SysBody
Attr PgmName = "FullMaximize"
Attr Text = "FullMaximize"
Attr Value = 4
EndBody
EndObject
!/**
! Iconify.
!*/
Object Iconify $Bit
Body SysBody
Attr PgmName = "Iconify"
Attr Text = "Iconify"
Attr Value = 8
EndBody
EndObject
!/**
! Menu.
!*/
Object Menu $Bit
Body SysBody
Attr PgmName = "Menu"
Attr Text = "Menu"
Attr Value = 16
EndBody
EndObject
!/**
! Scrollbars.
!*/
Object Scrollbars $Bit
Body SysBody
Attr PgmName = "Scrollbars"
Attr Text = "Scrollbars"
Attr Value = 32
EndBody
EndObject
!/**
! Navigator.
!*/
Object Navigator $Bit
Body SysBody
Attr PgmName = "Navigator"
Attr Text = "Navigator"
Attr Value = 64
EndBody
EndObject
EndObject
EndSObject
xtt/exe/rt_xtt/src/xtt_main.cpp
View file @
44c43e96
...
@@ -773,7 +773,7 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
...
@@ -773,7 +773,7 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
(
*
argc
)
+=
2
;
(
*
argc
)
+=
2
;
*
argv
=
argv1
;
*
argv
=
argv1
;
}
}
if
(
opp
->
OpWindLayout
&
pwr_mOpWindLayoutMask_HideLicen
c
eWindow
)
if
(
opp
->
OpWindLayout
&
pwr_mOpWindLayoutMask_HideLicen
s
eWindow
)
quiet
=
1
;
quiet
=
1
;
if
(
opp
->
AttachAudio
)
if
(
opp
->
AttachAudio
)
...
...
xtt/lib/xtt/gtk/xtt_ge_gtk.cpp
View file @
44c43e96
...
@@ -265,6 +265,7 @@ XttGeGtk::XttGeGtk( GtkWidget *xg_parent_wid, void *xg_parent_ctx, const char *x
...
@@ -265,6 +265,7 @@ XttGeGtk::XttGeGtk( GtkWidget *xg_parent_wid, void *xg_parent_ctx, const char *x
const
char
*
xg_filename
,
int
xg_scrollbar
,
int
xg_menu
,
int
xg_navigator
,
const
char
*
xg_filename
,
int
xg_scrollbar
,
int
xg_menu
,
int
xg_navigator
,
int
xg_width
,
int
xg_height
,
int
x
,
int
y
,
double
scan_time
,
int
xg_width
,
int
xg_height
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
unsigned
int
access
,
const
char
*
object_name
,
int
use_default_access
,
unsigned
int
access
,
unsigned
int
options
,
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
))
:
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
))
:
...
@@ -415,6 +416,15 @@ XttGeGtk::XttGeGtk( GtkWidget *xg_parent_wid, void *xg_parent_ctx, const char *x
...
@@ -415,6 +416,15 @@ XttGeGtk::XttGeGtk( GtkWidget *xg_parent_wid, void *xg_parent_ctx, const char *x
// Set position
// Set position
gtk_window_move
(
GTK_WINDOW
(
toplevel
),
x
,
y
);
gtk_window_move
(
GTK_WINDOW
(
toplevel
),
x
,
y
);
}
}
if
(
options
&
ge_mOptions_FullScreen
)
gtk_window_fullscreen
(
GTK_WINDOW
(
toplevel
));
else
if
(
options
&
ge_mOptions_Maximize
)
gtk_window_maximize
(
GTK_WINDOW
(
toplevel
));
// TODO
else
if
(
options
&
ge_mOptions_FullMaximize
)
gtk_window_maximize
(
GTK_WINDOW
(
toplevel
));
else
if
(
options
&
ge_mOptions_Iconify
)
gtk_window_iconify
(
GTK_WINDOW
(
toplevel
));
}
}
static
gint
confirm_delete_event
(
GtkWidget
*
w
,
GdkEvent
*
event
,
gpointer
ge
)
static
gint
confirm_delete_event
(
GtkWidget
*
w
,
GdkEvent
*
event
,
gpointer
ge
)
...
...
xtt/lib/xtt/gtk/xtt_ge_gtk.h
View file @
44c43e96
...
@@ -49,7 +49,7 @@ class XttGeGtk : public XttGe {
...
@@ -49,7 +49,7 @@ class XttGeGtk : public XttGe {
XttGeGtk
(
GtkWidget
*
parent_wid
,
void
*
parent_ctx
,
const
char
*
name
,
const
char
*
filename
,
XttGeGtk
(
GtkWidget
*
parent_wid
,
void
*
parent_ctx
,
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
int
navigator
,
int
width
,
int
height
,
int
scrollbar
,
int
menu
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
unsigned
int
access
,
unsigned
int
access
,
unsigned
int
options
,
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
));
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
));
...
...
xtt/lib/xtt/gtk/xtt_xnav_gtk.cpp
View file @
44c43e96
...
@@ -253,13 +253,14 @@ XttGe *XNavGtk::xnav_ge_new( const char *name, const char *filename, int scrollb
...
@@ -253,13 +253,14 @@ XttGe *XNavGtk::xnav_ge_new( const char *name, const char *filename, int scrollb
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
unsigned
int
access
,
int
use_default_access
,
unsigned
int
access
,
unsigned
int
options
,
int
(
*
command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
is_authorized_cb
)
(
void
*
,
unsigned
int
))
int
(
*
is_authorized_cb
)
(
void
*
,
unsigned
int
))
{
{
return
new
XttGeGtk
(
parent_wid
,
this
,
name
,
filename
,
scrollbar
,
menu
,
navigator
,
return
new
XttGeGtk
(
parent_wid
,
this
,
name
,
filename
,
scrollbar
,
menu
,
navigator
,
width
,
height
,
x
,
y
,
scan_time
,
object_name
,
use_default_access
,
width
,
height
,
x
,
y
,
scan_time
,
object_name
,
use_default_access
,
acces
s
,
command_cb
,
get_current_objects_cb
,
is_authorized_cb
);
access
,
option
s
,
command_cb
,
get_current_objects_cb
,
is_authorized_cb
);
}
}
GeCurve
*
XNavGtk
::
gecurve_new
(
char
*
name
,
char
*
filename
,
GeCurveData
*
data
,
GeCurve
*
XNavGtk
::
gecurve_new
(
char
*
name
,
char
*
filename
,
GeCurveData
*
data
,
...
...
xtt/lib/xtt/gtk/xtt_xnav_gtk.h
View file @
44c43e96
...
@@ -68,7 +68,7 @@ class XNavGtk : public XNav {
...
@@ -68,7 +68,7 @@ class XNavGtk : public XNav {
XttGe
*
xnav_ge_new
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
XttGe
*
xnav_ge_new
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
unsigned
int
access
,
int
use_default_access
,
unsigned
int
access
,
unsigned
int
options
,
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
));
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
));
...
...
xtt/lib/xtt/motif/xtt_ge_motif.cpp
View file @
44c43e96
...
@@ -296,7 +296,7 @@ XttGeMotif::XttGeMotif( Widget xg_parent_wid, void *xg_parent_ctx, const char *x
...
@@ -296,7 +296,7 @@ XttGeMotif::XttGeMotif( Widget xg_parent_wid, void *xg_parent_ctx, const char *x
const
char
*
xg_filename
,
int
xg_scrollbar
,
int
xg_menu
,
const
char
*
xg_filename
,
int
xg_scrollbar
,
int
xg_menu
,
int
xg_navigator
,
int
xg_width
,
int
xg_height
,
int
x
,
int
y
,
int
xg_navigator
,
int
xg_width
,
int
xg_height
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
unsigned
int
access
,
int
use_default_access
,
unsigned
int
access
,
unsigned
int
options
,
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
))
:
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
))
:
...
...
xtt/lib/xtt/motif/xtt_ge_motif.h
View file @
44c43e96
/*
x
/*
* Proview $Id: xtt_ge_motif.h,v 1.2 2008-10-31 12:51:36 claes Exp $
* Proview $Id: xtt_ge_motif.h,v 1.2 2008-10-31 12:51:36 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
* Copyright (C) 2005 SSAB Oxelsund AB.
*
*
...
@@ -44,7 +44,7 @@ class XttGeMotif : public XttGe {
...
@@ -44,7 +44,7 @@ class XttGeMotif : public XttGe {
XttGeMotif
(
Widget
parent_wid
,
void
*
parent_ctx
,
const
char
*
name
,
const
char
*
filename
,
XttGeMotif
(
Widget
parent_wid
,
void
*
parent_ctx
,
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
int
navigator
,
int
width
,
int
height
,
int
scrollbar
,
int
menu
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
unsigned
int
access
,
unsigned
int
access
,
unsigned
int
options
,
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
));
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
));
...
...
xtt/lib/xtt/motif/xtt_xnav_motif.cpp
View file @
44c43e96
...
@@ -274,14 +274,14 @@ CLog *XNavMotif::clog_new( const char *name, pwr_tStatus *sts)
...
@@ -274,14 +274,14 @@ CLog *XNavMotif::clog_new( const char *name, pwr_tStatus *sts)
XttGe
*
XNavMotif
::
xnav_ge_new
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
XttGe
*
XNavMotif
::
xnav_ge_new
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
unsigned
int
access
,
int
use_default_access
,
unsigned
int
access
,
unsigned
int
options
,
int
(
*
command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
is_authorized_cb
)
(
void
*
,
unsigned
int
))
int
(
*
is_authorized_cb
)
(
void
*
,
unsigned
int
))
{
{
return
new
XttGeMotif
(
parent_wid
,
this
,
name
,
filename
,
scrollbar
,
menu
,
navigator
,
return
new
XttGeMotif
(
parent_wid
,
this
,
name
,
filename
,
scrollbar
,
menu
,
navigator
,
width
,
height
,
x
,
y
,
scan_time
,
object_name
,
use_default_access
,
width
,
height
,
x
,
y
,
scan_time
,
object_name
,
use_default_access
,
access
,
command_cb
,
get_current_objects_cb
,
is_authorized_cb
);
access
,
options
,
command_cb
,
get_current_objects_cb
,
is_authorized_cb
);
}
}
GeCurve
*
XNavMotif
::
gecurve_new
(
char
*
name
,
char
*
filename
,
GeCurveData
*
data
,
GeCurve
*
XNavMotif
::
gecurve_new
(
char
*
name
,
char
*
filename
,
GeCurveData
*
data
,
...
...
xtt/lib/xtt/motif/xtt_xnav_motif.h
View file @
44c43e96
...
@@ -65,7 +65,7 @@ class XNavMotif : public XNav {
...
@@ -65,7 +65,7 @@ class XNavMotif : public XNav {
XttGe
*
xnav_ge_new
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
XttGe
*
xnav_ge_new
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
unsigned
int
access
,
int
use_default_access
,
unsigned
int
access
,
unsigned
int
options
,
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
));
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
));
...
...
xtt/lib/xtt/src/xtt_c_object.cpp
View file @
44c43e96
...
@@ -1935,7 +1935,7 @@ static pwr_tStatus CrrOpenTraceFilter( xmenu_sMenuCall *ip)
...
@@ -1935,7 +1935,7 @@ static pwr_tStatus CrrOpenTraceFilter( xmenu_sMenuCall *ip)
// Open graph
// Open graph
static
pwr_tStatus
CrrOpenGraph
(
xmenu_sMenuCall
*
ip
)
static
pwr_tStatus
CrrOpenGraph
(
xmenu_sMenuCall
*
ip
)
{
{
((
XNav
*
)
ip
->
EditorContext
)
->
exec_xttgraph
(
ip
->
Pointed
.
Objid
,
0
,
0
,
0
,
0
,
0
);
((
XNav
*
)
ip
->
EditorContext
)
->
exec_xttgraph
(
ip
->
Pointed
.
Objid
,
0
,
0
,
0
,
0
,
0
,
0
);
return
XNAV__SUCCESS
;
return
XNAV__SUCCESS
;
}
}
...
...
xtt/lib/xtt/src/xtt_item.cpp
View file @
44c43e96
...
@@ -1425,7 +1425,7 @@ int ItemFile::open_children( XNavBrow *brow, double x, double y)
...
@@ -1425,7 +1425,7 @@ int ItemFile::open_children( XNavBrow *brow, double x, double y)
break
;
break
;
}
}
case
item_eFileType_Graph
:
case
item_eFileType_Graph
:
xnav
->
open_graph
(
name
,
file_name
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
xnav
->
open_graph
(
name
,
file_name
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
break
;
break
;
case
item_eFileType_RttLog
:
case
item_eFileType_RttLog
:
xnav
->
open_rttlog
(
name
,
file_name
);
xnav
->
open_rttlog
(
name
,
file_name
);
...
...
xtt/lib/xtt/src/xtt_xnav.h
View file @
44c43e96
...
@@ -172,6 +172,13 @@ struct s_trace_node {
...
@@ -172,6 +172,13 @@ struct s_trace_node {
pwr_tObjid
Objid
;
pwr_tObjid
Objid
;
};
};
typedef
enum
{
ge_mOptions_FullScreen
=
1
<<
0
,
ge_mOptions_Maximize
=
1
<<
1
,
ge_mOptions_FullMaximize
=
1
<<
2
,
ge_mOptions_Iconify
=
1
<<
3
}
ge_mOptions
;
typedef
enum
{
typedef
enum
{
applist_eType_Trace
,
applist_eType_Trace
,
applist_eType_Graph
,
applist_eType_Graph
,
...
@@ -352,7 +359,7 @@ class XNav {
...
@@ -352,7 +359,7 @@ class XNav {
virtual
XttGe
*
xnav_ge_new
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
virtual
XttGe
*
xnav_ge_new
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
double
scan_time
,
const
char
*
object_name
,
double
scan_time
,
const
char
*
object_name
,
int
use_default_access
,
unsigned
int
access
,
int
use_default_access
,
unsigned
int
access
,
unsigned
int
options
,
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_command_cb
)
(
XttGe
*
,
char
*
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_get_current_objects_cb
)
(
void
*
,
pwr_sAttrRef
**
,
int
**
),
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
))
{
return
0
;}
int
(
*
xg_is_authorized_cb
)
(
void
*
,
unsigned
int
))
{
return
0
;}
...
@@ -492,11 +499,11 @@ class XNav {
...
@@ -492,11 +499,11 @@ class XNav {
void
open_graph
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
void
open_graph
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
const
char
*
object_name
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
const
char
*
object_name
,
const
char
*
focus
,
int
inputempty
,
int
use_default_access
,
const
char
*
focus
,
int
inputempty
,
int
use_default_access
,
unsigned
int
acces
s
);
unsigned
int
access
,
unsigned
int
option
s
);
void
close_graph
(
char
*
filename
,
char
*
object_name
);
void
close_graph
(
char
*
filename
,
char
*
object_name
);
int
exec_xttgraph
(
pwr_tObjid
xttgraph
,
char
*
instance
,
int
exec_xttgraph
(
pwr_tObjid
xttgraph
,
char
*
instance
,
char
*
focus
,
int
inputempty
,
char
*
focus
,
int
inputempty
,
int
use_default_access
,
unsigned
int
access
);
int
use_default_access
,
unsigned
int
access
,
unsigned
int
options
);
void
ge_event_exec
(
int
type
,
char
*
name
,
char
*
instance
,
void
*
event
,
unsigned
int
size
);
void
ge_event_exec
(
int
type
,
char
*
name
,
char
*
instance
,
void
*
event
,
unsigned
int
size
);
int
set_parameter
(
char
*
name_str
,
char
*
value_str
,
int
bypass
);
int
set_parameter
(
char
*
name_str
,
char
*
value_str
,
int
bypass
);
void
open_rttlog
(
char
*
name
,
char
*
filename
);
void
open_rttlog
(
char
*
name
,
char
*
filename
);
...
...
xtt/lib/xtt/src/xtt_xnav_command.cpp
View file @
44c43e96
...
@@ -238,7 +238,8 @@ dcli_tCmdTable xnav_command_table[] = {
...
@@ -238,7 +238,8 @@ dcli_tCmdTable xnav_command_table[] = {
"/NAVIGATOR"
,
"/CENTER"
,
"/OBJECT"
,
"/NEW"
,
"/NAVIGATOR"
,
"/CENTER"
,
"/OBJECT"
,
"/NEW"
,
"/INSTANCE"
,
"/COLLECT"
,
"/FOCUS"
,
"/INPUTEMPTY"
,
"/INSTANCE"
,
"/COLLECT"
,
"/FOCUS"
,
"/INPUTEMPTY"
,
"/ENTRY"
,
"/TITLE"
,
"/ACCESS"
,
"/CLASSGRAPH"
,
"/PARENT"
,
"/BYPASS"
,
"/ENTRY"
,
"/TITLE"
,
"/ACCESS"
,
"/CLASSGRAPH"
,
"/PARENT"
,
"/BYPASS"
,
"/CLOSEBUTTON"
,
"/TARGET"
,
"/TRIGGER"
,
"/TYPE"
,
"/FTYPE"
,
""
}
"/CLOSEBUTTON"
,
"/TARGET"
,
"/TRIGGER"
,
"/TYPE"
,
"/FTYPE"
,
"/FULLSCREEN"
,
"/MAXIMIZE"
,
"/FULLMAXIMIZE"
,
"/ICONIFY"
,
""
}
},
},
{
{
"CLOSE"
,
"CLOSE"
,
...
@@ -2446,9 +2447,20 @@ static int xnav_open_func( void *client_data,
...
@@ -2446,9 +2447,20 @@ static int xnav_open_func( void *client_data,
int
classgraph
;
int
classgraph
;
int
parent
;
int
parent
;
pwr_tStatus
sts
;
pwr_tStatus
sts
;
unsigned
int
options
=
0
;
parent
=
ODD
(
dcli_get_qualifier
(
"/PARENT"
,
0
,
0
));
parent
=
ODD
(
dcli_get_qualifier
(
"/PARENT"
,
0
,
0
));
if
(
ODD
(
dcli_get_qualifier
(
"/FULLSCREEN"
,
0
,
0
)))
options
|=
ge_mOptions_FullScreen
;
if
(
ODD
(
dcli_get_qualifier
(
"/MAXIMIZE"
,
0
,
0
)))
options
|=
ge_mOptions_Maximize
;
if
(
ODD
(
dcli_get_qualifier
(
"/FULLMAXIMIZE"
,
0
,
0
)))
options
|=
ge_mOptions_FullMaximize
;
if
(
ODD
(
dcli_get_qualifier
(
"/ICONIFY"
,
0
,
0
)))
options
|=
ge_mOptions_Iconify
;
if
(
ODD
(
dcli_get_qualifier
(
"/INSTANCE"
,
instance_str
,
sizeof
(
instance_str
))))
{
if
(
ODD
(
dcli_get_qualifier
(
"/INSTANCE"
,
instance_str
,
sizeof
(
instance_str
))))
{
instance_p
=
instance_str
;
instance_p
=
instance_str
;
...
@@ -2582,7 +2594,8 @@ static int xnav_open_func( void *client_data,
...
@@ -2582,7 +2594,8 @@ static int xnav_open_func( void *client_data,
else
else
use_default_access
=
0
;
use_default_access
=
0
;
xnav
->
exec_xttgraph
(
objid
,
instance_p
,
focus_p
,
inputempty
,
use_default_access
,
access
);
xnav
->
exec_xttgraph
(
objid
,
instance_p
,
focus_p
,
inputempty
,
use_default_access
,
access
,
options
);
}
}
else
{
else
{
pwr_tFileName
file_str
;
pwr_tFileName
file_str
;
...
@@ -2605,7 +2618,7 @@ static int xnav_open_func( void *client_data,
...
@@ -2605,7 +2618,7 @@ static int xnav_open_func( void *client_data,
navigator
=
ODD
(
dcli_get_qualifier
(
"/NAVIGATOR"
,
0
,
0
));
navigator
=
ODD
(
dcli_get_qualifier
(
"/NAVIGATOR"
,
0
,
0
));
xnav
->
open_graph
(
"Collect"
,
"_none_"
,
scrollbar
,
menu
,
navigator
,
xnav
->
open_graph
(
"Collect"
,
"_none_"
,
scrollbar
,
menu
,
navigator
,
0
,
0
,
0
,
0
,
"collect"
,
NULL
,
0
,
0
,
0
);
0
,
0
,
0
,
0
,
"collect"
,
NULL
,
0
,
0
,
0
,
options
);
return
XNAV__SUCCESS
;
return
XNAV__SUCCESS
;
}
}
if
(
ODD
(
dcli_get_qualifier
(
"dcli_arg2"
,
file_str
,
sizeof
(
file_str
))))
{
if
(
ODD
(
dcli_get_qualifier
(
"dcli_arg2"
,
file_str
,
sizeof
(
file_str
))))
{
...
@@ -2738,8 +2751,8 @@ static int xnav_open_func( void *client_data,
...
@@ -2738,8 +2751,8 @@ static int xnav_open_func( void *client_data,
use_default_access
=
0
;
use_default_access
=
0
;
xnav
->
open_graph
(
name_str
,
file_str
,
scrollbar
,
menu
,
navigator
,
xnav
->
open_graph
(
name_str
,
file_str
,
scrollbar
,
menu
,
navigator
,
width
,
height
,
0
,
0
,
instance_p
,
focus_p
,
inputempty
,
width
,
height
,
0
,
0
,
instance_p
,
focus_p
,
inputempty
,
use_default_access
,
acces
s
);
use_default_access
,
access
,
option
s
);
return
XNAV__SUCCESS
;
return
XNAV__SUCCESS
;
}
}
}
}
...
@@ -7193,7 +7206,7 @@ static int xnav_ge_get_current_objects_cb( void *vxnav, pwr_sAttrRef **alist,
...
@@ -7193,7 +7206,7 @@ static int xnav_ge_get_current_objects_cb( void *vxnav, pwr_sAttrRef **alist,
void
XNav
::
open_graph
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
void
XNav
::
open_graph
(
const
char
*
name
,
const
char
*
filename
,
int
scrollbar
,
int
menu
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
int
navigator
,
int
width
,
int
height
,
int
x
,
int
y
,
const
char
*
object_name
,
const
char
*
focus_name
,
int
input_focus_empty
,
const
char
*
object_name
,
const
char
*
focus_name
,
int
input_focus_empty
,
int
use_default_access
,
unsigned
int
access
)
int
use_default_access
,
unsigned
int
access
,
unsigned
int
options
)
{
{
XttGe
*
gectx
;
XttGe
*
gectx
;
...
@@ -7207,7 +7220,7 @@ void XNav::open_graph( const char *name, const char *filename, int scrollbar, in
...
@@ -7207,7 +7220,7 @@ void XNav::open_graph( const char *name, const char *filename, int scrollbar, in
{
{
gectx
=
xnav_ge_new
(
name
,
filename
,
gectx
=
xnav_ge_new
(
name
,
filename
,
scrollbar
,
menu
,
navigator
,
width
,
height
,
x
,
y
,
gbl
.
scantime
,
scrollbar
,
menu
,
navigator
,
width
,
height
,
x
,
y
,
gbl
.
scantime
,
object_name
,
use_default_access
,
access
,
object_name
,
use_default_access
,
access
,
options
,
&
xnav_ge_command_cb
,
&
xnav_ge_command_cb
,
&
xnav_ge_get_current_objects_cb
,
&
xnav_ge_is_authorized_cb
);
&
xnav_ge_get_current_objects_cb
,
&
xnav_ge_is_authorized_cb
);
gectx
->
close_cb
=
xnav_ge_close_cb
;
gectx
->
close_cb
=
xnav_ge_close_cb
;
...
@@ -7238,7 +7251,8 @@ void XNav::close_graph( char *filename, char *object_name)
...
@@ -7238,7 +7251,8 @@ void XNav::close_graph( char *filename, char *object_name)
int
XNav
::
exec_xttgraph
(
pwr_tObjid
xttgraph
,
char
*
instance
,
int
XNav
::
exec_xttgraph
(
pwr_tObjid
xttgraph
,
char
*
instance
,
char
*
focus
,
int
inputempty
,
char
*
focus
,
int
inputempty
,
int
use_default_access
,
unsigned
int
access
)
int
use_default_access
,
unsigned
int
access
,
unsigned
int
options
)
{
{
pwr_sClass_XttGraph
xttgraph_o
;
pwr_sClass_XttGraph
xttgraph_o
;
char
action
[
80
];
char
action
[
80
];
...
@@ -7246,6 +7260,7 @@ int XNav::exec_xttgraph( pwr_tObjid xttgraph, char *instance,
...
@@ -7246,6 +7260,7 @@ int XNav::exec_xttgraph( pwr_tObjid xttgraph, char *instance,
int
sts
;
int
sts
;
pwr_tAName
instance_str
;
pwr_tAName
instance_str
;
pwr_tAName
name
;
pwr_tAName
name
;
int
scrollbars
,
menu
,
navigator
;
sts
=
gdh_ObjidToName
(
xttgraph
,
name
,
sts
=
gdh_ObjidToName
(
xttgraph
,
name
,
sizeof
(
name
),
cdh_mName_volumeStrict
);
sizeof
(
name
),
cdh_mName_volumeStrict
);
...
@@ -7268,10 +7283,22 @@ int XNav::exec_xttgraph( pwr_tObjid xttgraph, char *instance,
...
@@ -7268,10 +7283,22 @@ int XNav::exec_xttgraph( pwr_tObjid xttgraph, char *instance,
{
{
// Open graph
// Open graph
*
s
=
0
;
*
s
=
0
;
open_graph
(
xttgraph_o
.
Title
,
action
,
xttgraph_o
.
Scrollbar
,
scrollbars
=
xttgraph_o
.
Options
&
pwr_mXttGraphOptionsMask_Scrollbars
?
1
:
0
;
xttgraph_o
.
Menu
,
xttgraph_o
.
Navigator
,
xttgraph_o
.
Width
,
menu
=
xttgraph_o
.
Options
&
pwr_mXttGraphOptionsMask_Menu
?
1
:
0
;
navigator
=
xttgraph_o
.
Options
&
pwr_mXttGraphOptionsMask_Navigator
?
1
:
0
;
if
(
xttgraph_o
.
Options
&
pwr_mXttGraphOptionsMask_FullScreen
)
options
|=
ge_mOptions_FullScreen
;
if
(
xttgraph_o
.
Options
&
pwr_mXttGraphOptionsMask_Maximize
)
options
|=
ge_mOptions_Maximize
;
if
(
xttgraph_o
.
Options
&
pwr_mXttGraphOptionsMask_FullMaximize
)
options
|=
ge_mOptions_FullMaximize
;
if
(
xttgraph_o
.
Options
&
pwr_mXttGraphOptionsMask_Iconify
)
options
|=
ge_mOptions_Iconify
;
open_graph
(
xttgraph_o
.
Title
,
action
,
scrollbars
,
menu
,
navigator
,
xttgraph_o
.
Width
,
xttgraph_o
.
Height
,
xttgraph_o
.
X
,
xttgraph_o
.
Y
,
instance
,
xttgraph_o
.
Height
,
xttgraph_o
.
X
,
xttgraph_o
.
Y
,
instance
,
focus
,
inputempty
,
use_default_access
,
acces
s
);
focus
,
inputempty
,
use_default_access
,
access
,
option
s
);
}
}
else
if
(
(
strstr
(
action
,
".class"
)))
else
if
(
(
strstr
(
action
,
".class"
)))
{
{
...
...
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