FFSM++
1.1.0
French Forest Sector Model ++
Main Page
Related Pages
Classes
Files
File List
File Members
ScenarioSelectionWidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
* Copyright (C) 2015 by Laboratoire d'Economie Forestière *
3
* http://ffsm-project.org *
4
* *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 3 of the License, or *
8
* (at your option) any later version, given the compliance with the *
9
* exceptions listed in the file COPYING that is distribued together *
10
* with this file. *
11
* *
12
* This program is distributed in the hope that it will be useful, *
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15
* GNU General Public License for more details. *
16
* *
17
* You should have received a copy of the GNU General Public License *
18
* along with this program; if not, write to the *
19
* Free Software Foundation, Inc., *
20
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21
***************************************************************************/
22
#ifndef SCENARIOSELECTIONWIDGET_H
23
#define SCENARIOSELECTIONWIDGET_H
24
25
#include <QDialog>
26
#include <QLabel>
27
#include <QComboBox>
28
//#include <QtGui>
29
30
class
QComboBox;
31
32
/**
33
Simple widget to show the available scenarios so that the user can choose one.
34
35
@author Antonello Lobianco <antonello@regmas.org>
36
*/
37
class
ScenarioSelectionWidget
:
public
QDialog{
38
Q_OBJECT
39
40
public
:
41
ScenarioSelectionWidget
(QWidget *parent = 0);
42
void
receiveScenarioOptions
(
const
QVector<QString> &scenarios_h);
43
QComboBox *
scenarioSelector
;
44
45
private
:
46
QLabel *
label
;
47
48
49
~ScenarioSelectionWidget
();
50
51
/*
52
signals:
53
void selectedScenarioName(const QString &scenario_h);
54
55
public slots:
56
void processSelectedScenario(const QString &scenario_h);
57
*/
58
59
};
60
61
#endif
ScenarioSelectionWidget::receiveScenarioOptions
void receiveScenarioOptions(const QVector< QString > &scenarios_h)
Definition:
ScenarioSelectionWidget.cpp:50
ScenarioSelectionWidget::scenarioSelector
QComboBox * scenarioSelector
Definition:
ScenarioSelectionWidget.h:43
ScenarioSelectionWidget::label
QLabel * label
Definition:
ScenarioSelectionWidget.h:46
ScenarioSelectionWidget
Definition:
ScenarioSelectionWidget.h:37
ScenarioSelectionWidget::~ScenarioSelectionWidget
~ScenarioSelectionWidget()
Definition:
ScenarioSelectionWidget.cpp:45
ScenarioSelectionWidget::ScenarioSelectionWidget
ScenarioSelectionWidget(QWidget *parent=0)
Definition:
ScenarioSelectionWidget.cpp:29