Files
cgal/GraphicsView/include/CGAL/Qt/DemosMainWindow.h
T
Laurent Rineau 5ddfd30c93 In src/CGALQt4:
- add the class CGAL::Qt::DemosMainWindow in libCGALQt4,
  - compile moc generated files separately

In demo/
  - new sub-directory demo/resources/ that contains, for now,
  about_CGAL.html
  - move the two triangulation demos from demo/GraphicsView to
  demo/Triangulation_2 (to prepare the inclusion in CGAL internal release).
  - For each demo, merge all .h and .cpp files. Each demo now has a ui
  file, a cpp file and a qrc file (and a html file for the "About demo..."
  menu entry).
  - rename the demos to Delaunay_triangulation_2(.exe) and
  Constrained_Delaunay_triangulation_2(.exe)
2008-07-01 13:18:39 +00:00

57 lines
1.2 KiB
C++

#ifndef CGAL_QT_DEMOS_MAIN_WINDOW_H
#define CGAL_QT_DEMOS_MAIN_WINDOW_H
#include <QMainWindow>
// forward declaration
class QLabel;
class QGraphicsView;
class QAction;
class QMenu;
namespace CGAL {
namespace Qt {
// forward declaration
class GraphicsViewNavigation;
class DemosMainWindow : public QMainWindow {
Q_OBJECT
private:
QMenu* getMenu(QString objectName, QString title);
void popupAboutBox(QString title, QString html_resource_name);
QMenu* getHelpMenu();
protected:
DemosMainWindow (QWidget * parent = 0, ::Qt::WindowFlags flags = 0 );
void setupStatusBar();
void addNavigation(QGraphicsView*);
void setupOptionsMenu(QMenu* menu = 0);
void addAboutCGAL(QMenu* menu = 0);
void addAboutDemo(QString htmlResourceName, QMenu* menu = 0);
protected slots:
void setUseAntialiasing(bool checked);
void setUseOpenGL(bool checked);
void popupAboutCGAL();
void popupAboutDemo();
protected:
QGraphicsView* view;
GraphicsViewNavigation* navigation;
QLabel* xycoord ;
QAction *actionUse_OpenGL;
QAction *actionUse_Antialiasing;
QAction *actionAbout;
QAction *actionAboutCGAL;
QString aboutHtmlResource;
}; // end class DemosMainWindow
} // namespace Qt
} // namespace CGAL
#endif // CGAL_QT_DEMOS_MAIN_WINDOW_H