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


Added by Harald Schmidt over 12 years ago. Updated over 9 years ago.


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

0%

Category:highgui-gui
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Any
Difficulty: HW Platform:Any
Pull request:

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


window.cpp (22 kB) Harald Schmidt, 2012-08-24 07:15 pm

window_QT.cpp (137.3 kB) Harald Schmidt, 2012-08-24 07:15 pm

highgui.hpp (9.4 kB) Harald Schmidt, 2012-08-24 07:15 pm

highgui_c.h (25.8 kB) Harald Schmidt, 2012-08-24 07:15 pm


Associated revisions

Revision f297ec55
Added by Roman Donchenko about 11 years ago

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

  • Affected version set to branch 'master' (2.4.9)

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

Also available in: Atom PDF