FFSM++  1.1.0
French Forest Sector Model ++
ScenarioSelectionWidget Class Reference

#include <ScenarioSelectionWidget.h>

Inheritance diagram for ScenarioSelectionWidget:
Collaboration diagram for ScenarioSelectionWidget:

Public Member Functions

 ScenarioSelectionWidget (QWidget *parent=0)
 
void receiveScenarioOptions (const QVector< QString > &scenarios_h)
 

Public Attributes

QComboBox * scenarioSelector
 

Private Member Functions

 ~ScenarioSelectionWidget ()
 

Private Attributes

QLabel * label
 

Detailed Description

Simple widget to show the available scenarios so that the user can choose one.

Author
Antonello Lobianco anton.nosp@m.ello.nosp@m.@regm.nosp@m.as.o.nosp@m.rg

Definition at line 37 of file ScenarioSelectionWidget.h.

Constructor & Destructor Documentation

ScenarioSelectionWidget ( QWidget *  parent = 0)

Definition at line 29 of file ScenarioSelectionWidget.cpp.

29  : QDialog(parent) {
30 
31  label = new QLabel(tr("Select the scenario you want to run..."));
32  scenarioSelector = new QComboBox();
33  QVBoxLayout *mainLayout = new QVBoxLayout;
34  mainLayout->addWidget(label);
35  mainLayout->addWidget(scenarioSelector);
36  setLayout(mainLayout);
37  setWindowTitle(tr("Scenario selection"));
38  setFixedHeight(sizeHint().height());
39 
40  //connect(scenarioSelector, SIGNAL( activated(const QString&)), this, SLOT( processSelectedScenario(const QString &) ));
41  //connect(scenarioSelector, SIGNAL( activated(const QString&)), this, SLOT( close()));
42 
43 }

Definition at line 45 of file ScenarioSelectionWidget.cpp.

45  {
46 }

Member Function Documentation

void receiveScenarioOptions ( const QVector< QString > &  scenarios_h)

Definition at line 50 of file ScenarioSelectionWidget.cpp.

50  {
51  scenarioSelector->clear();
52  for (uint i=0; i< scenarios_h.size();i++){
53  scenarioSelector->addItem(scenarios_h.at(i));
54  }
55  //scenarioSelector->setFocus(); // may be not visible, no effect!
56  //scenarioSelector->grabMouse();
57  //scenarioSelector->grabKeyboard();
58 }

Member Data Documentation

QLabel* label
private

Definition at line 46 of file ScenarioSelectionWidget.h.

Referenced by ScenarioSelectionWidget().

QComboBox* scenarioSelector

Definition at line 43 of file ScenarioSelectionWidget.h.

Referenced by receiveScenarioOptions(), and ScenarioSelectionWidget().


The documentation for this class was generated from the following files: