Commit 83b906d9 authored by Claes Sjofors's avatar Claes Sjofors

Advanced user set as default in wb and xtt

parent 7a324057
......@@ -132,3 +132,4 @@
090515 cs wtt Popup menu on attributes. Methods HelpClass, InsertSelectedObject and ChangeValue added.
090515 cs wtt Bugfix in ConnectGraph method for PlantHier objects.
090518 cs wb Wb method PostRename added and implemented for XttGraph and ProjectReg objects.
090518 cs wb Advanced user set as default in wb.
......@@ -1872,6 +1872,8 @@ WttGtk::WttGtk(
strcpy( layout_palette, "ProjectNavigatorPalette");
strcpy( title_w1, "Volume Configuration");
strcpy( title_w2, "Node Configuration");
window_width = 500;
window_height = 400;
break;
case pwr_eClass_ClassVolume:
case pwr_eClass_DetachedClassVolume:
......@@ -2747,6 +2749,8 @@ WttGtk::WttGtk(
}
}
}
if ( wnav->gbl.advanced_user)
g_object_set( tools_set_advuser, "visible", FALSE, NULL);
menu_setup();
*status = 1;
......
......@@ -169,7 +169,7 @@ class ApplList {
class WNavGbl {
public:
WNavGbl() :
priv(0), verify(0), advanced_user(0), all_toplevel(0), bypass(0),
priv(0), verify(0), advanced_user(1), all_toplevel(0), bypass(0),
show_class(1), show_alias(0), show_descrip(1), show_attrref(0),
show_attrxref(0), show_objref(0), show_objxref(0), show_truedb(0)
{
......
......@@ -128,4 +128,7 @@
090305 cs glow Ge color palette fillcolor,bordercolor and textcolor selection changed.
090305 cs xtt Trend method not viewed for $PlantHier with a Trend child object.
090306 cs xtt Language translation of operator window buttons.
090512 cs ge Bugfix in ge editor, navigator palette wasn't destroyed at exit.
\ No newline at end of file
090512 cs ge Bugfix in ge editor, navigator palette wasn't destroyed at exit.
090518 cs xtt More flexible layout of operator buttons. NoFastAvail not used any more.
090518 cs xtt Bugfix in xtt termination. Free in wrong order could cause segfault.
090518 cs xtt Advanced user set as default, not set with option -d.
\ No newline at end of file
......@@ -971,6 +971,10 @@ XttGtk::XttGtk( int argc, char *argv[], int *return_sts) :
if ( select_opplace)
list_opplace();
if ( xnav->gbl.advanced_user && !no_advanceduser) {
xnav->gbl.advanced_user = 0;
g_object_set( tools_advuser, "visible", FALSE, NULL);
}
xtt_mainloop();
}
......
......@@ -65,6 +65,7 @@ class Xtt {
XttMethodToolbar *methodtoolbar;
int select_opplace;
int op_close_button;
int no_advanceduser;
Xtt( int argc, char *argv[], int *return_sts);
virtual ~Xtt() {}
......
......@@ -449,7 +449,7 @@ void Xtt::activate_help_proview()
}
Xtt::Xtt( int argc, char *argv[], int *return_sts) :
root_item(0), input_open(0), command_open(0), india_ok_cb(0), queid(qcom_cNQid), quiet(0), attach_audio(0), select_opplace(0), op_close_button(0)
root_item(0), input_open(0), command_open(0), india_ok_cb(0), queid(qcom_cNQid), quiet(0), attach_audio(0), select_opplace(0), op_close_button(0), no_advanceduser(0)
{
pwr_tStatus sts;
int i;
......@@ -501,6 +501,8 @@ Xtt::Xtt( int argc, char *argv[], int *return_sts) :
select_opplace = 1;
else if ( strcmp( argv[i], "-c") == 0)
op_close_button = 1;
else if ( strcmp( argv[i], "-d") == 0)
no_advanceduser = 1;
else if ( strcmp( argv[i], "-u") == 0 && i + 1 < argc) {
char oname[80];
......
......@@ -213,7 +213,7 @@ class XNavGbl {
XNavGbl() :
priv(0), UserObject(pwr_cNObjid), AlarmAutoLoad(0), AlarmMessage(0),
AlarmBeep(0), AlarmReturn(0), AlarmAck(0), gdh_started(1),
verify(0), scantime(0.5), signal_test_mode(0), advanced_user(0), show_truedb(0),
verify(0), scantime(0.5), signal_test_mode(0), advanced_user(1), show_truedb(0),
show_allattr(0), no_graph_ratio(0)
{
strcpy( version, xnav_cVersion); strcpy( time, "");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment