38 EditionProc::EditionProc(
Subject* subject,
43 DEBTRACE(
"EditionProc::EditionProc");
51 QHBoxLayout* hbox =
new QHBoxLayout();
52 QLabel* la =
new QLabel(
"Shutdown level:",
this);
62 cb->setCurrentIndex(level);
63 connect(cb, SIGNAL(currentIndexChanged(
int)),
this, SLOT(
onLevelChange(
int)));
66 _wid->gridLayout1->addLayout(hbox,4,0);
72 DEBTRACE(
"EditionProc::~EditionProc");
79 string statusLog =
"";
86 _modifLog =
"--- some elements are modified and not taken into account. Confirmation or annulation required ---\n";
108 DEBTRACE(
"EditionProc::synchronize");
111 string statusLog =
"";
117 _errorLog =
"--- YACS schema is not valid ---\n\n";
124 LinkInfo info(LinkInfo::ALL_DONT_STOP);
133 _errorLog +=
"--- No Validity Errors ---\n";
134 _errorLog +=
"--- No Consistency Errors ---\n";
139 _errorLog =
"--- YACS schema has consistency errors ---\n\n";
148 _errorLog +=
"--- Original file import log ---\n";
157 DEBTRACE(
"EditionProc::onLevelChange " << index);
virtual std::string getErrorReport()
returns a string that contains an error report if the node is in error
void checkConsistency(LinkInfo &info) const
Class that deal with list of semantics links for high level analysis.
std::string getGlobalRepr() const
bool areWarningsOrErrors() const
Class for logging error messages.
virtual std::string getStr()
virtual int isValid()
indicates if the node is valid (returns 1) or not (returns 0)
Base class for all schema objects.
virtual Logger * getLogger(const std::string &name)
virtual void update(GuiEvent event, int type, Subject *son)
virtual void update(GuiEvent event, int type, Subject *son)
virtual void synchronize()
virtual void onLevelChange(int index)
YACS::ENGINE::Proc * getProc()
std::string getErrorReport(YACS::ENGINE::Node *node)
void setShutdownLevel(int level)
static std::string eventName(GuiEvent event)
static QtGuiContext * getQtCurrent()
YACS::HMI::GuiExecutor * getGuiExecutor()