Commit 0c9eca79 authored by Yannick Verdie's avatar Yannick Verdie

QT new functions:

 - Finished toolbar: the last icon opens an external window with the trackbars inside
parent f5ab36f4
...@@ -75,7 +75,7 @@ enum { CV_STYLE_NORMAL = 0,//QFont::StyleNormal, ...@@ -75,7 +75,7 @@ enum { CV_STYLE_NORMAL = 0,//QFont::StyleNormal,
//the first bit is for normal or autoresize //the first bit is for normal or autoresize
//CV_WINDOW_NORMAL = 0x00000000 and CV_WINDOW_AUTOSIZE = 0x00000001 //CV_WINDOW_NORMAL = 0x00000000 and CV_WINDOW_AUTOSIZE = 0x00000001
//the secont bit is for the gui mode (normal or extended) //the secont bit is for the gui mode (normal or extended)
enum {CV_GUI_EXTENDED = 0x00000000, CV_GUI_NORMAL = 0x00000010}; enum {CV_GUI_EXPANDED = 0x00000000, CV_GUI_NORMAL = 0x00000010};
//for color cvScalar(blue_component, green_component, red\_component[, alpha_component]) //for color cvScalar(blue_component, green_component, red\_component[, alpha_component])
//and alpha= 0 <-> 0xFF (not transparent <-> transparent) //and alpha= 0 <-> 0xFF (not transparent <-> transparent)
......
This diff is collapsed.
...@@ -158,6 +158,22 @@ private: ...@@ -158,6 +158,22 @@ private:
}; };
class CvWinProperties : public QWidget
{
Q_OBJECT
public:
CvWinProperties(QString name,QWidget* parent);
~CvWinProperties();
QPointer<QBoxLayout> myLayout;
private:
void closeEvent ( QCloseEvent * e );
void showEvent ( QShowEvent * event ) ;
void hideEvent ( QHideEvent * event ) ;
};
class CvWindow : public QWidget class CvWindow : public QWidget
{ {
Q_OBJECT Q_OBJECT
...@@ -174,7 +190,7 @@ public: ...@@ -174,7 +190,7 @@ public:
void setOpenGLCallback(CvOpenGLCallback arg1,void* userdata); void setOpenGLCallback(CvOpenGLCallback arg1,void* userdata);
ViewPort* getView(); ViewPort* getView();
QPointer<QBoxLayout> layout; QPointer<QBoxLayout> myLayout;
QPointer<QStatusBar> myStatusBar; QPointer<QStatusBar> myStatusBar;
QPointer<QToolBar> myToolBar; QPointer<QToolBar> myToolBar;
QPointer<QLabel> myStatusBar_msg; QPointer<QLabel> myStatusBar_msg;
...@@ -189,6 +205,7 @@ protected: ...@@ -189,6 +205,7 @@ protected:
virtual void keyPressEvent(QKeyEvent *event); virtual void keyPressEvent(QKeyEvent *event);
private: private:
QPointer<CvWinProperties> parameters_window ;
QPointer<ViewPort> myview; QPointer<ViewPort> myview;
QVector<QAction*> vect_QActions; QVector<QAction*> vect_QActions;
QVector<QShortcut*> vect_QShortcuts; QVector<QShortcut*> vect_QShortcuts;
...@@ -201,6 +218,10 @@ private: ...@@ -201,6 +218,10 @@ private:
void createView(int mode); void createView(int mode);
void createStatusBar(); void createStatusBar();
void createLayout(); void createLayout();
void createParameterWindow();
private slots:
void displayPropertiesWin();
}; };
...@@ -256,7 +277,7 @@ public slots: ...@@ -256,7 +277,7 @@ public slots:
void siftWindowOnDown(); void siftWindowOnDown();
void resizeEvent ( QResizeEvent * ); void resizeEvent ( QResizeEvent * );
void saveView(); void saveView();
void displayPropertiesWin();
private: private:
QPoint mouseCoordinate; QPoint mouseCoordinate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment