0.3.1
[qanava.git] / tests / terror / canMainWindow.h
blob94331d1ea4df011c76b850e36bae6933d043e25f
1 //-----------------------------------------------------------------------------
2 // This file is a part of the Qanava software.
3 //
4 // \file canMainWindow.h
5 // \author Benoit Autheman (benoit@libqanava.org)
6 // \date 2005 November 11
7 //-----------------------------------------------------------------------------
10 #ifndef canMainWindow_h
11 #define canMainWindow_h
14 // Qanava headers
15 #include "./qanGraph.h"
16 #include "../../src/qanGraphView.h"
19 #include "ui_canMainWindow.h"
22 // QT headers
23 #include <QMainWindow>
24 #include <QComboBox>
27 //-----------------------------------------------------------------------------
28 //!
29 /*!
30 \nosubgrouping
32 class MainWindow : public QMainWindow, public Ui::MainWindow
34 Q_OBJECT
36 public:
38 MainWindow( QWidget* parent = 0 );
40 virtual ~MainWindow( ) { }
42 private:
44 MainWindow( const MainWindow& );
46 MainWindow& operator=( const MainWindow& );
48 QComboBox* _cbGridType;
50 qan::GraphView* _graphView;
52 protected slots:
54 void gridChanged( int index );
56 void selectNode( qan::Node* node, QPoint p );
58 void showNodeTooltip( qan::Node* node, QPoint p );
60 void layoutGraph( );
62 private:
64 QComboBox* _cbLayoutType;
66 //-----------------------------------------------------------------------------
69 #endif //