• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

include/DGVMain.h

Go to the documentation of this file.
00001 
00022 #ifndef DGVMAIN_H_INCLUDED
00023 #define DGVMAIN_H_INCLUDED
00024 
00025 #include <QtGui/QMainWindow> //For base class
00026 #include <QtCore/QSignalMapper>
00027 
00028 #include "DGVImage.h"
00029 
00036 class DGV_EXPORT DGVMain : public QMainWindow
00037 {
00038     Q_OBJECT
00039 
00040 public:
00045     DGVMain(QWidget *parent = 0);
00050     ~DGVMain();
00051 
00056     inline void addWindowToWorkspace(QWidget *win)
00057     {   workspace->addWindow(win);  }
00062     void addImage(DGVImage *img);
00067     void addTable(DGVTable *tbl);
00072     void addPlot(DGVPlot *plot);
00073 
00074 protected slots:
00079     void displayImage(DGVImage *img);
00084     void displayTable(DGVTable *newTable);
00089     void displayPlot(DGVPlot *newPlot);
00090 
00095     void open();
00100     void save();
00105     void newTable();
00110     void newImage();
00111 
00112     void cut();
00113     void copy();
00114     void paste();
00115 
00116 protected:
00117     QWorkspace *workspace; 
00118     QSignalMapper *windowMapper; 
00119 
00121     //----File----
00122     QAction *actionOpen;
00123     QAction *actionSave;
00124     QAction *actionExit;
00125     //----New----
00126     QAction *actionNewTable;
00127     QAction *actionNewImage;
00128     //----Windows----
00129     QAction *actionCascade;
00130     QAction *actionTile;
00131 
00133     QMenuBar *menuBar;
00134     QMenu *menuFile;
00135     QMenu *menuNew;
00136     QMenu *menuWindows;
00137 
00138     void createMenu();
00139     void createConnections();
00140 
00141 };
00142 
00143 #endif // DGVMAIN_H_INCLUDED

Generated on Wed Sep 8 2010 01:36:51 for DGV by  doxygen 1.7.1