HighGUI module with several controls inside button bar (former Patch #2178) (Patch #2809)
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 #2809 from ilya-lavrenov:tapi_copy_perf
History
Updated by Harald Schmidt about 12 years ago
Excuse me, it was my mistake to generate this patch,
I thought to be able just to modify pull request field but "duplicate" did what it said...
Updated by Andrey Kamaev almost 12 years ago
- Status changed from Open to Cancelled