Commit 178fdc3a authored by Claes Sjofors's avatar Claes Sjofors

wb_gtk and rt_xtt_gtk -m option to show methods added

parent b597a164
...@@ -107,6 +107,10 @@ WVsel *WbGtk::vsel_new( pwr_tStatus *status, const char *name, ldh_tWBContext ld ...@@ -107,6 +107,10 @@ WVsel *WbGtk::vsel_new( pwr_tStatus *status, const char *name, ldh_tWBContext ld
int main( int argc, char *argv[]) int main( int argc, char *argv[])
{ {
if ( argc >= 2 && strcmp( argv[1], "-m") == 0) {
wb_erep::printMethods();
exit(0);
}
gtk_init( &argc, &argv); gtk_init( &argc, &argv);
......
...@@ -132,9 +132,9 @@ public: ...@@ -132,9 +132,9 @@ public:
void setRefMerep( wb_merep *merep); void setRefMerep( wb_merep *merep);
void resetRefMerep(); void resetRefMerep();
bool refMerepOccupied() { return m_ref_merep_occupied;} bool refMerepOccupied() { return m_ref_merep_occupied;}
void printMethods();
bool check_lock( char *name, ldh_eVolDb type); bool check_lock( char *name, ldh_eVolDb type);
void checkVolumes( pwr_tStatus *sts, char *nodeconfigname); void checkVolumes( pwr_tStatus *sts, char *nodeconfigname);
static void printMethods();
static void volumeNameToFilename( pwr_tStatus *sts, char *name, char *filename); static void volumeNameToFilename( pwr_tStatus *sts, char *name, char *filename);
private: private:
......
...@@ -2142,8 +2142,7 @@ static int wnav_show_func( void *client_data, ...@@ -2142,8 +2142,7 @@ static int wnav_show_func( void *client_data,
else if ( cdh_NoCaseStrncmp( arg1_str, "METHODS", strlen( arg1_str)) == 0) else if ( cdh_NoCaseStrncmp( arg1_str, "METHODS", strlen( arg1_str)) == 0)
{ {
// Command is "SHOW METHODS" // Command is "SHOW METHODS"
wb_erep *erep = *(wb_env *)wnav->wbctx; wb_erep::printMethods();
erep->printMethods();
} }
else if ( cdh_NoCaseStrncmp( arg1_str, "NEXT_FREE_USER_VID", strlen( arg1_str)) == 0) else if ( cdh_NoCaseStrncmp( arg1_str, "NEXT_FREE_USER_VID", strlen( arg1_str)) == 0)
{ {
......
...@@ -561,6 +561,11 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) : ...@@ -561,6 +561,11 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
static char display[80]; static char display[80];
static char display_opt[20] = "--display"; static char display_opt[20] = "--display";
if ( *argc > 1 && strcmp( (*argv)[1], "-m") == 0) {
XNav::print_methods();
exit(0);
}
*return_sts = XNAV__SUCCESS; *return_sts = XNAV__SUCCESS;
strcpy( opplace_str, ""); strcpy( opplace_str, "");
......
...@@ -571,9 +571,9 @@ class XNav { ...@@ -571,9 +571,9 @@ class XNav {
int search_next(); int search_next();
int create_object( char *classname, char *name); int create_object( char *classname, char *name);
int delete_object( char *name); int delete_object( char *name);
void print_methods();
void open_keyboard( void *owner, keyboard_eKeymap keymap, int type); void open_keyboard( void *owner, keyboard_eKeymap keymap, int type);
void close_keyboard( int action); void close_keyboard( int action);
static void print_methods();
static pwr_tStatus get_instance_classgraph( char *instance_str, pwr_tFileName filename); static pwr_tStatus get_instance_classgraph( char *instance_str, pwr_tFileName filename);
// Table module member functions // Table module member functions
......
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