HighGUI module with several controls inside button bar (former Patch #2178) (Patch #2304)
Description
It works with a button bar only in Qt Mode in the moment.
Some bigger changes were done in window_QT.cpp.
Attached is the source code for an enhanced HighGUI module. (original Patch #2178)
New functions inside HighGUI:
cv::adjustWindowPos( const string& winname, int xp, int xwp, int yp, int yhp );
cv::getButtonBarContent(const string& winname, int idx, char * txt );
cv::setButtonBarContent(const string& winname, int etype, int idx, char * cv::getCommandVec( const string& winname, vector<string> & stringVec, char* cmd = NULL );
cv::dispInfoBox( const string& winname, char* caption, const string& text );
attached:
window_QT.cpp
window.cpp
highgui.hpp
highgui_c.h
I compiled it with OpenCV242 Ubuntu 12.04 + Win7
Test Application buttonsqt.cpp available = Patch #2303
just copy it to samples/cpp
hope no bugs inside....
Dont hesitate to contact me in case of fail...
Thank You
Harald
Associated revisions
Merge pull request #2304 from mattvenn:master
History
Updated by Andrey Kamaev over 12 years ago
- Assignee deleted (
Andrey Kamaev)
Updated by Andrey Kamaev over 12 years ago
- Target version changed from 2.4.3 to 3.0
Updated by Kirill Kornyakov about 12 years ago
May be related to https://github.com/Itseez/opencv/pull/333
- Affected version set to branch 'master' (2.4.9)
Updated by Harald Schmidt about 12 years ago
Yes it is substituted by https://github.com/Itseez/opencv/pull/333
Updated by Maksim Shabunin over 9 years ago
- HW Platform set to Any
- Operating System set to Any
- Affected version changed from branch 'master' (2.4.9) to branch 'master' (3.0-dev)
- Status changed from Open to Cancelled