diff --git a/Common/onelab.h b/Common/onelab.h index 58607e9985985fc7a4b0496e90265a1386275195..f7ac2b4defbe25dd2461143d09a0d1dcf339a9ab 100644 --- a/Common/onelab.h +++ b/Common/onelab.h @@ -503,7 +503,7 @@ namespace onelab{ int _pid; public: localNetworkClient(const std::string &name, const std::string &commandLine) - : localClient(name), _commandLine(commandLine){} + : localClient(name), _commandLine(commandLine), _pid(-1) {} virtual ~localNetworkClient(){} int getPid(){ return _pid; } void setPid(int pid){ _pid = pid; } diff --git a/Fltk/onelabWindow.cpp b/Fltk/onelabWindow.cpp index ec39681814ac3329b46e9f27f8dd6b00a206cc16..1deba9f52b332ac2e096c14c99c67449b02af475 100644 --- a/Fltk/onelabWindow.cpp +++ b/Fltk/onelabWindow.cpp @@ -136,6 +136,8 @@ bool onelab::localNetworkClient::run(const std::string &what) p.fromChar(message); set(p, false); } + else + Msg::Error("FIXME not done for this parameter type"); } break; case GmshSocket::GMSH_PARAMETER_QUERY: @@ -166,6 +168,8 @@ bool onelab::localNetworkClient::run(const std::string &what) server->SendMessage(GmshSocket::GMSH_INFO, reply.size(), &reply[0]); } } + else + Msg::Error("FIXME query not done for this parameter type"); } break; case GmshSocket::GMSH_PROGRESS: @@ -354,12 +358,14 @@ void onelabWindow::rebuildTree() onelab::server::instance()->get(numbers); for(unsigned int i = 0; i < numbers.size(); i++){ Fl_Tree_Item *n = _tree->add(numbers[i].getName().c_str()); + std::string label = numbers[i].getShortHelp(); + if(label.empty()) label = getShortName(numbers[i].getName()); _tree->begin(); if(numbers[i].getChoices().size() == 2 && numbers[i].getChoices()[0] == 0 && numbers[i].getChoices()[1] == 1){ Fl_Check_Button *but = new Fl_Check_Button(1,1,IW,1); _treeWidgets.push_back(but); - but->copy_label(getShortName(numbers[i].getName()).c_str()); + but->copy_label(label.c_str()); but->value(numbers[i].getValue()); but->callback(onelab_check_button_cb, (void*)n); n->widget(but); @@ -367,7 +373,7 @@ void onelabWindow::rebuildTree() else{ Fl_Value_Input *but = new Fl_Value_Input(1,1,IW,1); _treeWidgets.push_back(but); - but->copy_label(getShortName(numbers[i].getName()).c_str()); + but->copy_label(label.c_str()); but->value(numbers[i].getValue()); if(numbers[i].getMin() != -1.e200) but->minimum(numbers[i].getMin()); @@ -387,10 +393,12 @@ void onelabWindow::rebuildTree() onelab::server::instance()->get(strings); for(unsigned int i = 0; i < strings.size(); i++){ Fl_Tree_Item *n = _tree->add(strings[i].getName().c_str()); + std::string label = strings[i].getShortHelp(); + if(label.empty()) label = getShortName(strings[i].getName()); _tree->begin(); Fl_Input_Choice *but = new Fl_Input_Choice(1,1,IW,1); _treeWidgets.push_back(but); - but->copy_label(getShortName(strings[i].getName()).c_str()); + but->copy_label(label.c_str()); for(unsigned int j = 0; j < strings[i].getChoices().size(); j++) but->add(strings[i].getChoices()[j].c_str()); but->value(strings[i].getValue().c_str());