Commit b51ca656 authored by Claes Sjofors's avatar Claes Sjofors

rt_xtt option n added for optimized network

parent d6c60589
......@@ -83,6 +83,7 @@ class Xtt {
int select_opplace;
int op_close_button;
int no_advanceduser;
int network_optimized;
Xtt( int *argc, char **argv[], int *return_sts);
virtual ~Xtt() {}
......
......@@ -531,7 +531,9 @@ 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), no_advanceduser(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),
network_optimized(0)
{
pwr_tStatus sts;
int i;
......@@ -601,6 +603,9 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
case 'd':
no_advanceduser = 1;
break;
case 'n':
network_optimized = 1;
break;
case 'l':
if ( i + 1 >= *argc ||
!((*argv)[i][j+1] == ' ' || (*argv)[i][j+1] != ' ')) {
......@@ -675,6 +680,9 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
}
}
if ( network_optimized)
XttMethodToolbar::disable();
if ( select_opplace) {
// Check if there is only one single opplace
pwr_tOName fullname;
......
......@@ -133,6 +133,9 @@ gboolean XttMethodToolbarGtk::set_sensitive_cb( void *data)
void XttMethodToolbarGtk::set_current_sensitive()
{
if ( m_disabled)
return;
int is_attr;
pwr_sAttrRef aref;
xmenu_eItemType menu_type;
......
......@@ -40,6 +40,8 @@
#include <stdlib.h>
#include "xtt_methodtoolbar.h"
int XttMethodToolbar::m_disabled = 0;
xtt_sMethodButton XttMethodToolbar::m_data[XttMethodToolbar::m_size] =
{{"Help", "$Object-Help", "$Object-HelpFilter", "$pwr_exe/xtt_meth_help.png", "Help"},
{"Note", "$Object-Note", "$Object-NoteFilter", "$pwr_exe/xtt_meth_note.png", "Note"},
......
......@@ -74,6 +74,7 @@ class XttMethodToolbar {
public:
static const int m_size = 17;
static xtt_sMethodButton m_data[m_size];
static int m_disabled;
XNav *m_xnav;
void *m_parent_ctx;
unsigned int m_method_mask;
......@@ -85,6 +86,8 @@ class XttMethodToolbar {
get_select_cb(0) { strcpy( m_tooltip_suffix, tooltip_suffix); }
virtual ~XttMethodToolbar() {}
virtual void set_sensitive() {}
static void disable() { m_disabled = 1;}
};
#endif
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