14 #include "msdevstudio/MSconfig.h"
19 #ifdef HAVE_CONFIG_H // for VERSION
29 #include <qapplication.h>
30 #if QT_VERSION < 0x040000
32 #include <QtGui/QDesktopWidget>
35 #if QT_VERSION < 0x040000
36 #include <qassistantclient.h>
38 #include <QtAssistant/QAssistantClient>
50 using namespace hippodraw;
61 : m_active_window ( 0 ),
98 else if ( size == 1 ) {
121 QPoint w_pos = window -> pos ();
123 int pos = w_pos.
x() + static_cast <
int > ( 1.05 * w_size.
width () );
167 bool allhidden =
true;
168 #ifdef ITERATOR_MEMBER_DEFECT
171 list < CanvasWindow * > :: iterator first =
m_window_list.begin ();
174 allhidden = w->isMinimized ();
175 if ( allhidden ==
false )
break;
177 if ( allhidden ==
true ) {
189 #ifdef ITERATOR_MEMBER_DEFECT
192 list < CanvasWindow * > :: iterator first =
m_window_list.begin ();
218 #ifdef ITERATOR_MEMBER_DEFECT
221 list < CanvasWindow * > :: iterator first =
m_window_list.begin ();
224 window -> setAllowClose (
true );
225 window->close ( alsoDelete );
231 #if QT_VERSION < 0x040000
256 p.
setY ( p.
y() + 23 );
276 if ( w_size.
width() > insp_pos.
x () ) {
277 double x = insp_pos.
x ();
278 double w = w_size.
width ();
279 double scale = 0.90 * ( x / w );
281 cv -> scaleBy ( scale );
283 QSize size = window -> sizeHint ();
284 int width = static_cast <
int > ( 0.95 * insp_pos.
x () );
286 window -> resize ( size );
345 LPCTSTR module =
"qthippo.dll";
346 HMODULE handle = GetModuleHandle ( module );
348 TCHAR path[MAX_PATH];
349 DWORD count = GetModuleFileName ( handle, path, size );
353 exe_path.
remove ( module );
354 unsigned int len = exe_path.
length();
366 QString docs_path = exe_path +
"/doc";
372 #if QT_VERSION < 0x030200
382 QString page (
"%1/assist_root.html" );
383 page = page.
arg ( docs_path );