X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/abbc64cf04a35ab3549d5c516f44c7c5921baa63..6e2b3026c6a496e81642c373796bd39dad33d2a6:/MainWindow.h?ds=sidebyside diff --git a/MainWindow.h b/MainWindow.h index ee51e4c..96fab67 100644 --- a/MainWindow.h +++ b/MainWindow.h @@ -12,7 +12,7 @@ class Dispatcher; class Parameters; class BlockLibraryWidget; class GroupWidget; -class BlockWidget; +class VHDLConverter; class Graph; // versioning related @@ -23,7 +23,9 @@ class Graph; // defines for menus -#define TRACE_MENU (quint8)1 +#define PROJECT_MENU (quint8)1 +#define ANALYSIS_MENU (quint8)2 +#define TOOLS_MENU (quint8)3 // defines for actions #define NONE_ACT (quint16)0 @@ -35,6 +37,9 @@ class Graph; #define PROJECT_CLOSE (quint16)16 #define PROJECT_LIB (quint16)32 +#define ANALYSIS_ANALYZE (quint16)1 +#define ANALYSIS_GENERATE (quint16)2 + #define OP_ADD (quint8)0 #define OP_REM (quint8)1 #define OP_RAZ (quint8)2 @@ -72,7 +77,6 @@ private: Parameters *params; BlockLibraryWidget *library; - bool isCurrentProject; QString absoluteFilename; QString checkNewVersion; @@ -90,8 +94,11 @@ private: QMenu* projectMenu; quint16 projectMenuEnb; + QMenu* analysisMenu; + quint16 analysisMenuEnb; QMenu* toolsMenu; + // actions for project QAction* newProject; QAction* openProject; QAction* saveProject; @@ -99,9 +106,12 @@ private: QAction* closeProject; QAction* openLibrary; - QAction *newBlockWidgetAct; - QAction *graphValidation; + // actions for graph analysis + QAction *graphAnalysis; + QAction *generateVHDL; + // actions for tools + QAction *vhdlToXmlAct; // versioning related quint8 versionMaj; @@ -110,17 +120,20 @@ private: public slots: void enableProjectActions(bool enbMenu, quint16 mask = 0, quint8 op = 0); // default : add nothing + void enableAnalysisActions(bool enbMenu, quint16 mask = 0, quint8 op = 0); // default : add nothing private slots: void slotNewProject(); void slotLoadProject(); void slotSaveProject(); void slotSaveAsProject(); - void slotCloseProject(); + bool slotCloseProject(); void slotOpenBlockLibrary(); - void slotNewBlockWidget(); - void slotGraphValidation(); + void slotGraphAnalysis(); + void slotGenerateVHDL(); + + void slotVHDLToXml(); void slotCheckNewVersion(QNetworkReply *reply); };