Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. Index: src/common/paws/pawscolorpromptwindow.cpp
  2. ===================================================================
  3. --- src/common/paws/pawscolorpromptwindow.cpp (Revision 6909)
  4. +++ src/common/paws/pawscolorpromptwindow.cpp (Arbeitskopie)
  5. @@ -122,12 +122,13 @@
  6. }
  7. else if (widget == cancelButton)
  8. {
  9. - if (action != NULL)
  10. + /*if (action != NULL) // commented this out, because by pressing "Cancel" array[0] was always set to "-1"
  11. {
  12. action->OnColorEntered("Cancel",0,-1);
  13. action = NULL;
  14. - }
  15. - parent->DeleteChild(this);
  16. + }*/
  17. + action = NULL;
  18. + parent->DeleteChild(this); //just delete the window
  19. return true;
  20. }
  21. return false;
  22. @@ -252,10 +253,10 @@
  23.  
  24. w->SetBackground("Scaling Window Background");
  25. PawsManager::GetSingleton().SetCurrentFocusedWidget(w);
  26. - w->BringToTop(w);
  27. + w->SetAlwaysOnTop(true);
  28.  
  29. w->Initialize(label, color, minColor, maxColor, action,name,param);
  30.  
  31. - w->SetMovable(true);
  32. + w->SetMovable(false);
  33. return w;
  34. }
  35. Index: src/common/paws/pawsyesnobox.cpp
  36. ===================================================================
  37. --- src/common/paws/pawsyesnobox.cpp (Revision 6909)
  38. +++ src/common/paws/pawsyesnobox.cpp (Arbeitskopie)
  39. @@ -135,8 +135,10 @@
  40. dialog->SetText( text );
  41. dialog->SetID( yesID, noID );
  42. dialog->Show();
  43. - PawsManager::GetSingleton().SetModalWidget( dialog );
  44. + PawsManager::GetSingleton().SetCurrentFocusedWidget( dialog );
  45. dialog->MoveTo( (PawsManager::GetSingleton().GetGraphics2D()->GetWidth() - dialog->GetActualWidth(512) ) / 2,
  46. (PawsManager::GetSingleton().GetGraphics2D()->GetHeight() - dialog->GetActualHeight(256))/2 );
  47. + dialog->SetAlwaysOnTop(true);
  48. + dialog->SetMovable(false);
  49. return dialog;
  50. }
  51. Index: src/common/paws/pawsnumberpromptwindow.cpp
  52. ===================================================================
  53. --- src/common/paws/pawsnumberpromptwindow.cpp (Revision 6909)
  54. +++ src/common/paws/pawsnumberpromptwindow.cpp (Arbeitskopie)
  55. @@ -259,7 +259,9 @@
  56. w->UseBorder();
  57. w->SetTitle( "Amount", "Scaling Title Bar", "center", "no" );
  58. w->SetBackground("Scaling Window Background");
  59. - PawsManager::GetSingleton().SetModalWidget(w);
  60. + PawsManager::GetSingleton().SetCurrentFocusedWidget(w);
  61. w->Initialize(label, number, minNumber, maxNumber, action,name,param);
  62. + w->SetAlwaysOnTop(true);
  63. + w->SetMovable(false);
  64. return w;
  65. }
  66. Index: src/common/paws/pawsmanager.cpp
  67. ===================================================================
  68. --- src/common/paws/pawsmanager.cpp (Revision 6909)
  69. +++ src/common/paws/pawsmanager.cpp (Arbeitskopie)
  70. @@ -1081,7 +1088,7 @@
  71. return localization->Translate(orig);
  72. }
  73.  
  74. -void PawsManager::CreateWarningBox( const char* message, pawsWidget* notify, bool modal )
  75. +void PawsManager::CreateWarningBox( const char* message, pawsWidget* notify, bool /*modal*/ )
  76. {
  77. pawsOkBox* ok = (pawsOkBox*)FindWidget("OkWindow");
  78. if ( !ok )
  79. @@ -1099,16 +1106,18 @@
  80. ok->SetText( message );
  81. ok->MoveTo( (graphics2D->GetWidth() - ok->GetActualWidth(512) ) / 2,
  82. (graphics2D->GetHeight() - ok->GetActualHeight(256))/2 );
  83. + ok->SetAlwaysOnTop(true);
  84. + ok->SetMovable(false);
  85.  
  86. if ( notify )
  87. ok->SetNotify( notify );
  88.  
  89. - if ( modal )
  90. - SetModalWidget( ok );
  91. +/* if ( modal )
  92. + SetModalWidget( ok ); */
  93. }
  94.  
  95.  
  96. -void PawsManager::CreateYesNoBox( const char* message, pawsWidget* notify, bool modal )
  97. +void PawsManager::CreateYesNoBox( const char* message, pawsWidget* notify, bool /*modal*/ )
  98. {
  99. pawsYesNoBox* yesNoBox = (pawsYesNoBox*)FindWidget("YesNoWindow");
  100.  
  101. @@ -1127,9 +1136,11 @@
  102. (graphics2D->GetHeight() - yesNoBox->GetActualHeight(256))/2 );
  103. yesNoBox->SetText( Translate(message) );
  104. yesNoBox->Show();
  105. + yesNoBox->SetAlwaysOnTop(true);
  106. + yesNoBox->SetMovable(false);
  107.  
  108. - if ( modal )
  109. - SetModalWidget(yesNoBox);
  110. +/* if ( modal )
  111. + SetModalWidget(yesNoBox); */
  112.  
  113. if ( notify )
  114. yesNoBox->SetNotify(notify);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement