33#include "ui_MainWindow.h"
50class MainWindow :
public QMainWindow,
public Ui::MainWindow {
67 void addLayer(QString layerName_h, QString layerLabel_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);
void stopModelMainThread()
void setCurrentLogFileName(const QString &fileName)
QString getModelFileName()
ScenarioSelectionWidget * scenarioWidget
ThreadManager modelMainThread
void treeViewerItemChangeValue(string itemID, string newValue)
Change value to an existing item in the Status Viewer.
void resetGUIForNewSimulation()
Reset the graphical elements for a new simulation // Send the request of getting the pixel info to th...
void treeViewerAddItem(string text, string itemID, string parentID)
e.g. manager_farmer_manager agents or agent_12345_ownedHa
void treeViewerItemRemove(string itemID)
void pauseOrResumeModelMainThread()
QLabel * yearSBLabel
Status bar current year label.
void closeEvent(QCloseEvent *event)
Manage the event of closing the application.
QString strippedName(const QString &fullFileName)
void setOutputDirName(string outputDirName_h)
void resizeEvent(QResizeEvent *event)
Manage the event of resizing the application.
void receiveScenarioOptions(const QVector< QString > &scenarios_h)
void updateRecentFileActions()
void currentModelFilenameChanged(QString)
void setUnsavedStatus(bool unsavedStatus_h)
void setModelFileName(const QString curModelFileName_h)
bool debugMsgsEnable
Allow debug messages to be show in the logArea.
void selectedScenarioName(const QString &scenarioName_h)
map< string, QTreeWidgetItem * > svIndex
Map containing the ID and the pointers to the status viewer.
QAction * separatorAction
void updateImage(QString layerName_h, const QImage &image_h)
void setCurrentModelFileName(const QString &fileName)
void addLayer(QString layerName_h, QString layerLabel_h)
void processLogArea(const QString &message_h)
void switchToLayer(QString layerName_h)
void updatePixel(QString layerName_h, int x_h, int y_h, QColor color_h)
QAction * recentFileActions[MaxRecentFiles]
void startModelMainThread()
void hideDebugMsgs(bool hide)
QLabel * mainSBLabel
Status bar main label.
bool saveLogFile(const QString &logFileName)
void switchToLayerFromLayerSelector(int layerIndex_h)
Thread manager. Responsable to manage the main thread and "speak" with the GUI.