0.3.1
[qanava.git] / tests / styles / canMainWindow.h
blob107aa31df0b4456169bc0dc09c44876ca360317c
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"
18 #include "ui_canMainWindow.h"
21 // QT headers
22 #include <QMainWindow>
23 #include <QComboBox>
26 //-----------------------------------------------------------------------------
27 //!
28 /*!
29 \nosubgrouping
31 class MainWindow : public QMainWindow, public Ui::MainWindow
33 Q_OBJECT
35 public:
37 MainWindow( QWidget* parent = 0 );
39 virtual ~MainWindow( ) { }
41 private:
43 MainWindow( const MainWindow& );
45 MainWindow& operator=( const MainWindow& );
47 QComboBox* _cbGridType;
49 qan::GraphView* _graphView;
51 protected slots:
53 void gridChanged( int index );
55 void selectNode( qan::Node* node, QPoint p );
57 void showNodeTooltip( qan::Node* node, QPoint p );
59 void layoutGraph( );
61 //-----------------------------------------------------------------------------
64 #endif //