29 #include <QMainWindow>    33 #include "ui_MainWindow.h"    50 class MainWindow : 
public QMainWindow, 
public Ui::MainWindow {
    56   void                setCurrentLogFileName(
const QString &fileName);
    57   void                setCurrentModelFileName(
const QString &fileName);
    58   bool                saveLogFile(
const QString &logFileName);
    59   QString             strippedName(
const QString &fullFileName);
    62   void                setModelFileName(
const QString curModelFileName_h){curModelFileName=curModelFileName_h;};
    66   void                setOutputDirName(
string outputDirName_h){outputDirName = outputDirName_h.c_str();};
    67   void                addLayer(QString layerName_h, QString layerLabel_h);
    68   void                switchToLayer(QString layerName_h);
    69   void                updatePixel(QString layerName_h, 
int x_h, 
int y_h, QColor color_h);
    70   void                updateImage(QString layerName_h, 
const QImage &image_h);
    71   void                switchToLayerFromLayerSelector(
int layerIndex_h);
    73   void                treeViewerItemChangeValue(
string itemID, 
string newValue);
    74   void                treeViewerItemRemove(
string itemID);
    75   void                treeViewerAddItem(
string text, 
string itemID, 
string parentID); 
    76   void                processLogArea(
const QString& message_h);
    77   void                resetGUIForNewSimulation(); 
    80   void                receiveScenarioOptions(
const QVector<QString> &scenarios_h);
    84   void                currentModelFilenameChanged (QString);
    85   void                selectedScenarioName(
const QString &scenarioName_h);
    89   void                closeEvent(QCloseEvent *event); 
    90   void                resizeEvent(QResizeEvent *event); 
    96   void                startModelMainThread();
    97   void                stopModelMainThread();
    98   void                pauseOrResumeModelMainThread();
    99   void                openRecentFile(); 
   100   void                hideDebugMsgs(
bool hide);
   102   void                showDocumentation();
   116   enum { MaxRecentFiles = 5 };
   117   QAction *  recentFileActions[MaxRecentFiles];
   134   void                       createStatusBar();
   137   void                         writeSettings();
   138   void               updateRecentFileActions();
 
QString getModelFileName()
 
void setUnsavedStatus(bool unsavedStatus_h)
 
Thread manager. Responsable to manage the main thread and "speak" with the GUI. 
 
map< string, QTreeWidgetItem * > svIndex
Map containing the ID and the pointers to the status viewer. 
 
QAction * separatorAction
 
void setModelFileName(const QString curModelFileName_h)
 
QLabel * yearSBLabel
Status bar current year label. 
 
bool debugMsgsEnable
Allow debug messages to be show in the logArea. 
 
void setOutputDirName(string outputDirName_h)
 
QLabel * mainSBLabel
Status bar main label. 
 
ScenarioSelectionWidget * scenarioWidget
 
ThreadManager modelMainThread