HighGUI module with several controls inside button bar (former Patch #2178) (Patch #2809)


Added by Harald Schmidt about 12 years ago. Updated almost 12 years ago.


Status:Cancelled Start date:2012-08-24
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:highgui-gui
Target version:3.0
Affected version:branch 'master' (2.4.9) Operating System:
Difficulty: HW Platform:
Pull request:https://github.com/Itseez/opencv/pull/333

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

Revision 89e4118b
Added by Alexander Alekhin almost 11 years ago

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

Also available in: Atom PDF