19 #include <gwenhywfar/debug.h>
24 : m_parentId(parentId)
27 , m_type(WIN_SCOPE_TYPE_WINDOW) {
43 , m_type(WIN_SCOPE_TYPE_WINDOW) {
53 : m_parentId(parentId)
135 WinScopePtrList::iterator it;
140 if ((*it)->getId()==id)
150 return m_app->getActiveWindow();
169 WinScopePtrList::iterator it;
176 switch((*it)->getType()) {
184 fprintf(stderr,
"WinScope: id %08x, parent %08x, type %s\n",
186 (*it)->getParentId(),
214 while ((p=strchr(p,
'<'))) {
219 if (toupper(*t)==
'H') {
221 if (toupper(*t)==
'T') {
223 if (toupper(*t)==
'M') {
225 if (toupper(*t)==
'L') {
227 if (toupper(*t)==
'>') {
241 while ((p2=strchr(p2,
'<'))) {
246 if (toupper(*t)==
'/') {
248 if (toupper(*t)==
'H') {
250 if (toupper(*t)==
'T') {
252 if (toupper(*t)==
'M') {
254 if (toupper(*t)==
'L') {
256 if (toupper(*t)==
'>') {
271 int startPos=(p-text);
272 int endPos=(p2-text);
275 result=FXString(text);
276 result.erase(startPos, endPos);
280 return FXString(text);
294 while ((p=strchr(p,
'<'))) {
299 if (toupper(*t)==
'H') {
301 if (toupper(*t)==
'T') {
303 if (toupper(*t)==
'M') {
305 if (toupper(*t)==
'L') {
307 if (toupper(*t)==
'>') {
321 while ((p2=strchr(p2,
'<'))) {
326 if (toupper(*t)==
'/') {
328 if (toupper(*t)==
'H') {
330 if (toupper(*t)==
'T') {
332 if (toupper(*t)==
'M') {
334 if (toupper(*t)==
'L') {
336 if (toupper(*t)==
'>') {
349 return FXString(p, p2-p);
351 return FXString(text);
361 owner=
m_app->getActiveWindow();
364 if (!(foxDlg.
setup(owner))) {
378 owner=
m_app->getActiveWindow();
383 if (!(foxDlg->
setup(owner))) {
418 return foxDlg->
cont();
430 const char *patterns,
440 sCaption=FXString(caption);
450 str=FXString(s1, s2-s1);
459 if (str.contains(
'(')) {
460 if (!sPatterns.empty())
462 sPatterns+=str.before(
'(');
465 sPatterns+=str.substitute(
';',
',');
468 if (!sPatterns.empty())
470 sPatterns+=str.substitute(
';',
',');
480 owner=
m_app->getModalWindow();
482 owner=
m_app->getActiveWindow();
485 owner=
m_app->getRootWindow();
494 str=FXFileDialog::getOpenFilename(owner, sCaption, sPath, sPatterns, 0);
498 str=FXFileDialog::getSaveFilename(owner, sCaption, sPath, sPatterns, 0);
502 str=FXFileDialog::getOpenDirectory(owner, sCaption, sPath);
521 uint32_t fontFlags) {
533 strcasecmp(s, fontName)==0)
535 fnt=HtmlFont_List_Next(fnt);
545 uint32_t fontFlags) {
548 fnt=
findFont(fontName, fontSize, fontFlags);