1baccf4d7SMatthew Wilber // AlertTest.cpp 2baccf4d7SMatthew Wilber #include "AlertTest.h" 3baccf4d7SMatthew Wilber #include <cppunit/Test.h> 4baccf4d7SMatthew Wilber #include <cppunit/TestCaller.h> 5baccf4d7SMatthew Wilber #include <cppunit/TestSuite.h> 6855c5b57SMatthew Wilber #include <iostream.h> 7baccf4d7SMatthew Wilber #include <stdio.h> 8baccf4d7SMatthew Wilber #include <string.h> 9baccf4d7SMatthew Wilber #include <Application.h> 10baccf4d7SMatthew Wilber #include <Alert.h> 11855c5b57SMatthew Wilber #include <Point.h> 12baccf4d7SMatthew Wilber #include <TextView.h> 13baccf4d7SMatthew Wilber #include <Button.h> 14baccf4d7SMatthew Wilber #include <Rect.h> 15baccf4d7SMatthew Wilber 16855c5b57SMatthew Wilber #define ASSERT_DEQUAL(x,y) CPPUNIT_ASSERT_DOUBLES_EQUAL((x),(y),0.01) 17855c5b57SMatthew Wilber 18aa44f14bSMatthew Wilber const char *k20X = "XXXXXXXXXXXXXXXXXXXX"; 19aa44f14bSMatthew Wilber const char *k40X = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 20aa44f14bSMatthew Wilber const char *k60X = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 21aa44f14bSMatthew Wilber 22855c5b57SMatthew Wilber // Required by CPPUNIT_ASSERT_EQUAL(rgb_color, rgb_color) 23855c5b57SMatthew Wilber bool operator==(const rgb_color &left, const rgb_color &right) 24855c5b57SMatthew Wilber { 25855c5b57SMatthew Wilber if (left.red == right.red && left.green == right.green && 26855c5b57SMatthew Wilber left.blue == right.blue && left.alpha == right.alpha) 27855c5b57SMatthew Wilber return true; 28855c5b57SMatthew Wilber else 29855c5b57SMatthew Wilber return false; 30855c5b57SMatthew Wilber } 31855c5b57SMatthew Wilber // Required by CPPUNIT_ASSERT_EQUAL(rgb_color, rgb_color) 32855c5b57SMatthew Wilber ostream &operator<<(ostream &stream, const rgb_color &clr) 33855c5b57SMatthew Wilber { 34855c5b57SMatthew Wilber return stream << "rgb_color(" << clr.red << ", " << 35855c5b57SMatthew Wilber clr.green << ", " << clr.blue << ", " << clr.alpha << ")"; 36855c5b57SMatthew Wilber } 37855c5b57SMatthew Wilber 38855c5b57SMatthew Wilber // For storing expected state of windows or views. 39855c5b57SMatthew Wilber struct GuiInfo { 40855c5b57SMatthew Wilber const char* label; 41855c5b57SMatthew Wilber float width; 42855c5b57SMatthew Wilber float height; 43855c5b57SMatthew Wilber BPoint topleft; 44855c5b57SMatthew Wilber }; 45855c5b57SMatthew Wilber 46855c5b57SMatthew Wilber // For storing all the information required to create and 47855c5b57SMatthew Wilber // verify the state of a BAlert object. 48855c5b57SMatthew Wilber class AlertTestInfo { 49855c5b57SMatthew Wilber public: 50855c5b57SMatthew Wilber AlertTestInfo(AlertTest *pTest); 51855c5b57SMatthew Wilber ~AlertTestInfo(); 52855c5b57SMatthew Wilber 53855c5b57SMatthew Wilber void SetWinInfo(const GuiInfo &winInfo); 54855c5b57SMatthew Wilber void SetTextViewInfo(const GuiInfo &textInfo); 55855c5b57SMatthew Wilber void SetButtonInfo(int32 btn, const GuiInfo &btnInfo); 56855c5b57SMatthew Wilber 57855c5b57SMatthew Wilber void SetButtonWidthMode(button_width widthMode); 58855c5b57SMatthew Wilber void SetButtonSpacingMode(button_spacing spacingMode); 59855c5b57SMatthew Wilber void SetAlertType(alert_type alertType); 60855c5b57SMatthew Wilber 61855c5b57SMatthew Wilber void GuiInfoTest(); 62855c5b57SMatthew Wilber 63855c5b57SMatthew Wilber private: 64855c5b57SMatthew Wilber AlertTest* fTest; 65855c5b57SMatthew Wilber GuiInfo fWinInfo; 66855c5b57SMatthew Wilber GuiInfo fTextInfo; 67855c5b57SMatthew Wilber GuiInfo fButtonInfo[3]; 68855c5b57SMatthew Wilber int32 fButtonCount; 69855c5b57SMatthew Wilber button_width fWidthMode; 70855c5b57SMatthew Wilber button_spacing fSpacingMode; 71855c5b57SMatthew Wilber alert_type fAlertType; 72855c5b57SMatthew Wilber }; 73855c5b57SMatthew Wilber 74855c5b57SMatthew Wilber AlertTestInfo::AlertTestInfo(AlertTest *pTest) 75855c5b57SMatthew Wilber { 76855c5b57SMatthew Wilber memset(this, 0, sizeof(AlertTestInfo)); 77855c5b57SMatthew Wilber 78855c5b57SMatthew Wilber fTest = pTest; 79855c5b57SMatthew Wilber fWidthMode = B_WIDTH_AS_USUAL; 80855c5b57SMatthew Wilber fSpacingMode = B_EVEN_SPACING; 81855c5b57SMatthew Wilber fAlertType = B_INFO_ALERT; 82855c5b57SMatthew Wilber } 83855c5b57SMatthew Wilber 84855c5b57SMatthew Wilber AlertTestInfo::~AlertTestInfo() 85855c5b57SMatthew Wilber { 86855c5b57SMatthew Wilber fTest = NULL; 87855c5b57SMatthew Wilber fButtonCount = 0; 88855c5b57SMatthew Wilber } 89855c5b57SMatthew Wilber 90855c5b57SMatthew Wilber void 91855c5b57SMatthew Wilber AlertTestInfo::SetWinInfo(const GuiInfo &winInfo) 92855c5b57SMatthew Wilber { 93855c5b57SMatthew Wilber fWinInfo = winInfo; 94855c5b57SMatthew Wilber } 95855c5b57SMatthew Wilber 96855c5b57SMatthew Wilber void 97855c5b57SMatthew Wilber AlertTestInfo::SetTextViewInfo(const GuiInfo &textInfo) 98855c5b57SMatthew Wilber { 99855c5b57SMatthew Wilber fTextInfo = textInfo; 100855c5b57SMatthew Wilber } 101855c5b57SMatthew Wilber 102855c5b57SMatthew Wilber void 103855c5b57SMatthew Wilber AlertTestInfo::SetButtonInfo(int32 btn, const GuiInfo &btnInfo) 104855c5b57SMatthew Wilber { 105855c5b57SMatthew Wilber if (btn < 0 || btn > 2 || btn > fButtonCount) { 106855c5b57SMatthew Wilber CPPUNIT_ASSERT(false); 107855c5b57SMatthew Wilber return; 108855c5b57SMatthew Wilber } 109855c5b57SMatthew Wilber fButtonInfo[btn] = btnInfo; 110855c5b57SMatthew Wilber if (btn == fButtonCount && fButtonCount < 3) 111855c5b57SMatthew Wilber fButtonCount++; 112855c5b57SMatthew Wilber } 113855c5b57SMatthew Wilber 114855c5b57SMatthew Wilber void 115855c5b57SMatthew Wilber AlertTestInfo::SetButtonWidthMode(button_width widthMode) 116855c5b57SMatthew Wilber { 117855c5b57SMatthew Wilber fWidthMode = widthMode; 118855c5b57SMatthew Wilber } 119855c5b57SMatthew Wilber 120855c5b57SMatthew Wilber void 121855c5b57SMatthew Wilber AlertTestInfo::SetButtonSpacingMode(button_spacing spacingMode) 122855c5b57SMatthew Wilber { 123855c5b57SMatthew Wilber fSpacingMode = spacingMode; 124855c5b57SMatthew Wilber } 125855c5b57SMatthew Wilber 126855c5b57SMatthew Wilber void 127855c5b57SMatthew Wilber AlertTestInfo::SetAlertType(alert_type alertType) 128855c5b57SMatthew Wilber { 129855c5b57SMatthew Wilber fAlertType = alertType; 130855c5b57SMatthew Wilber } 131855c5b57SMatthew Wilber 132855c5b57SMatthew Wilber void 133855c5b57SMatthew Wilber AlertTestInfo::GuiInfoTest() 134855c5b57SMatthew Wilber { 135855c5b57SMatthew Wilber fTest->NextSubTest(); 136855c5b57SMatthew Wilber // Dummy application object required to create Window objects. 137855c5b57SMatthew Wilber BApplication app("application/x-vnd.Haiku-interfacekit_alerttest"); 138855c5b57SMatthew Wilber BAlert *pAlert = new BAlert( 139855c5b57SMatthew Wilber fWinInfo.label, 140855c5b57SMatthew Wilber fTextInfo.label, 141855c5b57SMatthew Wilber fButtonInfo[0].label, 142855c5b57SMatthew Wilber fButtonInfo[1].label, 143855c5b57SMatthew Wilber fButtonInfo[2].label, 144855c5b57SMatthew Wilber fWidthMode, 145855c5b57SMatthew Wilber fSpacingMode, 146855c5b57SMatthew Wilber fAlertType 147855c5b57SMatthew Wilber ); 148855c5b57SMatthew Wilber CPPUNIT_ASSERT(pAlert); 149855c5b57SMatthew Wilber 150855c5b57SMatthew Wilber // Alert Window Width/Height 151855c5b57SMatthew Wilber fTest->NextSubTest(); 152855c5b57SMatthew Wilber ASSERT_DEQUAL(fWinInfo.width, pAlert->Bounds().Width()); 153855c5b57SMatthew Wilber ASSERT_DEQUAL(fWinInfo.height, pAlert->Bounds().Height()); 154855c5b57SMatthew Wilber 155855c5b57SMatthew Wilber // [k] MasterView 156855c5b57SMatthew Wilber fTest->NextSubTest(); 157855c5b57SMatthew Wilber BView *masterView = pAlert->ChildAt(0); 158855c5b57SMatthew Wilber CPPUNIT_ASSERT(masterView); 159855c5b57SMatthew Wilber 160855c5b57SMatthew Wilber // [k] MasterView Color 161855c5b57SMatthew Wilber fTest->NextSubTest(); 162855c5b57SMatthew Wilber CPPUNIT_ASSERT_EQUAL(ui_color(B_PANEL_BACKGROUND_COLOR), 163855c5b57SMatthew Wilber masterView->ViewColor()); 164855c5b57SMatthew Wilber 165855c5b57SMatthew Wilber // Test all the buttons 166855c5b57SMatthew Wilber BButton *btns[3] = { NULL }; 167855c5b57SMatthew Wilber for (int32 i = 0; i < 3; i++) { 168855c5b57SMatthew Wilber fTest->NextSubTest(); 169855c5b57SMatthew Wilber btns[i] = pAlert->ButtonAt(i); 170855c5b57SMatthew Wilber 171855c5b57SMatthew Wilber if (i >= fButtonCount) { 172855c5b57SMatthew Wilber // If there is should be no button at this index 173855c5b57SMatthew Wilber CPPUNIT_ASSERT_EQUAL((BButton*)NULL, btns[i]); 174855c5b57SMatthew Wilber } else { 175855c5b57SMatthew Wilber // If there should be a button at this index 176855c5b57SMatthew Wilber CPPUNIT_ASSERT(btns[i]); 177855c5b57SMatthew Wilber 178855c5b57SMatthew Wilber CPPUNIT_ASSERT( 179855c5b57SMatthew Wilber strcmp(fButtonInfo[i].label, btns[i]->Label()) == 0); 180855c5b57SMatthew Wilber 181855c5b57SMatthew Wilber ASSERT_DEQUAL(fButtonInfo[i].width, btns[i]->Bounds().Width()); 182855c5b57SMatthew Wilber 183855c5b57SMatthew Wilber ASSERT_DEQUAL(fButtonInfo[i].height, btns[i]->Bounds().Height()); 184855c5b57SMatthew Wilber 185855c5b57SMatthew Wilber BPoint pt = btns[i]->ConvertToParent(BPoint(0, 0)); 186855c5b57SMatthew Wilber ASSERT_DEQUAL(fButtonInfo[i].topleft.x, pt.x); 187855c5b57SMatthew Wilber ASSERT_DEQUAL(fButtonInfo[i].topleft.y, pt.y); 188855c5b57SMatthew Wilber 189855c5b57SMatthew Wilber if (i == fButtonCount - 1) { 190855c5b57SMatthew Wilber // Default button 191855c5b57SMatthew Wilber CPPUNIT_ASSERT_EQUAL(true, btns[i]->IsDefault()); 192855c5b57SMatthew Wilber } 193855c5b57SMatthew Wilber } 194855c5b57SMatthew Wilber } 195855c5b57SMatthew Wilber 196855c5b57SMatthew Wilber // [k] TextView 197855c5b57SMatthew Wilber fTest->NextSubTest(); 198855c5b57SMatthew Wilber BTextView *textView = pAlert->TextView(); 199855c5b57SMatthew Wilber CPPUNIT_ASSERT(textView); 200855c5b57SMatthew Wilber 201855c5b57SMatthew Wilber // [k] TextView ViewColor() 202855c5b57SMatthew Wilber fTest->NextSubTest(); 203855c5b57SMatthew Wilber CPPUNIT_ASSERT_EQUAL(ui_color(B_PANEL_BACKGROUND_COLOR), textView->ViewColor()); 204855c5b57SMatthew Wilber 205855c5b57SMatthew Wilber // [k] TextView IsEditable() 206855c5b57SMatthew Wilber fTest->NextSubTest(); 207855c5b57SMatthew Wilber CPPUNIT_ASSERT_EQUAL(false, textView->IsEditable()); 208855c5b57SMatthew Wilber 209855c5b57SMatthew Wilber // [k] TextView IsSelectable() 210855c5b57SMatthew Wilber fTest->NextSubTest(); 211855c5b57SMatthew Wilber CPPUNIT_ASSERT_EQUAL(false, textView->IsSelectable()); 212855c5b57SMatthew Wilber 213855c5b57SMatthew Wilber // [k] TextView DoesWordWrap() 214855c5b57SMatthew Wilber fTest->NextSubTest(); 215855c5b57SMatthew Wilber CPPUNIT_ASSERT_EQUAL(true, textView->DoesWordWrap()); 216855c5b57SMatthew Wilber 217855c5b57SMatthew Wilber // TextView Text 218855c5b57SMatthew Wilber fTest->NextSubTest(); 219855c5b57SMatthew Wilber CPPUNIT_ASSERT(strcmp(fTextInfo.label, textView->Text()) == 0); 220855c5b57SMatthew Wilber 221855c5b57SMatthew Wilber // TextView Width/Height 222855c5b57SMatthew Wilber fTest->NextSubTest(); 223855c5b57SMatthew Wilber ASSERT_DEQUAL(fTextInfo.width, textView->Bounds().Width()); 224855c5b57SMatthew Wilber ASSERT_DEQUAL(fTextInfo.height, textView->Bounds().Height()); 225855c5b57SMatthew Wilber 226855c5b57SMatthew Wilber // TextView Position 227855c5b57SMatthew Wilber fTest->NextSubTest(); 228855c5b57SMatthew Wilber BPoint pt = textView->ConvertToParent(BPoint(0, 0)); 229855c5b57SMatthew Wilber ASSERT_DEQUAL(fTextInfo.topleft.x, pt.x); 230855c5b57SMatthew Wilber ASSERT_DEQUAL(fTextInfo.topleft.y, pt.y); 231855c5b57SMatthew Wilber 232855c5b57SMatthew Wilber delete pAlert; 233855c5b57SMatthew Wilber pAlert = NULL; 234855c5b57SMatthew Wilber } 235855c5b57SMatthew Wilber 236baccf4d7SMatthew Wilber // Suite 237baccf4d7SMatthew Wilber CppUnit::Test * 238baccf4d7SMatthew Wilber AlertTest::Suite() 239baccf4d7SMatthew Wilber { 240baccf4d7SMatthew Wilber CppUnit::TestSuite *suite = new CppUnit::TestSuite(); 241baccf4d7SMatthew Wilber typedef CppUnit::TestCaller<AlertTest> TC; 242baccf4d7SMatthew Wilber 2438ebac7a6SMatthew Wilber #define AT_ADDTEST(fn) (suite->addTest(new TC("Alert " #fn, &AlertTest::fn))) 244aa44f14bSMatthew Wilber 2458ebac7a6SMatthew Wilber ////// UW_ES_IA - One Button ////// 2468ebac7a6SMatthew Wilber AT_ADDTEST(empty_empty_UW_ES_IA); 2478ebac7a6SMatthew Wilber AT_ADDTEST(OK_X_UW_ES_IA); 2488ebac7a6SMatthew Wilber AT_ADDTEST(OK_60X_UW_ES_IA); 2498ebac7a6SMatthew Wilber AT_ADDTEST(twentyX_60X_UW_ES_IA); 2508ebac7a6SMatthew Wilber AT_ADDTEST(fortyX_60X_UW_ES_IA); 251aa44f14bSMatthew Wilber 252db441663SMatthew Wilber ////// LW_ES_IA - One Button ////// 253db441663SMatthew Wilber AT_ADDTEST(empty_empty_LW_ES_IA); 254db441663SMatthew Wilber AT_ADDTEST(OK_X_LW_ES_IA); 255db441663SMatthew Wilber AT_ADDTEST(twentyX_60X_LW_ES_IA); 256db441663SMatthew Wilber AT_ADDTEST(fortyX_60X_LW_ES_IA); 2578ebac7a6SMatthew Wilber 258b8544371SMatthew Wilber ////// WW_ES_IA - One Button ////// 259b8544371SMatthew Wilber AT_ADDTEST(empty_empty_WW_ES_IA); 260b8544371SMatthew Wilber AT_ADDTEST(OK_X_WW_ES_IA); 261b8544371SMatthew Wilber AT_ADDTEST(twentyX_60X_WW_ES_IA); 262b8544371SMatthew Wilber 2638ebac7a6SMatthew Wilber ////// UW_ES_EA - One Button ////// 2648ebac7a6SMatthew Wilber AT_ADDTEST(OK_X_UW_ES_EA); 2658ebac7a6SMatthew Wilber AT_ADDTEST(fortyX_60X_UW_ES_EA); 2668ebac7a6SMatthew Wilber 267*82cbd5d8SMatthew Wilber ////// UW_OS_IA - One Button ////// 268*82cbd5d8SMatthew Wilber AT_ADDTEST(OK_X_UW_OS_IA); 269*82cbd5d8SMatthew Wilber AT_ADDTEST(fortyX_60X_UW_OS_IA); 270*82cbd5d8SMatthew Wilber 271*82cbd5d8SMatthew Wilber ////// LW_OS_IA - One Button ////// 272*82cbd5d8SMatthew Wilber AT_ADDTEST(OK_X_LW_OS_IA); 273*82cbd5d8SMatthew Wilber 274*82cbd5d8SMatthew Wilber ////// UW_OS_EA - One Button ////// 275*82cbd5d8SMatthew Wilber AT_ADDTEST(OK_X_UW_OS_EA); 276*82cbd5d8SMatthew Wilber 277db441663SMatthew Wilber ////// UW_ES_IA - Two Button ////// 278db441663SMatthew Wilber AT_ADDTEST(OK_Cancel_60X_UW_ES_IA); 279db441663SMatthew Wilber AT_ADDTEST(twentyX_Cancel_60X_UW_ES_IA); 280db441663SMatthew Wilber AT_ADDTEST(twentyX_20X_60X_UW_ES_IA); 281db441663SMatthew Wilber 282db441663SMatthew Wilber ////// LW_ES_IA - Two Button ////// 283db441663SMatthew Wilber AT_ADDTEST(empty_empty_X_LW_ES_IA); 284db441663SMatthew Wilber AT_ADDTEST(OK_Cancel_60X_LW_ES_IA); 285db441663SMatthew Wilber 286b8544371SMatthew Wilber ////// WW_ES_IA - Two Button ////// 287b8544371SMatthew Wilber AT_ADDTEST(empty_empty_X_WW_ES_IA); 288b8544371SMatthew Wilber AT_ADDTEST(OK_Cancel_60X_WW_ES_IA); 289b8544371SMatthew Wilber AT_ADDTEST(twentyX_Cancel_60X_WW_ES_IA); 290b8544371SMatthew Wilber AT_ADDTEST(twentyX_20X_WW_ES_IA); 291b8544371SMatthew Wilber 2928ebac7a6SMatthew Wilber ////// UW_ES_EA - Two Button ////// 2938ebac7a6SMatthew Wilber AT_ADDTEST(OK_Cancel_60X_UW_ES_EA); 2948ebac7a6SMatthew Wilber AT_ADDTEST(twentyX_20X_60X_UW_ES_EA); 2958ebac7a6SMatthew Wilber 296*82cbd5d8SMatthew Wilber ////// UW_OS_IA - Two Button ////// 297*82cbd5d8SMatthew Wilber AT_ADDTEST(OK_Cancel_60X_UW_OS_IA); 298*82cbd5d8SMatthew Wilber 299*82cbd5d8SMatthew Wilber ////// LW_OS_IA - Two Button ////// 300*82cbd5d8SMatthew Wilber AT_ADDTEST(OK_Cancel_60X_LW_OS_IA); 301*82cbd5d8SMatthew Wilber 302*82cbd5d8SMatthew Wilber ////// LW_OS_EA - Two Button ////// 303*82cbd5d8SMatthew Wilber AT_ADDTEST(twentyX_OK_60X_LW_OS_EA); 304*82cbd5d8SMatthew Wilber 305db441663SMatthew Wilber ////// UW_ES_IA - Three Button ////// 306db441663SMatthew Wilber AT_ADDTEST(twentyX_20X_20X_60X_UW_ES_IA); 307db441663SMatthew Wilber 308db441663SMatthew Wilber ////// LW_ES_IA - Three Button ////// 309db441663SMatthew Wilber AT_ADDTEST(empty_empty_empty_X_LW_ES_IA); 310db441663SMatthew Wilber AT_ADDTEST(Yes_No_Cancel_X_LW_ES_IA); 311db441663SMatthew Wilber AT_ADDTEST(twentyX_20X_20X_60X_LW_ES_IA); 312db441663SMatthew Wilber 313b8544371SMatthew Wilber ////// WW_ES_IA - Three Button ////// 314b8544371SMatthew Wilber AT_ADDTEST(empty_empty_empty_X_WW_ES_IA); 315b8544371SMatthew Wilber AT_ADDTEST(Monkey_Dog_Cat_X_WW_ES_IA); 316b8544371SMatthew Wilber AT_ADDTEST(X_20X_X_WW_ES_IA); 317b8544371SMatthew Wilber AT_ADDTEST(Yes_No_Cancel_X_WW_ES_IA); 318b8544371SMatthew Wilber AT_ADDTEST(twentyX_20X_20X_60X_WW_ES_IA); 319b8544371SMatthew Wilber 3208ebac7a6SMatthew Wilber ////// UW_ES_EA - Three Button ////// 3218ebac7a6SMatthew Wilber AT_ADDTEST(twentyX_20X_20X_60X_UW_ES_EA); 322baccf4d7SMatthew Wilber 323*82cbd5d8SMatthew Wilber ////// UW_OS_IA - Three Button ////// 324*82cbd5d8SMatthew Wilber AT_ADDTEST(Yes_No_Cancel_60X_UW_OS_IA); 325*82cbd5d8SMatthew Wilber 326*82cbd5d8SMatthew Wilber ////// LW_OS_IA - Three Button ////// 327*82cbd5d8SMatthew Wilber AT_ADDTEST(Yes_No_Cancel_60X_LW_OS_IA); 328*82cbd5d8SMatthew Wilber 329*82cbd5d8SMatthew Wilber ////// WW_OS_IA - Three Button ////// 330*82cbd5d8SMatthew Wilber AT_ADDTEST(Monkey_Dog_Cat_60X_WW_OS_IA); 331*82cbd5d8SMatthew Wilber 332*82cbd5d8SMatthew Wilber ////// UW_OS_EA - Three Button ////// 333*82cbd5d8SMatthew Wilber AT_ADDTEST(twentyX_OK_Cancel_60X_UW_OS_EA); 334*82cbd5d8SMatthew Wilber 335baccf4d7SMatthew Wilber return suite; 336baccf4d7SMatthew Wilber } 337baccf4d7SMatthew Wilber 338baccf4d7SMatthew Wilber // setUp 339baccf4d7SMatthew Wilber void 340baccf4d7SMatthew Wilber AlertTest::setUp() 341baccf4d7SMatthew Wilber { 342baccf4d7SMatthew Wilber BTestCase::setUp(); 343baccf4d7SMatthew Wilber } 344baccf4d7SMatthew Wilber 345baccf4d7SMatthew Wilber // tearDown 346baccf4d7SMatthew Wilber void 347baccf4d7SMatthew Wilber AlertTest::tearDown() 348baccf4d7SMatthew Wilber { 349baccf4d7SMatthew Wilber BTestCase::tearDown(); 350baccf4d7SMatthew Wilber } 351baccf4d7SMatthew Wilber 352aa44f14bSMatthew Wilber ////// UW_ES_IA - One Button ////// 353aa44f14bSMatthew Wilber 354baccf4d7SMatthew Wilber void 355855c5b57SMatthew Wilber AlertTest::empty_empty_UW_ES_IA() 356baccf4d7SMatthew Wilber { 357855c5b57SMatthew Wilber AlertTestInfo ati(this); 358855c5b57SMatthew Wilber GuiInfo wi, ti, bi; 359855c5b57SMatthew Wilber wi.label = "alert1"; 360855c5b57SMatthew Wilber wi.width = 310.0f; 361855c5b57SMatthew Wilber wi.height = 64.0f; 362855c5b57SMatthew Wilber ati.SetWinInfo(wi); 363baccf4d7SMatthew Wilber 364855c5b57SMatthew Wilber ti.label = ""; 365855c5b57SMatthew Wilber ti.width = 245.0f; 366855c5b57SMatthew Wilber ti.height = 13.0f; 367855c5b57SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 368855c5b57SMatthew Wilber ati.SetTextViewInfo(ti); 369baccf4d7SMatthew Wilber 370855c5b57SMatthew Wilber bi.label = ""; 371855c5b57SMatthew Wilber bi.width = 75.0f; 372855c5b57SMatthew Wilber bi.height = 30.0f; 373855c5b57SMatthew Wilber bi.topleft.Set(229.0f, 28.0f); 374855c5b57SMatthew Wilber ati.SetButtonInfo(0, bi); 375baccf4d7SMatthew Wilber 376855c5b57SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 377855c5b57SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 378855c5b57SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 379baccf4d7SMatthew Wilber 380855c5b57SMatthew Wilber ati.GuiInfoTest(); 381855c5b57SMatthew Wilber } 382baccf4d7SMatthew Wilber 383855c5b57SMatthew Wilber void 384855c5b57SMatthew Wilber AlertTest::OK_X_UW_ES_IA() 385855c5b57SMatthew Wilber { 386855c5b57SMatthew Wilber AlertTestInfo ati(this); 387855c5b57SMatthew Wilber GuiInfo wi, ti, bi; 388855c5b57SMatthew Wilber wi.label = "alert1"; 389855c5b57SMatthew Wilber wi.width = 310.0f; 390855c5b57SMatthew Wilber wi.height = 64.0f; 391855c5b57SMatthew Wilber ati.SetWinInfo(wi); 392baccf4d7SMatthew Wilber 393855c5b57SMatthew Wilber ti.label = "X"; 394855c5b57SMatthew Wilber ti.width = 245.0f; 395855c5b57SMatthew Wilber ti.height = 13.0f; 396855c5b57SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 397855c5b57SMatthew Wilber ati.SetTextViewInfo(ti); 398baccf4d7SMatthew Wilber 399855c5b57SMatthew Wilber bi.label = "OK"; 400855c5b57SMatthew Wilber bi.width = 75.0f; 401855c5b57SMatthew Wilber bi.height = 30.0f; 402855c5b57SMatthew Wilber bi.topleft.Set(229.0f, 28.0f); 403855c5b57SMatthew Wilber ati.SetButtonInfo(0, bi); 404855c5b57SMatthew Wilber 405855c5b57SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 406855c5b57SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 407855c5b57SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 408855c5b57SMatthew Wilber 409855c5b57SMatthew Wilber ati.GuiInfoTest(); 410855c5b57SMatthew Wilber } 411855c5b57SMatthew Wilber 412855c5b57SMatthew Wilber void 413855c5b57SMatthew Wilber AlertTest::OK_60X_UW_ES_IA() 414855c5b57SMatthew Wilber { 415855c5b57SMatthew Wilber AlertTestInfo ati(this); 416855c5b57SMatthew Wilber GuiInfo wi, ti, bi; 417855c5b57SMatthew Wilber wi.label = "alert1"; 418855c5b57SMatthew Wilber wi.width = 310.0f; 419855c5b57SMatthew Wilber wi.height = 77.0f; 420855c5b57SMatthew Wilber ati.SetWinInfo(wi); 421855c5b57SMatthew Wilber 422aa44f14bSMatthew Wilber ti.label = k60X; 423855c5b57SMatthew Wilber ti.width = 245.0f; 424855c5b57SMatthew Wilber ti.height = 26.0f; 425855c5b57SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 426855c5b57SMatthew Wilber ati.SetTextViewInfo(ti); 427855c5b57SMatthew Wilber 428855c5b57SMatthew Wilber bi.label = "OK"; 429855c5b57SMatthew Wilber bi.width = 75.0f; 430855c5b57SMatthew Wilber bi.height = 30.0f; 431855c5b57SMatthew Wilber bi.topleft.Set(229.0f, 41.0f); 432855c5b57SMatthew Wilber ati.SetButtonInfo(0, bi); 433855c5b57SMatthew Wilber 434855c5b57SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 435855c5b57SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 436855c5b57SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 437855c5b57SMatthew Wilber 438855c5b57SMatthew Wilber ati.GuiInfoTest(); 439baccf4d7SMatthew Wilber } 440baccf4d7SMatthew Wilber 441aa44f14bSMatthew Wilber void 442aa44f14bSMatthew Wilber AlertTest::twentyX_60X_UW_ES_IA() 443aa44f14bSMatthew Wilber { 444aa44f14bSMatthew Wilber AlertTestInfo ati(this); 445aa44f14bSMatthew Wilber GuiInfo wi, ti, bi; 446aa44f14bSMatthew Wilber wi.label = "alert1"; 447aa44f14bSMatthew Wilber wi.width = 310.0f; 448aa44f14bSMatthew Wilber wi.height = 77.0f; 449aa44f14bSMatthew Wilber ati.SetWinInfo(wi); 450aa44f14bSMatthew Wilber 451aa44f14bSMatthew Wilber ti.label = k60X; 452aa44f14bSMatthew Wilber ti.width = 245.0f; 453aa44f14bSMatthew Wilber ti.height = 26.0f; 454aa44f14bSMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 455aa44f14bSMatthew Wilber ati.SetTextViewInfo(ti); 456aa44f14bSMatthew Wilber 457aa44f14bSMatthew Wilber bi.label = k20X; 458aa44f14bSMatthew Wilber bi.width = 160.0f; 459aa44f14bSMatthew Wilber bi.height = 30.0f; 460aa44f14bSMatthew Wilber bi.topleft.Set(144.0f, 41.0f); 461aa44f14bSMatthew Wilber ati.SetButtonInfo(0, bi); 462aa44f14bSMatthew Wilber 463aa44f14bSMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 464aa44f14bSMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 465aa44f14bSMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 466aa44f14bSMatthew Wilber 467aa44f14bSMatthew Wilber ati.GuiInfoTest(); 468aa44f14bSMatthew Wilber } 469aa44f14bSMatthew Wilber 470aa44f14bSMatthew Wilber void 471aa44f14bSMatthew Wilber AlertTest::fortyX_60X_UW_ES_IA() 472aa44f14bSMatthew Wilber { 473aa44f14bSMatthew Wilber AlertTestInfo ati(this); 474aa44f14bSMatthew Wilber GuiInfo wi, ti, bi; 475aa44f14bSMatthew Wilber wi.label = "alert1"; 476aa44f14bSMatthew Wilber wi.width = 365.0f; 477aa44f14bSMatthew Wilber wi.height = 77.0f; 478aa44f14bSMatthew Wilber ati.SetWinInfo(wi); 479aa44f14bSMatthew Wilber 480aa44f14bSMatthew Wilber ti.label = k60X; 481aa44f14bSMatthew Wilber ti.width = 300.0f; 482aa44f14bSMatthew Wilber ti.height = 26.0f; 483aa44f14bSMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 484aa44f14bSMatthew Wilber ati.SetTextViewInfo(ti); 485aa44f14bSMatthew Wilber 486aa44f14bSMatthew Wilber bi.label = k40X; 487aa44f14bSMatthew Wilber bi.width = 300.0f; 488aa44f14bSMatthew Wilber bi.height = 30.0f; 489aa44f14bSMatthew Wilber bi.topleft.Set(59.0f, 41.0f); 490aa44f14bSMatthew Wilber ati.SetButtonInfo(0, bi); 491aa44f14bSMatthew Wilber 492aa44f14bSMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 493aa44f14bSMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 494aa44f14bSMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 495aa44f14bSMatthew Wilber 496aa44f14bSMatthew Wilber ati.GuiInfoTest(); 497aa44f14bSMatthew Wilber } 498aa44f14bSMatthew Wilber 499db441663SMatthew Wilber ////// LW_ES_IA - One Button ////// 500db441663SMatthew Wilber 501db441663SMatthew Wilber void 502db441663SMatthew Wilber AlertTest::empty_empty_LW_ES_IA() 503db441663SMatthew Wilber { 504db441663SMatthew Wilber AlertTestInfo ati(this); 505db441663SMatthew Wilber GuiInfo wi, ti, bi; 506db441663SMatthew Wilber wi.label = "alert1"; 507db441663SMatthew Wilber wi.width = 310.0f; 508db441663SMatthew Wilber wi.height = 64.0f; 509db441663SMatthew Wilber ati.SetWinInfo(wi); 510db441663SMatthew Wilber 511db441663SMatthew Wilber ti.label = ""; 512db441663SMatthew Wilber ti.width = 245.0f; 513db441663SMatthew Wilber ti.height = 13.0f; 514db441663SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 515db441663SMatthew Wilber ati.SetTextViewInfo(ti); 516db441663SMatthew Wilber 517db441663SMatthew Wilber bi.label = ""; 518db441663SMatthew Wilber bi.width = 20.0f; 519db441663SMatthew Wilber bi.height = 30.0f; 520db441663SMatthew Wilber bi.topleft.Set(284.0f, 28.0f); 521db441663SMatthew Wilber ati.SetButtonInfo(0, bi); 522db441663SMatthew Wilber 523db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 524db441663SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 525db441663SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 526db441663SMatthew Wilber 527db441663SMatthew Wilber ati.GuiInfoTest(); 528db441663SMatthew Wilber } 529db441663SMatthew Wilber 530db441663SMatthew Wilber void 531db441663SMatthew Wilber AlertTest::OK_X_LW_ES_IA() 532db441663SMatthew Wilber { 533db441663SMatthew Wilber AlertTestInfo ati(this); 534db441663SMatthew Wilber GuiInfo wi, ti, bi; 535db441663SMatthew Wilber wi.label = "alert1"; 536db441663SMatthew Wilber wi.width = 310.0f; 537db441663SMatthew Wilber wi.height = 64.0f; 538db441663SMatthew Wilber ati.SetWinInfo(wi); 539db441663SMatthew Wilber 540db441663SMatthew Wilber ti.label = "X"; 541db441663SMatthew Wilber ti.width = 245.0f; 542db441663SMatthew Wilber ti.height = 13.0f; 543db441663SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 544db441663SMatthew Wilber ati.SetTextViewInfo(ti); 545db441663SMatthew Wilber 546db441663SMatthew Wilber bi.label = "OK"; 547db441663SMatthew Wilber bi.width = 35.0f; 548db441663SMatthew Wilber bi.height = 30.0f; 549db441663SMatthew Wilber bi.topleft.Set(269.0f, 28.0f); 550db441663SMatthew Wilber ati.SetButtonInfo(0, bi); 551db441663SMatthew Wilber 552db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 553db441663SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 554db441663SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 555db441663SMatthew Wilber 556db441663SMatthew Wilber ati.GuiInfoTest(); 557db441663SMatthew Wilber } 558db441663SMatthew Wilber 559db441663SMatthew Wilber void 560db441663SMatthew Wilber AlertTest::twentyX_60X_LW_ES_IA() 561db441663SMatthew Wilber { 562db441663SMatthew Wilber AlertTestInfo ati(this); 563db441663SMatthew Wilber GuiInfo wi, ti, bi; 564db441663SMatthew Wilber wi.label = "alert1"; 565db441663SMatthew Wilber wi.width = 310.0f; 566db441663SMatthew Wilber wi.height = 77.0f; 567db441663SMatthew Wilber ati.SetWinInfo(wi); 568db441663SMatthew Wilber 569db441663SMatthew Wilber ti.label = k60X; 570db441663SMatthew Wilber ti.width = 245.0f; 571db441663SMatthew Wilber ti.height = 26.0f; 572db441663SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 573db441663SMatthew Wilber ati.SetTextViewInfo(ti); 574db441663SMatthew Wilber 575db441663SMatthew Wilber bi.label = k20X; 576db441663SMatthew Wilber bi.width = 160.0f; 577db441663SMatthew Wilber bi.height = 30.0f; 578db441663SMatthew Wilber bi.topleft.Set(144.0f, 41.0f); 579db441663SMatthew Wilber ati.SetButtonInfo(0, bi); 580db441663SMatthew Wilber 581db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 582db441663SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 583db441663SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 584db441663SMatthew Wilber 585db441663SMatthew Wilber ati.GuiInfoTest(); 586db441663SMatthew Wilber } 587db441663SMatthew Wilber 588db441663SMatthew Wilber void 589db441663SMatthew Wilber AlertTest::fortyX_60X_LW_ES_IA() 590db441663SMatthew Wilber { 591db441663SMatthew Wilber AlertTestInfo ati(this); 592db441663SMatthew Wilber GuiInfo wi, ti, bi; 593db441663SMatthew Wilber wi.label = "alert1"; 594db441663SMatthew Wilber wi.width = 365.0f; 595db441663SMatthew Wilber wi.height = 77.0f; 596db441663SMatthew Wilber ati.SetWinInfo(wi); 597db441663SMatthew Wilber 598db441663SMatthew Wilber ti.label = k60X; 599db441663SMatthew Wilber ti.width = 300.0f; 600db441663SMatthew Wilber ti.height = 26.0f; 601db441663SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 602db441663SMatthew Wilber ati.SetTextViewInfo(ti); 603db441663SMatthew Wilber 604db441663SMatthew Wilber bi.label = k40X; 605db441663SMatthew Wilber bi.width = 300.0f; 606db441663SMatthew Wilber bi.height = 30.0f; 607db441663SMatthew Wilber bi.topleft.Set(59.0f, 41.0f); 608db441663SMatthew Wilber ati.SetButtonInfo(0, bi); 609db441663SMatthew Wilber 610db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 611db441663SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 612db441663SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 613db441663SMatthew Wilber 614db441663SMatthew Wilber ati.GuiInfoTest(); 615db441663SMatthew Wilber } 616db441663SMatthew Wilber 617b8544371SMatthew Wilber ////// WW_ES_IA - One Button ////// 618b8544371SMatthew Wilber 619b8544371SMatthew Wilber void 620b8544371SMatthew Wilber AlertTest::empty_empty_WW_ES_IA() 621b8544371SMatthew Wilber { 622b8544371SMatthew Wilber AlertTestInfo ati(this); 623b8544371SMatthew Wilber GuiInfo wi, ti, bi; 624b8544371SMatthew Wilber wi.width = 310.0f; 625b8544371SMatthew Wilber wi.height = 64.0f; 626b8544371SMatthew Wilber ati.SetWinInfo(wi); 627b8544371SMatthew Wilber 628b8544371SMatthew Wilber ti.label = ""; 629b8544371SMatthew Wilber ti.width = 245.0f; 630b8544371SMatthew Wilber ti.height = 13.0f; 631b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 632b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 633b8544371SMatthew Wilber 634b8544371SMatthew Wilber bi.label = ""; 635b8544371SMatthew Wilber bi.width = 20.0f; 636b8544371SMatthew Wilber bi.height = 30.0f; 637b8544371SMatthew Wilber bi.topleft.Set(284.0f, 28.0f); 638b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 639b8544371SMatthew Wilber 640b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 641b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 642b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 643b8544371SMatthew Wilber 644b8544371SMatthew Wilber ati.GuiInfoTest(); 645b8544371SMatthew Wilber } 646b8544371SMatthew Wilber 647b8544371SMatthew Wilber void 648b8544371SMatthew Wilber AlertTest::OK_X_WW_ES_IA() 649b8544371SMatthew Wilber { 650b8544371SMatthew Wilber AlertTestInfo ati(this); 651b8544371SMatthew Wilber GuiInfo wi, ti, bi; 652b8544371SMatthew Wilber wi.width = 310.0f; 653b8544371SMatthew Wilber wi.height = 64.0f; 654b8544371SMatthew Wilber ati.SetWinInfo(wi); 655b8544371SMatthew Wilber 656b8544371SMatthew Wilber ti.label = "X"; 657b8544371SMatthew Wilber ti.width = 245.0f; 658b8544371SMatthew Wilber ti.height = 13.0f; 659b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 660b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 661b8544371SMatthew Wilber 662b8544371SMatthew Wilber bi.label = "OK"; 663b8544371SMatthew Wilber bi.width = 35.0f; 664b8544371SMatthew Wilber bi.height = 30.0f; 665b8544371SMatthew Wilber bi.topleft.Set(269.0f, 28.0f); 666b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 667b8544371SMatthew Wilber 668b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 669b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 670b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 671b8544371SMatthew Wilber 672b8544371SMatthew Wilber ati.GuiInfoTest(); 673b8544371SMatthew Wilber } 674b8544371SMatthew Wilber 675b8544371SMatthew Wilber void 676b8544371SMatthew Wilber AlertTest::twentyX_60X_WW_ES_IA() 677b8544371SMatthew Wilber { 678b8544371SMatthew Wilber AlertTestInfo ati(this); 679b8544371SMatthew Wilber GuiInfo wi, ti, bi; 680b8544371SMatthew Wilber wi.width = 310.0f; 681b8544371SMatthew Wilber wi.height = 77.0f; 682b8544371SMatthew Wilber ati.SetWinInfo(wi); 683b8544371SMatthew Wilber 684b8544371SMatthew Wilber ti.label = k60X; 685b8544371SMatthew Wilber ti.width = 245.0f; 686b8544371SMatthew Wilber ti.height = 26.0f; 687b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 688b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 689b8544371SMatthew Wilber 690b8544371SMatthew Wilber bi.label = k20X; 691b8544371SMatthew Wilber bi.width = 160.0f; 692b8544371SMatthew Wilber bi.height = 30.0f; 693b8544371SMatthew Wilber bi.topleft.Set(144.0f, 41.0f); 694b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 695b8544371SMatthew Wilber 696b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 697b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 698b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 699b8544371SMatthew Wilber 700b8544371SMatthew Wilber ati.GuiInfoTest(); 701b8544371SMatthew Wilber } 702b8544371SMatthew Wilber 703db441663SMatthew Wilber ////// UW_ES_EA - One Button ////// 704db441663SMatthew Wilber 705db441663SMatthew Wilber void 706db441663SMatthew Wilber AlertTest::OK_X_UW_ES_EA() 707db441663SMatthew Wilber { 708db441663SMatthew Wilber AlertTestInfo ati(this); 709db441663SMatthew Wilber GuiInfo wi, ti, bi; 710db441663SMatthew Wilber wi.label = "alert1"; 711db441663SMatthew Wilber wi.width = 310.0f; 712db441663SMatthew Wilber wi.height = 64.0f; 713db441663SMatthew Wilber ati.SetWinInfo(wi); 714db441663SMatthew Wilber 715db441663SMatthew Wilber ti.label = "X"; 716db441663SMatthew Wilber ti.width = 290.0f; 717db441663SMatthew Wilber ti.height = 13.0f; 718db441663SMatthew Wilber ti.topleft.Set(10.0f, 6.0f); 719db441663SMatthew Wilber ati.SetTextViewInfo(ti); 720db441663SMatthew Wilber 721db441663SMatthew Wilber bi.label = "OK"; 722db441663SMatthew Wilber bi.width = 75.0f; 723db441663SMatthew Wilber bi.height = 30.0f; 724db441663SMatthew Wilber bi.topleft.Set(229.0f, 28.0f); 725db441663SMatthew Wilber ati.SetButtonInfo(0, bi); 726db441663SMatthew Wilber 727db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 728db441663SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 729db441663SMatthew Wilber ati.SetAlertType(B_EMPTY_ALERT); 730db441663SMatthew Wilber 731db441663SMatthew Wilber ati.GuiInfoTest(); 732db441663SMatthew Wilber } 733db441663SMatthew Wilber 734db441663SMatthew Wilber void 735db441663SMatthew Wilber AlertTest::fortyX_60X_UW_ES_EA() 736db441663SMatthew Wilber { 737db441663SMatthew Wilber AlertTestInfo ati(this); 738db441663SMatthew Wilber GuiInfo wi, ti, bi; 739db441663SMatthew Wilber wi.label = "alert1"; 740db441663SMatthew Wilber wi.width = 320.0f; 741db441663SMatthew Wilber wi.height = 77.0f; 742db441663SMatthew Wilber ati.SetWinInfo(wi); 743db441663SMatthew Wilber 744db441663SMatthew Wilber ti.label = k60X; 745db441663SMatthew Wilber ti.width = 300.0f; 746db441663SMatthew Wilber ti.height = 26.0f; 747db441663SMatthew Wilber ti.topleft.Set(10.0f, 6.0f); 748db441663SMatthew Wilber ati.SetTextViewInfo(ti); 749db441663SMatthew Wilber 750db441663SMatthew Wilber bi.label = k40X; 751db441663SMatthew Wilber bi.width = 300.0f; 752db441663SMatthew Wilber bi.height = 30.0f; 753db441663SMatthew Wilber bi.topleft.Set(14.0f, 41.0f); 754db441663SMatthew Wilber ati.SetButtonInfo(0, bi); 755db441663SMatthew Wilber 756db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 757db441663SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 758db441663SMatthew Wilber ati.SetAlertType(B_EMPTY_ALERT); 759db441663SMatthew Wilber 760db441663SMatthew Wilber ati.GuiInfoTest(); 761db441663SMatthew Wilber } 762db441663SMatthew Wilber 763*82cbd5d8SMatthew Wilber ////// UW_OS_IA - One Button ////// 764*82cbd5d8SMatthew Wilber 765*82cbd5d8SMatthew Wilber void 766*82cbd5d8SMatthew Wilber AlertTest::OK_X_UW_OS_IA() 767*82cbd5d8SMatthew Wilber { 768*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 769*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 770*82cbd5d8SMatthew Wilber wi.label = "alert1"; 771*82cbd5d8SMatthew Wilber wi.width = 310.0f; 772*82cbd5d8SMatthew Wilber wi.height = 64.0f; 773*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 774*82cbd5d8SMatthew Wilber 775*82cbd5d8SMatthew Wilber ti.label = "X"; 776*82cbd5d8SMatthew Wilber ti.width = 245.0f; 777*82cbd5d8SMatthew Wilber ti.height = 13.0f; 778*82cbd5d8SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 779*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 780*82cbd5d8SMatthew Wilber 781*82cbd5d8SMatthew Wilber bi.label = "OK"; 782*82cbd5d8SMatthew Wilber bi.width = 75.0f; 783*82cbd5d8SMatthew Wilber bi.height = 30.0f; 784*82cbd5d8SMatthew Wilber bi.topleft.Set(229.0f, 28.0f); 785*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 786*82cbd5d8SMatthew Wilber 787*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 788*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 789*82cbd5d8SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 790*82cbd5d8SMatthew Wilber 791*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 792*82cbd5d8SMatthew Wilber } 793*82cbd5d8SMatthew Wilber 794*82cbd5d8SMatthew Wilber void 795*82cbd5d8SMatthew Wilber AlertTest::fortyX_60X_UW_OS_IA() 796*82cbd5d8SMatthew Wilber { 797*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 798*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 799*82cbd5d8SMatthew Wilber wi.width = 365.0f; 800*82cbd5d8SMatthew Wilber wi.height = 77.0f; 801*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 802*82cbd5d8SMatthew Wilber 803*82cbd5d8SMatthew Wilber ti.label = k60X; 804*82cbd5d8SMatthew Wilber ti.width = 300.0f; 805*82cbd5d8SMatthew Wilber ti.height = 26.0f; 806*82cbd5d8SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 807*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 808*82cbd5d8SMatthew Wilber 809*82cbd5d8SMatthew Wilber bi.label = k40X; 810*82cbd5d8SMatthew Wilber bi.width = 300.0f; 811*82cbd5d8SMatthew Wilber bi.height = 30.0f; 812*82cbd5d8SMatthew Wilber bi.topleft.Set(59.0f, 41.0f); 813*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 814*82cbd5d8SMatthew Wilber 815*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 816*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 817*82cbd5d8SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 818*82cbd5d8SMatthew Wilber 819*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 820*82cbd5d8SMatthew Wilber } 821*82cbd5d8SMatthew Wilber 822*82cbd5d8SMatthew Wilber ////// LW_OS_IA - One Button ////// 823*82cbd5d8SMatthew Wilber 824*82cbd5d8SMatthew Wilber void 825*82cbd5d8SMatthew Wilber AlertTest::OK_X_LW_OS_IA() 826*82cbd5d8SMatthew Wilber { 827*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 828*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 829*82cbd5d8SMatthew Wilber wi.label = "alert1"; 830*82cbd5d8SMatthew Wilber wi.width = 310.0f; 831*82cbd5d8SMatthew Wilber wi.height = 64.0f; 832*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 833*82cbd5d8SMatthew Wilber 834*82cbd5d8SMatthew Wilber ti.label = "X"; 835*82cbd5d8SMatthew Wilber ti.width = 245.0f; 836*82cbd5d8SMatthew Wilber ti.height = 13.0f; 837*82cbd5d8SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 838*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 839*82cbd5d8SMatthew Wilber 840*82cbd5d8SMatthew Wilber bi.label = "OK"; 841*82cbd5d8SMatthew Wilber bi.width = 35.0f; 842*82cbd5d8SMatthew Wilber bi.height = 30.0f; 843*82cbd5d8SMatthew Wilber bi.topleft.Set(269.0f, 28.0f); 844*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 845*82cbd5d8SMatthew Wilber 846*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 847*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 848*82cbd5d8SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 849*82cbd5d8SMatthew Wilber 850*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 851*82cbd5d8SMatthew Wilber } 852*82cbd5d8SMatthew Wilber 853*82cbd5d8SMatthew Wilber ////// UW_OS_EA - One Button ////// 854*82cbd5d8SMatthew Wilber 855*82cbd5d8SMatthew Wilber void 856*82cbd5d8SMatthew Wilber AlertTest::OK_X_UW_OS_EA() 857*82cbd5d8SMatthew Wilber { 858*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 859*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 860*82cbd5d8SMatthew Wilber wi.label = "alert1"; 861*82cbd5d8SMatthew Wilber wi.width = 310.0f; 862*82cbd5d8SMatthew Wilber wi.height = 64.0f; 863*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 864*82cbd5d8SMatthew Wilber 865*82cbd5d8SMatthew Wilber ti.label = "X"; 866*82cbd5d8SMatthew Wilber ti.width = 290.0f; 867*82cbd5d8SMatthew Wilber ti.height = 13.0f; 868*82cbd5d8SMatthew Wilber ti.topleft.Set(10.0f, 6.0f); 869*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 870*82cbd5d8SMatthew Wilber 871*82cbd5d8SMatthew Wilber bi.label = "OK"; 872*82cbd5d8SMatthew Wilber bi.width = 75.0f; 873*82cbd5d8SMatthew Wilber bi.height = 30.0f; 874*82cbd5d8SMatthew Wilber bi.topleft.Set(229.0f, 28.0f); 875*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 876*82cbd5d8SMatthew Wilber 877*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 878*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 879*82cbd5d8SMatthew Wilber ati.SetAlertType(B_EMPTY_ALERT); 880*82cbd5d8SMatthew Wilber 881*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 882*82cbd5d8SMatthew Wilber } 883*82cbd5d8SMatthew Wilber 884aa44f14bSMatthew Wilber ////// UW_ES_IA - Two Button ////// 885aa44f14bSMatthew Wilber 886aa44f14bSMatthew Wilber void 887aa44f14bSMatthew Wilber AlertTest::OK_Cancel_60X_UW_ES_IA() 888aa44f14bSMatthew Wilber { 889aa44f14bSMatthew Wilber AlertTestInfo ati(this); 890aa44f14bSMatthew Wilber GuiInfo wi, ti, bi; 891aa44f14bSMatthew Wilber wi.label = "alert1"; 892aa44f14bSMatthew Wilber wi.width = 310.0f; 893aa44f14bSMatthew Wilber wi.height = 77.0f; 894aa44f14bSMatthew Wilber ati.SetWinInfo(wi); 895aa44f14bSMatthew Wilber 896aa44f14bSMatthew Wilber ti.label = k60X; 897aa44f14bSMatthew Wilber ti.width = 245.0f; 898aa44f14bSMatthew Wilber ti.height = 26.0f; 899aa44f14bSMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 900aa44f14bSMatthew Wilber ati.SetTextViewInfo(ti); 901aa44f14bSMatthew Wilber 902aa44f14bSMatthew Wilber bi.label = "OK"; 903aa44f14bSMatthew Wilber bi.width = 75.0f; 904aa44f14bSMatthew Wilber bi.height = 24.0f; 905aa44f14bSMatthew Wilber bi.topleft.Set(148.0f, 44.0f); 906aa44f14bSMatthew Wilber ati.SetButtonInfo(0, bi); 907aa44f14bSMatthew Wilber bi.label = "Cancel"; 908aa44f14bSMatthew Wilber bi.width = 75.0f; 909aa44f14bSMatthew Wilber bi.height = 30.0f; 910aa44f14bSMatthew Wilber bi.topleft.Set(229.0f, 41.0f); 911aa44f14bSMatthew Wilber ati.SetButtonInfo(1, bi); 912aa44f14bSMatthew Wilber 913aa44f14bSMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 914aa44f14bSMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 915aa44f14bSMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 916aa44f14bSMatthew Wilber 917aa44f14bSMatthew Wilber ati.GuiInfoTest(); 918aa44f14bSMatthew Wilber } 919aa44f14bSMatthew Wilber 920aa44f14bSMatthew Wilber void 921aa44f14bSMatthew Wilber AlertTest::twentyX_Cancel_60X_UW_ES_IA() 922aa44f14bSMatthew Wilber { 923aa44f14bSMatthew Wilber AlertTestInfo ati(this); 924aa44f14bSMatthew Wilber GuiInfo wi, ti, bi; 925aa44f14bSMatthew Wilber wi.label = "alert1"; 926aa44f14bSMatthew Wilber wi.width = 310.0f; 927aa44f14bSMatthew Wilber wi.height = 77.0f; 928aa44f14bSMatthew Wilber ati.SetWinInfo(wi); 929aa44f14bSMatthew Wilber 930aa44f14bSMatthew Wilber ti.label = k60X; 931aa44f14bSMatthew Wilber ti.width = 245.0f; 932aa44f14bSMatthew Wilber ti.height = 26.0f; 933aa44f14bSMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 934aa44f14bSMatthew Wilber ati.SetTextViewInfo(ti); 935aa44f14bSMatthew Wilber 936aa44f14bSMatthew Wilber bi.label = k20X; 937aa44f14bSMatthew Wilber bi.width = 160.0f; 938aa44f14bSMatthew Wilber bi.height = 24.0f; 939aa44f14bSMatthew Wilber bi.topleft.Set(63.0f, 44.0f); 940aa44f14bSMatthew Wilber ati.SetButtonInfo(0, bi); 941aa44f14bSMatthew Wilber bi.label = "Cancel"; 942aa44f14bSMatthew Wilber bi.width = 75.0f; 943aa44f14bSMatthew Wilber bi.height = 30.0f; 944aa44f14bSMatthew Wilber bi.topleft.Set(229.0f, 41.0f); 945aa44f14bSMatthew Wilber ati.SetButtonInfo(1, bi); 946aa44f14bSMatthew Wilber 947aa44f14bSMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 948aa44f14bSMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 949aa44f14bSMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 950aa44f14bSMatthew Wilber 951aa44f14bSMatthew Wilber ati.GuiInfoTest(); 952aa44f14bSMatthew Wilber } 953aa44f14bSMatthew Wilber 954aa44f14bSMatthew Wilber void 955aa44f14bSMatthew Wilber AlertTest::twentyX_20X_60X_UW_ES_IA() 956aa44f14bSMatthew Wilber { 957aa44f14bSMatthew Wilber AlertTestInfo ati(this); 958aa44f14bSMatthew Wilber GuiInfo wi, ti, bi; 959aa44f14bSMatthew Wilber wi.label = "alert1"; 960aa44f14bSMatthew Wilber wi.width = 394.0f; 961aa44f14bSMatthew Wilber wi.height = 77.0f; 962aa44f14bSMatthew Wilber ati.SetWinInfo(wi); 963aa44f14bSMatthew Wilber 964aa44f14bSMatthew Wilber ti.label = k60X; 965aa44f14bSMatthew Wilber ti.width = 329.0f; 966aa44f14bSMatthew Wilber ti.height = 26.0f; 967aa44f14bSMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 968aa44f14bSMatthew Wilber ati.SetTextViewInfo(ti); 969aa44f14bSMatthew Wilber 970aa44f14bSMatthew Wilber bi.label = k20X; 971aa44f14bSMatthew Wilber bi.width = 160.0f; 972aa44f14bSMatthew Wilber bi.height = 24.0f; 973aa44f14bSMatthew Wilber bi.topleft.Set(62.0f, 44.0f); 974aa44f14bSMatthew Wilber ati.SetButtonInfo(0, bi); 975aa44f14bSMatthew Wilber bi.label = k20X; 976aa44f14bSMatthew Wilber bi.width = 160.0f; 977aa44f14bSMatthew Wilber bi.height = 30.0f; 978aa44f14bSMatthew Wilber bi.topleft.Set(228.0f, 41.0f); 979aa44f14bSMatthew Wilber ati.SetButtonInfo(1, bi); 980aa44f14bSMatthew Wilber 981aa44f14bSMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 982aa44f14bSMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 983aa44f14bSMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 984aa44f14bSMatthew Wilber 985aa44f14bSMatthew Wilber ati.GuiInfoTest(); 986aa44f14bSMatthew Wilber } 987aa44f14bSMatthew Wilber 988db441663SMatthew Wilber ////// LW_ES_IA - Two Button ////// 989aa44f14bSMatthew Wilber 990aa44f14bSMatthew Wilber void 991db441663SMatthew Wilber AlertTest::empty_empty_X_LW_ES_IA() 9928ebac7a6SMatthew Wilber { 9938ebac7a6SMatthew Wilber AlertTestInfo ati(this); 9948ebac7a6SMatthew Wilber GuiInfo wi, ti, bi; 9958ebac7a6SMatthew Wilber wi.label = "alert1"; 9968ebac7a6SMatthew Wilber wi.width = 310.0f; 9978ebac7a6SMatthew Wilber wi.height = 64.0f; 9988ebac7a6SMatthew Wilber ati.SetWinInfo(wi); 9998ebac7a6SMatthew Wilber 10008ebac7a6SMatthew Wilber ti.label = "X"; 1001db441663SMatthew Wilber ti.width = 245.0f; 10028ebac7a6SMatthew Wilber ti.height = 13.0f; 1003db441663SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 10048ebac7a6SMatthew Wilber ati.SetTextViewInfo(ti); 10058ebac7a6SMatthew Wilber 1006db441663SMatthew Wilber bi.label = ""; 1007db441663SMatthew Wilber bi.width = 20.0f; 1008db441663SMatthew Wilber bi.height = 24.0f; 1009db441663SMatthew Wilber bi.topleft.Set(258.0f, 31.0f); 10108ebac7a6SMatthew Wilber ati.SetButtonInfo(0, bi); 1011db441663SMatthew Wilber bi.label = ""; 1012db441663SMatthew Wilber bi.width = 20.0f; 1013db441663SMatthew Wilber bi.height = 30.0f; 1014db441663SMatthew Wilber bi.topleft.Set(284.0f, 28.0f); 1015db441663SMatthew Wilber ati.SetButtonInfo(1, bi); 10168ebac7a6SMatthew Wilber 1017db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 10188ebac7a6SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1019db441663SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 10208ebac7a6SMatthew Wilber 10218ebac7a6SMatthew Wilber ati.GuiInfoTest(); 10228ebac7a6SMatthew Wilber } 10238ebac7a6SMatthew Wilber 10248ebac7a6SMatthew Wilber void 1025db441663SMatthew Wilber AlertTest::OK_Cancel_60X_LW_ES_IA() 10268ebac7a6SMatthew Wilber { 10278ebac7a6SMatthew Wilber AlertTestInfo ati(this); 10288ebac7a6SMatthew Wilber GuiInfo wi, ti, bi; 10298ebac7a6SMatthew Wilber wi.label = "alert1"; 1030db441663SMatthew Wilber wi.width = 310.0f; 10318ebac7a6SMatthew Wilber wi.height = 77.0f; 10328ebac7a6SMatthew Wilber ati.SetWinInfo(wi); 10338ebac7a6SMatthew Wilber 10348ebac7a6SMatthew Wilber ti.label = k60X; 1035db441663SMatthew Wilber ti.width = 245.0f; 10368ebac7a6SMatthew Wilber ti.height = 26.0f; 1037db441663SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 10388ebac7a6SMatthew Wilber ati.SetTextViewInfo(ti); 10398ebac7a6SMatthew Wilber 1040db441663SMatthew Wilber bi.label = "OK"; 1041db441663SMatthew Wilber bi.width = 35.0f; 1042db441663SMatthew Wilber bi.height = 24.0f; 1043db441663SMatthew Wilber bi.topleft.Set(211.0f, 44.0f); 10448ebac7a6SMatthew Wilber ati.SetButtonInfo(0, bi); 1045db441663SMatthew Wilber bi.label = "Cancel"; 1046db441663SMatthew Wilber bi.width = 52.0f; 1047db441663SMatthew Wilber bi.height = 30.0f; 1048db441663SMatthew Wilber bi.topleft.Set(252.0f, 41.0f); 1049db441663SMatthew Wilber ati.SetButtonInfo(1, bi); 10508ebac7a6SMatthew Wilber 1051db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 10528ebac7a6SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1053db441663SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 10548ebac7a6SMatthew Wilber 10558ebac7a6SMatthew Wilber ati.GuiInfoTest(); 10568ebac7a6SMatthew Wilber } 10578ebac7a6SMatthew Wilber 1058b8544371SMatthew Wilber ////// WW_ES_IA - Two Button ////// 1059b8544371SMatthew Wilber 1060b8544371SMatthew Wilber void 1061b8544371SMatthew Wilber AlertTest::empty_empty_X_WW_ES_IA() 1062b8544371SMatthew Wilber { 1063b8544371SMatthew Wilber AlertTestInfo ati(this); 1064b8544371SMatthew Wilber GuiInfo wi, ti, bi; 1065b8544371SMatthew Wilber wi.width = 310.0f; 1066b8544371SMatthew Wilber wi.height = 64.0f; 1067b8544371SMatthew Wilber ati.SetWinInfo(wi); 1068b8544371SMatthew Wilber 1069b8544371SMatthew Wilber ti.label = "X"; 1070b8544371SMatthew Wilber ti.width = 245.0f; 1071b8544371SMatthew Wilber ti.height = 13.0f; 1072b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1073b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 1074b8544371SMatthew Wilber 1075b8544371SMatthew Wilber bi.label = ""; 1076b8544371SMatthew Wilber bi.width = 20.0f; 1077b8544371SMatthew Wilber bi.height = 24.0f; 1078b8544371SMatthew Wilber bi.topleft.Set(258.0f, 31.0f); 1079b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 1080b8544371SMatthew Wilber bi.label = ""; 1081b8544371SMatthew Wilber bi.width = 20.0f; 1082b8544371SMatthew Wilber bi.height = 30.0f; 1083b8544371SMatthew Wilber bi.topleft.Set(284.0f, 28.0f); 1084b8544371SMatthew Wilber ati.SetButtonInfo(1, bi); 1085b8544371SMatthew Wilber 1086b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 1087b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1088b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1089b8544371SMatthew Wilber 1090b8544371SMatthew Wilber ati.GuiInfoTest(); 1091b8544371SMatthew Wilber } 1092b8544371SMatthew Wilber 1093b8544371SMatthew Wilber void 1094b8544371SMatthew Wilber AlertTest::OK_Cancel_60X_WW_ES_IA() 1095b8544371SMatthew Wilber { 1096b8544371SMatthew Wilber AlertTestInfo ati(this); 1097b8544371SMatthew Wilber GuiInfo wi, ti, bi; 1098b8544371SMatthew Wilber wi.width = 310.0f; 1099b8544371SMatthew Wilber wi.height = 77.0f; 1100b8544371SMatthew Wilber ati.SetWinInfo(wi); 1101b8544371SMatthew Wilber 1102b8544371SMatthew Wilber ti.label = k60X; 1103b8544371SMatthew Wilber ti.width = 245.0f; 1104b8544371SMatthew Wilber ti.height = 26.0f; 1105b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1106b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 1107b8544371SMatthew Wilber 1108b8544371SMatthew Wilber bi.label = "OK"; 1109b8544371SMatthew Wilber bi.width = 52.0f; 1110b8544371SMatthew Wilber bi.height = 24.0f; 1111b8544371SMatthew Wilber bi.topleft.Set(194.0f, 44.0f); 1112b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 1113b8544371SMatthew Wilber bi.label = "Cancel"; 1114b8544371SMatthew Wilber bi.width = 52.0f; 1115b8544371SMatthew Wilber bi.height = 30.0f; 1116b8544371SMatthew Wilber bi.topleft.Set(252.0f, 41.0f); 1117b8544371SMatthew Wilber ati.SetButtonInfo(1, bi); 1118b8544371SMatthew Wilber 1119b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 1120b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1121b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1122b8544371SMatthew Wilber 1123b8544371SMatthew Wilber ati.GuiInfoTest(); 1124b8544371SMatthew Wilber } 1125b8544371SMatthew Wilber 1126b8544371SMatthew Wilber void 1127b8544371SMatthew Wilber AlertTest::twentyX_Cancel_60X_WW_ES_IA() 1128b8544371SMatthew Wilber { 1129b8544371SMatthew Wilber AlertTestInfo ati(this); 1130b8544371SMatthew Wilber GuiInfo wi, ti, bi; 1131b8544371SMatthew Wilber wi.width = 394.0f; 1132b8544371SMatthew Wilber wi.height = 77.0f; 1133b8544371SMatthew Wilber ati.SetWinInfo(wi); 1134b8544371SMatthew Wilber 1135b8544371SMatthew Wilber ti.label = k60X; 1136b8544371SMatthew Wilber ti.width = 329.0f; 1137b8544371SMatthew Wilber ti.height = 26.0f; 1138b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1139b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 1140b8544371SMatthew Wilber 1141b8544371SMatthew Wilber bi.label = k20X; 1142b8544371SMatthew Wilber bi.width = 160.0f; 1143b8544371SMatthew Wilber bi.height = 24.0f; 1144b8544371SMatthew Wilber bi.topleft.Set(62.0f, 44.0f); 1145b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 1146b8544371SMatthew Wilber bi.label = "Cancel"; 1147b8544371SMatthew Wilber bi.width = 160.0f; 1148b8544371SMatthew Wilber bi.height = 30.0f; 1149b8544371SMatthew Wilber bi.topleft.Set(228.0f, 41.0f); 1150b8544371SMatthew Wilber ati.SetButtonInfo(1, bi); 1151b8544371SMatthew Wilber 1152b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 1153b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1154b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1155b8544371SMatthew Wilber 1156b8544371SMatthew Wilber ati.GuiInfoTest(); 1157b8544371SMatthew Wilber } 1158b8544371SMatthew Wilber 1159b8544371SMatthew Wilber void 1160b8544371SMatthew Wilber AlertTest::twentyX_20X_WW_ES_IA() 1161b8544371SMatthew Wilber { 1162b8544371SMatthew Wilber AlertTestInfo ati(this); 1163b8544371SMatthew Wilber GuiInfo wi, ti, bi; 1164b8544371SMatthew Wilber wi.width = 394.0f; 1165b8544371SMatthew Wilber wi.height = 77.0f; 1166b8544371SMatthew Wilber ati.SetWinInfo(wi); 1167b8544371SMatthew Wilber 1168b8544371SMatthew Wilber ti.label = k60X; 1169b8544371SMatthew Wilber ti.width = 329.0f; 1170b8544371SMatthew Wilber ti.height = 26.0f; 1171b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1172b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 1173b8544371SMatthew Wilber 1174b8544371SMatthew Wilber bi.label = k20X; 1175b8544371SMatthew Wilber bi.width = 160.0f; 1176b8544371SMatthew Wilber bi.height = 24.0f; 1177b8544371SMatthew Wilber bi.topleft.Set(62.0f, 44.0f); 1178b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 1179b8544371SMatthew Wilber bi.label = k20X; 1180b8544371SMatthew Wilber bi.width = 160.0f; 1181b8544371SMatthew Wilber bi.height = 30.0f; 1182b8544371SMatthew Wilber bi.topleft.Set(228.0f, 41.0f); 1183b8544371SMatthew Wilber ati.SetButtonInfo(1, bi); 1184b8544371SMatthew Wilber 1185b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 1186b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1187b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1188b8544371SMatthew Wilber 1189b8544371SMatthew Wilber ati.GuiInfoTest(); 1190b8544371SMatthew Wilber } 1191db441663SMatthew Wilber 11928ebac7a6SMatthew Wilber ////// UW_ES_EA - Two Button ////// 11938ebac7a6SMatthew Wilber 11948ebac7a6SMatthew Wilber void 11958ebac7a6SMatthew Wilber AlertTest::OK_Cancel_60X_UW_ES_EA() 11968ebac7a6SMatthew Wilber { 11978ebac7a6SMatthew Wilber AlertTestInfo ati(this); 11988ebac7a6SMatthew Wilber GuiInfo wi, ti, bi; 11998ebac7a6SMatthew Wilber wi.label = "alert1"; 12008ebac7a6SMatthew Wilber wi.width = 310.0f; 12018ebac7a6SMatthew Wilber wi.height = 77.0f; 12028ebac7a6SMatthew Wilber ati.SetWinInfo(wi); 12038ebac7a6SMatthew Wilber 12048ebac7a6SMatthew Wilber ti.label = k60X; 12058ebac7a6SMatthew Wilber ti.width = 290.0f; 12068ebac7a6SMatthew Wilber ti.height = 26.0f; 12078ebac7a6SMatthew Wilber ti.topleft.Set(10.0f, 6.0f); 12088ebac7a6SMatthew Wilber ati.SetTextViewInfo(ti); 12098ebac7a6SMatthew Wilber 12108ebac7a6SMatthew Wilber bi.label = "OK"; 12118ebac7a6SMatthew Wilber bi.width = 75.0f; 12128ebac7a6SMatthew Wilber bi.height = 24.0f; 12138ebac7a6SMatthew Wilber bi.topleft.Set(148.0f, 44.0f); 12148ebac7a6SMatthew Wilber ati.SetButtonInfo(0, bi); 12158ebac7a6SMatthew Wilber bi.label = "Cancel"; 12168ebac7a6SMatthew Wilber bi.width = 75.0f; 12178ebac7a6SMatthew Wilber bi.height = 30.0f; 12188ebac7a6SMatthew Wilber bi.topleft.Set(229.0f, 41.0f); 12198ebac7a6SMatthew Wilber ati.SetButtonInfo(1, bi); 12208ebac7a6SMatthew Wilber 12218ebac7a6SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 12228ebac7a6SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 12238ebac7a6SMatthew Wilber ati.SetAlertType(B_EMPTY_ALERT); 12248ebac7a6SMatthew Wilber 12258ebac7a6SMatthew Wilber ati.GuiInfoTest(); 12268ebac7a6SMatthew Wilber } 12278ebac7a6SMatthew Wilber 12288ebac7a6SMatthew Wilber void 12298ebac7a6SMatthew Wilber AlertTest::twentyX_20X_60X_UW_ES_EA() 12308ebac7a6SMatthew Wilber { 12318ebac7a6SMatthew Wilber AlertTestInfo ati(this); 12328ebac7a6SMatthew Wilber GuiInfo wi, ti, bi; 12338ebac7a6SMatthew Wilber wi.label = "alert1"; 12348ebac7a6SMatthew Wilber wi.width = 349.0f; 12358ebac7a6SMatthew Wilber wi.height = 77.0f; 12368ebac7a6SMatthew Wilber ati.SetWinInfo(wi); 12378ebac7a6SMatthew Wilber 12388ebac7a6SMatthew Wilber ti.label = k60X; 12398ebac7a6SMatthew Wilber ti.width = 329.0f; 12408ebac7a6SMatthew Wilber ti.height = 26.0f; 12418ebac7a6SMatthew Wilber ti.topleft.Set(10.0f, 6.0f); 12428ebac7a6SMatthew Wilber ati.SetTextViewInfo(ti); 12438ebac7a6SMatthew Wilber 12448ebac7a6SMatthew Wilber bi.label = k20X; 12458ebac7a6SMatthew Wilber bi.width = 160.0f; 12468ebac7a6SMatthew Wilber bi.height = 24.0f; 12478ebac7a6SMatthew Wilber bi.topleft.Set(17.0f, 44.0f); 12488ebac7a6SMatthew Wilber ati.SetButtonInfo(0, bi); 12498ebac7a6SMatthew Wilber bi.label = k20X; 12508ebac7a6SMatthew Wilber bi.width = 160.0f; 12518ebac7a6SMatthew Wilber bi.height = 30.0f; 12528ebac7a6SMatthew Wilber bi.topleft.Set(183.0f, 41.0f); 12538ebac7a6SMatthew Wilber ati.SetButtonInfo(1, bi); 12548ebac7a6SMatthew Wilber 12558ebac7a6SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 12568ebac7a6SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 12578ebac7a6SMatthew Wilber ati.SetAlertType(B_EMPTY_ALERT); 12588ebac7a6SMatthew Wilber 12598ebac7a6SMatthew Wilber ati.GuiInfoTest(); 12608ebac7a6SMatthew Wilber } 12618ebac7a6SMatthew Wilber 1262*82cbd5d8SMatthew Wilber ////// UW_OS_IA - Two Button ////// 1263*82cbd5d8SMatthew Wilber 1264*82cbd5d8SMatthew Wilber void 1265*82cbd5d8SMatthew Wilber AlertTest::OK_Cancel_60X_UW_OS_IA() 1266*82cbd5d8SMatthew Wilber { 1267*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 1268*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 1269*82cbd5d8SMatthew Wilber wi.label = "alert"; 1270*82cbd5d8SMatthew Wilber wi.width = 310.0f; 1271*82cbd5d8SMatthew Wilber wi.height = 77.0f; 1272*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 1273*82cbd5d8SMatthew Wilber 1274*82cbd5d8SMatthew Wilber ti.label = k60X; 1275*82cbd5d8SMatthew Wilber ti.width = 245.0f; 1276*82cbd5d8SMatthew Wilber ti.height = 26.0f; 1277*82cbd5d8SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1278*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 1279*82cbd5d8SMatthew Wilber 1280*82cbd5d8SMatthew Wilber bi.label = "OK"; 1281*82cbd5d8SMatthew Wilber bi.width = 75.0f; 1282*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1283*82cbd5d8SMatthew Wilber bi.topleft.Set(55.0f, 44.0f); 1284*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 1285*82cbd5d8SMatthew Wilber bi.label = "Cancel"; 1286*82cbd5d8SMatthew Wilber bi.width = 75.0f; 1287*82cbd5d8SMatthew Wilber bi.height = 30.0f; 1288*82cbd5d8SMatthew Wilber bi.topleft.Set(229.0f, 41.0f); 1289*82cbd5d8SMatthew Wilber ati.SetButtonInfo(1, bi); 1290*82cbd5d8SMatthew Wilber 1291*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 1292*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 1293*82cbd5d8SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1294*82cbd5d8SMatthew Wilber 1295*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 1296*82cbd5d8SMatthew Wilber } 1297*82cbd5d8SMatthew Wilber 1298*82cbd5d8SMatthew Wilber ////// LW_OS_IA - Two Button ////// 1299*82cbd5d8SMatthew Wilber 1300*82cbd5d8SMatthew Wilber void 1301*82cbd5d8SMatthew Wilber AlertTest::OK_Cancel_60X_LW_OS_IA() 1302*82cbd5d8SMatthew Wilber { 1303*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 1304*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 1305*82cbd5d8SMatthew Wilber wi.label = "alert"; 1306*82cbd5d8SMatthew Wilber wi.width = 310.0f; 1307*82cbd5d8SMatthew Wilber wi.height = 77.0f; 1308*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 1309*82cbd5d8SMatthew Wilber 1310*82cbd5d8SMatthew Wilber ti.label = k60X; 1311*82cbd5d8SMatthew Wilber ti.width = 245.0f; 1312*82cbd5d8SMatthew Wilber ti.height = 26.0f; 1313*82cbd5d8SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1314*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 1315*82cbd5d8SMatthew Wilber 1316*82cbd5d8SMatthew Wilber bi.label = "OK"; 1317*82cbd5d8SMatthew Wilber bi.width = 35.0f; 1318*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1319*82cbd5d8SMatthew Wilber bi.topleft.Set(55.0f, 44.0f); 1320*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 1321*82cbd5d8SMatthew Wilber bi.label = "Cancel"; 1322*82cbd5d8SMatthew Wilber bi.width = 52.0f; 1323*82cbd5d8SMatthew Wilber bi.height = 30.0f; 1324*82cbd5d8SMatthew Wilber bi.topleft.Set(252.0f, 41.0f); 1325*82cbd5d8SMatthew Wilber ati.SetButtonInfo(1, bi); 1326*82cbd5d8SMatthew Wilber 1327*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 1328*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 1329*82cbd5d8SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1330*82cbd5d8SMatthew Wilber 1331*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 1332*82cbd5d8SMatthew Wilber } 1333*82cbd5d8SMatthew Wilber 1334*82cbd5d8SMatthew Wilber ////// LW_OS_EA - Two Button ////// 1335*82cbd5d8SMatthew Wilber 1336*82cbd5d8SMatthew Wilber void 1337*82cbd5d8SMatthew Wilber AlertTest::twentyX_OK_60X_LW_OS_EA() 1338*82cbd5d8SMatthew Wilber { 1339*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 1340*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 1341*82cbd5d8SMatthew Wilber wi.label = "alert"; 1342*82cbd5d8SMatthew Wilber wi.width = 310.0f; 1343*82cbd5d8SMatthew Wilber wi.height = 77.0f; 1344*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 1345*82cbd5d8SMatthew Wilber 1346*82cbd5d8SMatthew Wilber ti.label = k60X; 1347*82cbd5d8SMatthew Wilber ti.width = 290.0f; 1348*82cbd5d8SMatthew Wilber ti.height = 26.0f; 1349*82cbd5d8SMatthew Wilber ti.topleft.Set(10.0f, 6.0f); 1350*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 1351*82cbd5d8SMatthew Wilber 1352*82cbd5d8SMatthew Wilber bi.label = k20X; 1353*82cbd5d8SMatthew Wilber bi.width = 160.0f; 1354*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1355*82cbd5d8SMatthew Wilber bi.topleft.Set(10.0f, 44.0f); 1356*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 1357*82cbd5d8SMatthew Wilber bi.label = "OK"; 1358*82cbd5d8SMatthew Wilber bi.width = 35.0f; 1359*82cbd5d8SMatthew Wilber bi.height = 30.0f; 1360*82cbd5d8SMatthew Wilber bi.topleft.Set(269.0f, 41.0f); 1361*82cbd5d8SMatthew Wilber ati.SetButtonInfo(1, bi); 1362*82cbd5d8SMatthew Wilber 1363*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 1364*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 1365*82cbd5d8SMatthew Wilber ati.SetAlertType(B_EMPTY_ALERT); 1366*82cbd5d8SMatthew Wilber 1367*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 1368*82cbd5d8SMatthew Wilber } 1369db441663SMatthew Wilber 1370db441663SMatthew Wilber ////// UW_ES_IA - Three Button ////// 1371db441663SMatthew Wilber 1372db441663SMatthew Wilber void 1373db441663SMatthew Wilber AlertTest::twentyX_20X_20X_60X_UW_ES_IA() 1374db441663SMatthew Wilber { 1375db441663SMatthew Wilber AlertTestInfo ati(this); 1376db441663SMatthew Wilber GuiInfo wi, ti, bi; 1377db441663SMatthew Wilber wi.label = "alert1"; 1378db441663SMatthew Wilber wi.width = 563.0f; 1379db441663SMatthew Wilber wi.height = 64.0f; 1380db441663SMatthew Wilber ati.SetWinInfo(wi); 1381db441663SMatthew Wilber 1382db441663SMatthew Wilber ti.label = k60X; 1383db441663SMatthew Wilber ti.width = 498.0f; 1384db441663SMatthew Wilber ti.height = 13.0f; 1385db441663SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1386db441663SMatthew Wilber ati.SetTextViewInfo(ti); 1387db441663SMatthew Wilber 1388db441663SMatthew Wilber bi.label = k20X; 1389db441663SMatthew Wilber bi.width = 160.0f; 1390db441663SMatthew Wilber bi.height = 24.0f; 1391db441663SMatthew Wilber bi.topleft.Set(62.0f, 31.0f); 1392db441663SMatthew Wilber ati.SetButtonInfo(0, bi); 1393db441663SMatthew Wilber bi.label = k20X; 1394db441663SMatthew Wilber bi.width = 160.0f; 1395db441663SMatthew Wilber bi.height = 24.0f; 1396db441663SMatthew Wilber bi.topleft.Set(231.0f, 31.0f); 1397db441663SMatthew Wilber ati.SetButtonInfo(1, bi); 1398db441663SMatthew Wilber bi.label = k20X; 1399db441663SMatthew Wilber bi.width = 160.0f; 1400db441663SMatthew Wilber bi.height = 30.0f; 1401db441663SMatthew Wilber bi.topleft.Set(397.0f, 28.0f); 1402db441663SMatthew Wilber ati.SetButtonInfo(2, bi); 1403db441663SMatthew Wilber 1404db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 1405db441663SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1406db441663SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1407db441663SMatthew Wilber 1408db441663SMatthew Wilber ati.GuiInfoTest(); 1409db441663SMatthew Wilber } 1410db441663SMatthew Wilber 1411db441663SMatthew Wilber ////// LW_ES_IA - Three Button ////// 1412db441663SMatthew Wilber 1413db441663SMatthew Wilber void 1414db441663SMatthew Wilber AlertTest::empty_empty_empty_X_LW_ES_IA() 1415db441663SMatthew Wilber { 1416db441663SMatthew Wilber AlertTestInfo ati(this); 1417db441663SMatthew Wilber GuiInfo wi, ti, bi; 1418db441663SMatthew Wilber wi.label = "alert1"; 1419db441663SMatthew Wilber wi.width = 310.0f; 1420db441663SMatthew Wilber wi.height = 64.0f; 1421db441663SMatthew Wilber ati.SetWinInfo(wi); 1422db441663SMatthew Wilber 1423db441663SMatthew Wilber ti.label = "X"; 1424db441663SMatthew Wilber ti.width = 245.0f; 1425db441663SMatthew Wilber ti.height = 13.0f; 1426db441663SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1427db441663SMatthew Wilber ati.SetTextViewInfo(ti); 1428db441663SMatthew Wilber 1429db441663SMatthew Wilber bi.label = ""; 1430db441663SMatthew Wilber bi.width = 20.0f; 1431db441663SMatthew Wilber bi.height = 24.0f; 1432db441663SMatthew Wilber bi.topleft.Set(229.0f, 31.0f); 1433db441663SMatthew Wilber ati.SetButtonInfo(0, bi); 1434db441663SMatthew Wilber bi.label = ""; 1435db441663SMatthew Wilber bi.width = 20.0f; 1436db441663SMatthew Wilber bi.height = 24.0f; 1437db441663SMatthew Wilber bi.topleft.Set(258.0f, 31.0f); 1438db441663SMatthew Wilber ati.SetButtonInfo(1, bi); 1439db441663SMatthew Wilber bi.label = ""; 1440db441663SMatthew Wilber bi.width = 20.0f; 1441db441663SMatthew Wilber bi.height = 30.0f; 1442db441663SMatthew Wilber bi.topleft.Set(284.0f, 28.0f); 1443db441663SMatthew Wilber ati.SetButtonInfo(2, bi); 1444db441663SMatthew Wilber 1445db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 1446db441663SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1447db441663SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1448db441663SMatthew Wilber 1449db441663SMatthew Wilber ati.GuiInfoTest(); 1450db441663SMatthew Wilber } 1451db441663SMatthew Wilber 1452db441663SMatthew Wilber void 1453db441663SMatthew Wilber AlertTest::Yes_No_Cancel_X_LW_ES_IA() 1454db441663SMatthew Wilber { 1455db441663SMatthew Wilber AlertTestInfo ati(this); 1456db441663SMatthew Wilber GuiInfo wi, ti, bi; 1457db441663SMatthew Wilber wi.label = "alert1"; 1458db441663SMatthew Wilber wi.width = 310.0f; 1459db441663SMatthew Wilber wi.height = 64.0f; 1460db441663SMatthew Wilber ati.SetWinInfo(wi); 1461db441663SMatthew Wilber 1462db441663SMatthew Wilber ti.label = "X"; 1463db441663SMatthew Wilber ti.width = 245.0f; 1464db441663SMatthew Wilber ti.height = 13.0f; 1465db441663SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1466db441663SMatthew Wilber ati.SetTextViewInfo(ti); 1467db441663SMatthew Wilber 1468db441663SMatthew Wilber bi.label = "Yes"; 1469db441663SMatthew Wilber bi.width = 37.0f; 1470db441663SMatthew Wilber bi.height = 24.0f; 1471db441663SMatthew Wilber bi.topleft.Set(167.0f, 31.0f); 1472db441663SMatthew Wilber ati.SetButtonInfo(0, bi); 1473db441663SMatthew Wilber bi.label = "No"; 1474db441663SMatthew Wilber bi.width = 33.0f; 1475db441663SMatthew Wilber bi.height = 24.0f; 1476db441663SMatthew Wilber bi.topleft.Set(213.0f, 31.0f); 1477db441663SMatthew Wilber ati.SetButtonInfo(1, bi); 1478db441663SMatthew Wilber bi.label = "Cancel"; 1479db441663SMatthew Wilber bi.width = 52.0f; 1480db441663SMatthew Wilber bi.height = 30.0f; 1481db441663SMatthew Wilber bi.topleft.Set(252.0f, 28.0f); 1482db441663SMatthew Wilber ati.SetButtonInfo(2, bi); 1483db441663SMatthew Wilber 1484db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 1485db441663SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1486db441663SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1487db441663SMatthew Wilber 1488db441663SMatthew Wilber ati.GuiInfoTest(); 1489db441663SMatthew Wilber } 1490db441663SMatthew Wilber 1491db441663SMatthew Wilber void 1492db441663SMatthew Wilber AlertTest::twentyX_20X_20X_60X_LW_ES_IA() 1493db441663SMatthew Wilber { 1494db441663SMatthew Wilber AlertTestInfo ati(this); 1495db441663SMatthew Wilber GuiInfo wi, ti, bi; 1496db441663SMatthew Wilber wi.label = "alert1"; 1497db441663SMatthew Wilber wi.width = 563.0f; 1498db441663SMatthew Wilber wi.height = 64.0f; 1499db441663SMatthew Wilber ati.SetWinInfo(wi); 1500db441663SMatthew Wilber 1501db441663SMatthew Wilber ti.label = k60X; 1502db441663SMatthew Wilber ti.width = 498.0f; 1503db441663SMatthew Wilber ti.height = 13.0f; 1504db441663SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1505db441663SMatthew Wilber ati.SetTextViewInfo(ti); 1506db441663SMatthew Wilber 1507db441663SMatthew Wilber bi.label = k20X; 1508db441663SMatthew Wilber bi.width = 160.0f; 1509db441663SMatthew Wilber bi.height = 24.0f; 1510db441663SMatthew Wilber bi.topleft.Set(62.0f, 31.0f); 1511db441663SMatthew Wilber ati.SetButtonInfo(0, bi); 1512db441663SMatthew Wilber bi.label = k20X; 1513db441663SMatthew Wilber bi.width = 160.0f; 1514db441663SMatthew Wilber bi.height = 24.0f; 1515db441663SMatthew Wilber bi.topleft.Set(231.0f, 31.0f); 1516db441663SMatthew Wilber ati.SetButtonInfo(1, bi); 1517db441663SMatthew Wilber bi.label = k20X; 1518db441663SMatthew Wilber bi.width = 160.0f; 1519db441663SMatthew Wilber bi.height = 30.0f; 1520db441663SMatthew Wilber bi.topleft.Set(397.0f, 28.0f); 1521db441663SMatthew Wilber ati.SetButtonInfo(2, bi); 1522db441663SMatthew Wilber 1523db441663SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 1524db441663SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1525db441663SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1526db441663SMatthew Wilber 1527db441663SMatthew Wilber ati.GuiInfoTest(); 1528db441663SMatthew Wilber } 1529db441663SMatthew Wilber 1530b8544371SMatthew Wilber ////// WW_ES_IA - Three Button ////// 1531b8544371SMatthew Wilber 1532b8544371SMatthew Wilber void 1533b8544371SMatthew Wilber AlertTest::empty_empty_empty_X_WW_ES_IA() 1534b8544371SMatthew Wilber { 1535b8544371SMatthew Wilber AlertTestInfo ati(this); 1536b8544371SMatthew Wilber GuiInfo wi, ti, bi; 1537b8544371SMatthew Wilber wi.width = 310.0f; 1538b8544371SMatthew Wilber wi.height = 64.0f; 1539b8544371SMatthew Wilber ati.SetWinInfo(wi); 1540b8544371SMatthew Wilber 1541b8544371SMatthew Wilber ti.label = "X"; 1542b8544371SMatthew Wilber ti.width = 245.0f; 1543b8544371SMatthew Wilber ti.height = 13.0f; 1544b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1545b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 1546b8544371SMatthew Wilber 1547b8544371SMatthew Wilber bi.label = ""; 1548b8544371SMatthew Wilber bi.width = 20.0f; 1549b8544371SMatthew Wilber bi.height = 24.0f; 1550b8544371SMatthew Wilber bi.topleft.Set(229.0f, 31.0f); 1551b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 1552b8544371SMatthew Wilber bi.label = ""; 1553b8544371SMatthew Wilber bi.width = 20.0f; 1554b8544371SMatthew Wilber bi.height = 24.0f; 1555b8544371SMatthew Wilber bi.topleft.Set(258.0f, 31.0f); 1556b8544371SMatthew Wilber ati.SetButtonInfo(1, bi); 1557b8544371SMatthew Wilber bi.label = ""; 1558b8544371SMatthew Wilber bi.width = 20.0f; 1559b8544371SMatthew Wilber bi.height = 30.0f; 1560b8544371SMatthew Wilber bi.topleft.Set(284.0f, 28.0f); 1561b8544371SMatthew Wilber ati.SetButtonInfo(2, bi); 1562b8544371SMatthew Wilber 1563b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 1564b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1565b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1566b8544371SMatthew Wilber 1567b8544371SMatthew Wilber ati.GuiInfoTest(); 1568b8544371SMatthew Wilber } 1569b8544371SMatthew Wilber 1570b8544371SMatthew Wilber void 1571b8544371SMatthew Wilber AlertTest::Monkey_Dog_Cat_X_WW_ES_IA() 1572b8544371SMatthew Wilber { 1573b8544371SMatthew Wilber AlertTestInfo ati(this); 1574b8544371SMatthew Wilber GuiInfo wi, ti, bi; 1575b8544371SMatthew Wilber wi.width = 310.0f; 1576b8544371SMatthew Wilber wi.height = 64.0f; 1577b8544371SMatthew Wilber ati.SetWinInfo(wi); 1578b8544371SMatthew Wilber 1579b8544371SMatthew Wilber ti.label = "X"; 1580b8544371SMatthew Wilber ti.width = 245.0f; 1581b8544371SMatthew Wilber ti.height = 13.0f; 1582b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1583b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 1584b8544371SMatthew Wilber 1585b8544371SMatthew Wilber bi.label = "Monkey"; 1586b8544371SMatthew Wilber bi.width = 56.0f; 1587b8544371SMatthew Wilber bi.height = 24.0f; 1588b8544371SMatthew Wilber bi.topleft.Set(121.0f, 31.0f); 1589b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 1590b8544371SMatthew Wilber bi.label = "Dog"; 1591b8544371SMatthew Wilber bi.width = 56.0f; 1592b8544371SMatthew Wilber bi.height = 24.0f; 1593b8544371SMatthew Wilber bi.topleft.Set(186.0f, 31.0f); 1594b8544371SMatthew Wilber ati.SetButtonInfo(1, bi); 1595b8544371SMatthew Wilber bi.label = "Cat"; 1596b8544371SMatthew Wilber bi.width = 56.0f; 1597b8544371SMatthew Wilber bi.height = 30.0f; 1598b8544371SMatthew Wilber bi.topleft.Set(248.0f, 28.0f); 1599b8544371SMatthew Wilber ati.SetButtonInfo(2, bi); 1600b8544371SMatthew Wilber 1601b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 1602b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1603b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1604b8544371SMatthew Wilber 1605b8544371SMatthew Wilber ati.GuiInfoTest(); 1606b8544371SMatthew Wilber } 1607b8544371SMatthew Wilber 1608b8544371SMatthew Wilber void 1609b8544371SMatthew Wilber AlertTest::X_20X_X_WW_ES_IA() 1610b8544371SMatthew Wilber { 1611b8544371SMatthew Wilber AlertTestInfo ati(this); 1612b8544371SMatthew Wilber GuiInfo wi, ti, bi; 1613b8544371SMatthew Wilber wi.width = 563.0f; 1614b8544371SMatthew Wilber wi.height = 64.0f; 1615b8544371SMatthew Wilber ati.SetWinInfo(wi); 1616b8544371SMatthew Wilber 1617b8544371SMatthew Wilber ti.label = "X"; 1618b8544371SMatthew Wilber ti.width = 498.0f; 1619b8544371SMatthew Wilber ti.height = 13.0f; 1620b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1621b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 1622b8544371SMatthew Wilber 1623b8544371SMatthew Wilber bi.label = "X"; 1624b8544371SMatthew Wilber bi.width = 160.0f; 1625b8544371SMatthew Wilber bi.height = 24.0f; 1626b8544371SMatthew Wilber bi.topleft.Set(62.0f, 31.0f); 1627b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 1628b8544371SMatthew Wilber bi.label = k20X; 1629b8544371SMatthew Wilber bi.width = 160.0f; 1630b8544371SMatthew Wilber bi.height = 24.0f; 1631b8544371SMatthew Wilber bi.topleft.Set(231.0f, 31.0f); 1632b8544371SMatthew Wilber ati.SetButtonInfo(1, bi); 1633b8544371SMatthew Wilber bi.label = "X"; 1634b8544371SMatthew Wilber bi.width = 160.0f; 1635b8544371SMatthew Wilber bi.height = 30.0f; 1636b8544371SMatthew Wilber bi.topleft.Set(397.0f, 28.0f); 1637b8544371SMatthew Wilber ati.SetButtonInfo(2, bi); 1638b8544371SMatthew Wilber 1639b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 1640b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1641b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1642b8544371SMatthew Wilber 1643b8544371SMatthew Wilber ati.GuiInfoTest(); 1644b8544371SMatthew Wilber } 1645b8544371SMatthew Wilber 1646b8544371SMatthew Wilber void 1647b8544371SMatthew Wilber AlertTest::Yes_No_Cancel_X_WW_ES_IA() 1648b8544371SMatthew Wilber { 1649b8544371SMatthew Wilber AlertTestInfo ati(this); 1650b8544371SMatthew Wilber GuiInfo wi, ti, bi; 1651b8544371SMatthew Wilber wi.width = 310.0f; 1652b8544371SMatthew Wilber wi.height = 64.0f; 1653b8544371SMatthew Wilber ati.SetWinInfo(wi); 1654b8544371SMatthew Wilber 1655b8544371SMatthew Wilber ti.label = "X"; 1656b8544371SMatthew Wilber ti.width = 245.0f; 1657b8544371SMatthew Wilber ti.height = 13.0f; 1658b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1659b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 1660b8544371SMatthew Wilber 1661b8544371SMatthew Wilber bi.label = "Yes"; 1662b8544371SMatthew Wilber bi.width = 52.0f; 1663b8544371SMatthew Wilber bi.height = 24.0f; 1664b8544371SMatthew Wilber bi.topleft.Set(133.0f, 31.0f); 1665b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 1666b8544371SMatthew Wilber bi.label = "No"; 1667b8544371SMatthew Wilber bi.width = 52.0f; 1668b8544371SMatthew Wilber bi.height = 24.0f; 1669b8544371SMatthew Wilber bi.topleft.Set(194.0f, 31.0f); 1670b8544371SMatthew Wilber ati.SetButtonInfo(1, bi); 1671b8544371SMatthew Wilber bi.label = "Cancel"; 1672b8544371SMatthew Wilber bi.width = 52.0f; 1673b8544371SMatthew Wilber bi.height = 30.0f; 1674b8544371SMatthew Wilber bi.topleft.Set(252.0f, 28.0f); 1675b8544371SMatthew Wilber ati.SetButtonInfo(2, bi); 1676b8544371SMatthew Wilber 1677b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 1678b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1679b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1680b8544371SMatthew Wilber 1681b8544371SMatthew Wilber ati.GuiInfoTest(); 1682b8544371SMatthew Wilber } 1683b8544371SMatthew Wilber 1684b8544371SMatthew Wilber void 1685b8544371SMatthew Wilber AlertTest::twentyX_20X_20X_60X_WW_ES_IA() 1686b8544371SMatthew Wilber { 1687b8544371SMatthew Wilber AlertTestInfo ati(this); 1688b8544371SMatthew Wilber GuiInfo wi, ti, bi; 1689b8544371SMatthew Wilber wi.width = 563.0f; 1690b8544371SMatthew Wilber wi.height = 64.0f; 1691b8544371SMatthew Wilber ati.SetWinInfo(wi); 1692b8544371SMatthew Wilber 1693b8544371SMatthew Wilber ti.label = k60X; 1694b8544371SMatthew Wilber ti.width = 498.0f; 1695b8544371SMatthew Wilber ti.height = 13.0f; 1696b8544371SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1697b8544371SMatthew Wilber ati.SetTextViewInfo(ti); 1698b8544371SMatthew Wilber 1699b8544371SMatthew Wilber bi.label = k20X; 1700b8544371SMatthew Wilber bi.width = 160.0f; 1701b8544371SMatthew Wilber bi.height = 24.0f; 1702b8544371SMatthew Wilber bi.topleft.Set(62.0f, 31.0f); 1703b8544371SMatthew Wilber ati.SetButtonInfo(0, bi); 1704b8544371SMatthew Wilber bi.label = k20X; 1705b8544371SMatthew Wilber bi.width = 160.0f; 1706b8544371SMatthew Wilber bi.height = 24.0f; 1707b8544371SMatthew Wilber bi.topleft.Set(231.0f, 31.0f); 1708b8544371SMatthew Wilber ati.SetButtonInfo(1, bi); 1709b8544371SMatthew Wilber bi.label = k20X; 1710b8544371SMatthew Wilber bi.width = 160.0f; 1711b8544371SMatthew Wilber bi.height = 30.0f; 1712b8544371SMatthew Wilber bi.topleft.Set(397.0f, 28.0f); 1713b8544371SMatthew Wilber ati.SetButtonInfo(2, bi); 1714b8544371SMatthew Wilber 1715b8544371SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 1716b8544371SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 1717b8544371SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1718b8544371SMatthew Wilber 1719b8544371SMatthew Wilber ati.GuiInfoTest(); 1720b8544371SMatthew Wilber } 1721b8544371SMatthew Wilber 1722b8544371SMatthew Wilber 1723db441663SMatthew Wilber ////// UW_ES_EA - Three Button ////// 1724db441663SMatthew Wilber 17258ebac7a6SMatthew Wilber void 17268ebac7a6SMatthew Wilber AlertTest::twentyX_20X_20X_60X_UW_ES_EA() 17278ebac7a6SMatthew Wilber { 17288ebac7a6SMatthew Wilber AlertTestInfo ati(this); 17298ebac7a6SMatthew Wilber GuiInfo wi, ti, bi; 17308ebac7a6SMatthew Wilber wi.label = "alert1"; 17318ebac7a6SMatthew Wilber wi.width = 518.0f; 17328ebac7a6SMatthew Wilber wi.height = 64.0f; 17338ebac7a6SMatthew Wilber ati.SetWinInfo(wi); 17348ebac7a6SMatthew Wilber 17358ebac7a6SMatthew Wilber ti.label = k60X; 17368ebac7a6SMatthew Wilber ti.width = 498.0f; 17378ebac7a6SMatthew Wilber ti.height = 13.0f; 17388ebac7a6SMatthew Wilber ti.topleft.Set(10.0f, 6.0f); 17398ebac7a6SMatthew Wilber ati.SetTextViewInfo(ti); 17408ebac7a6SMatthew Wilber 17418ebac7a6SMatthew Wilber bi.label = k20X; 17428ebac7a6SMatthew Wilber bi.width = 160.0f; 17438ebac7a6SMatthew Wilber bi.height = 24.0f; 17448ebac7a6SMatthew Wilber bi.topleft.Set(17.0f, 31.0f); 17458ebac7a6SMatthew Wilber ati.SetButtonInfo(0, bi); 17468ebac7a6SMatthew Wilber bi.label = k20X; 17478ebac7a6SMatthew Wilber bi.width = 160.0f; 17488ebac7a6SMatthew Wilber bi.height = 24.0f; 17498ebac7a6SMatthew Wilber bi.topleft.Set(186.0f, 31.0f); 17508ebac7a6SMatthew Wilber ati.SetButtonInfo(1, bi); 17518ebac7a6SMatthew Wilber bi.label = k20X; 17528ebac7a6SMatthew Wilber bi.width = 160.0f; 17538ebac7a6SMatthew Wilber bi.height = 30.0f; 17548ebac7a6SMatthew Wilber bi.topleft.Set(352.0f, 28.0f); 17558ebac7a6SMatthew Wilber ati.SetButtonInfo(2, bi); 17568ebac7a6SMatthew Wilber 17578ebac7a6SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 17588ebac7a6SMatthew Wilber ati.SetButtonSpacingMode(B_EVEN_SPACING); 17598ebac7a6SMatthew Wilber ati.SetAlertType(B_EMPTY_ALERT); 17608ebac7a6SMatthew Wilber 17618ebac7a6SMatthew Wilber ati.GuiInfoTest(); 17628ebac7a6SMatthew Wilber } 1763baccf4d7SMatthew Wilber 1764*82cbd5d8SMatthew Wilber ////// UW_OS_IA - Three Button ////// 1765*82cbd5d8SMatthew Wilber 1766*82cbd5d8SMatthew Wilber void 1767*82cbd5d8SMatthew Wilber AlertTest::Yes_No_Cancel_60X_UW_OS_IA() 1768*82cbd5d8SMatthew Wilber { 1769*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 1770*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 1771*82cbd5d8SMatthew Wilber wi.label = "alert1"; 1772*82cbd5d8SMatthew Wilber wi.width = 335.0f; 1773*82cbd5d8SMatthew Wilber wi.height = 77.0f; 1774*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 1775*82cbd5d8SMatthew Wilber 1776*82cbd5d8SMatthew Wilber ti.label = k60X; 1777*82cbd5d8SMatthew Wilber ti.width = 270.0f; 1778*82cbd5d8SMatthew Wilber ti.height = 26.0f; 1779*82cbd5d8SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1780*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 1781*82cbd5d8SMatthew Wilber 1782*82cbd5d8SMatthew Wilber bi.label = "Yes"; 1783*82cbd5d8SMatthew Wilber bi.width = 75.0f; 1784*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1785*82cbd5d8SMatthew Wilber bi.topleft.Set(66.0f, 44.0f); 1786*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 1787*82cbd5d8SMatthew Wilber bi.label = "No"; 1788*82cbd5d8SMatthew Wilber bi.width = 75.0f; 1789*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1790*82cbd5d8SMatthew Wilber bi.topleft.Set(173.0f, 44.0f); 1791*82cbd5d8SMatthew Wilber ati.SetButtonInfo(1, bi); 1792*82cbd5d8SMatthew Wilber bi.label = "Cancel"; 1793*82cbd5d8SMatthew Wilber bi.width = 75.0f; 1794*82cbd5d8SMatthew Wilber bi.height = 30.0f; 1795*82cbd5d8SMatthew Wilber bi.topleft.Set(254.0f, 41.0f); 1796*82cbd5d8SMatthew Wilber ati.SetButtonInfo(2, bi); 1797*82cbd5d8SMatthew Wilber 1798*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 1799*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 1800*82cbd5d8SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1801*82cbd5d8SMatthew Wilber 1802*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 1803*82cbd5d8SMatthew Wilber } 1804*82cbd5d8SMatthew Wilber 1805*82cbd5d8SMatthew Wilber ////// LW_OS_IA - Three Button ////// 1806*82cbd5d8SMatthew Wilber 1807*82cbd5d8SMatthew Wilber void 1808*82cbd5d8SMatthew Wilber AlertTest::Yes_No_Cancel_60X_LW_OS_IA() 1809*82cbd5d8SMatthew Wilber { 1810*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 1811*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 1812*82cbd5d8SMatthew Wilber wi.label = "alert1"; 1813*82cbd5d8SMatthew Wilber wi.width = 335.0f; 1814*82cbd5d8SMatthew Wilber wi.height = 77.0f; 1815*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 1816*82cbd5d8SMatthew Wilber 1817*82cbd5d8SMatthew Wilber ti.label = k60X; 1818*82cbd5d8SMatthew Wilber ti.width = 270.0f; 1819*82cbd5d8SMatthew Wilber ti.height = 26.0f; 1820*82cbd5d8SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1821*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 1822*82cbd5d8SMatthew Wilber 1823*82cbd5d8SMatthew Wilber bi.label = "Yes"; 1824*82cbd5d8SMatthew Wilber bi.width = 37.0f; 1825*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1826*82cbd5d8SMatthew Wilber bi.topleft.Set(169.0f, 44.0f); 1827*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 1828*82cbd5d8SMatthew Wilber bi.label = "No"; 1829*82cbd5d8SMatthew Wilber bi.width = 33.0f; 1830*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1831*82cbd5d8SMatthew Wilber bi.topleft.Set(238.0f, 44.0f); 1832*82cbd5d8SMatthew Wilber ati.SetButtonInfo(1, bi); 1833*82cbd5d8SMatthew Wilber bi.label = "Cancel"; 1834*82cbd5d8SMatthew Wilber bi.width = 52.0f; 1835*82cbd5d8SMatthew Wilber bi.height = 30.0f; 1836*82cbd5d8SMatthew Wilber bi.topleft.Set(277.0f, 41.0f); 1837*82cbd5d8SMatthew Wilber ati.SetButtonInfo(2, bi); 1838*82cbd5d8SMatthew Wilber 1839*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_LABEL); 1840*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 1841*82cbd5d8SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1842*82cbd5d8SMatthew Wilber 1843*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 1844*82cbd5d8SMatthew Wilber } 1845*82cbd5d8SMatthew Wilber 1846*82cbd5d8SMatthew Wilber ////// WW_OS_IA - Three Button ////// 1847*82cbd5d8SMatthew Wilber 1848*82cbd5d8SMatthew Wilber void 1849*82cbd5d8SMatthew Wilber AlertTest::Monkey_Dog_Cat_60X_WW_OS_IA() 1850*82cbd5d8SMatthew Wilber { 1851*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 1852*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 1853*82cbd5d8SMatthew Wilber wi.label = "alert1"; 1854*82cbd5d8SMatthew Wilber wi.width = 335.0f; 1855*82cbd5d8SMatthew Wilber wi.height = 77.0f; 1856*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 1857*82cbd5d8SMatthew Wilber 1858*82cbd5d8SMatthew Wilber ti.label = k60X; 1859*82cbd5d8SMatthew Wilber ti.width = 270.0f; 1860*82cbd5d8SMatthew Wilber ti.height = 26.0f; 1861*82cbd5d8SMatthew Wilber ti.topleft.Set(55.0f, 6.0f); 1862*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 1863*82cbd5d8SMatthew Wilber 1864*82cbd5d8SMatthew Wilber bi.label = "Monkey"; 1865*82cbd5d8SMatthew Wilber bi.width = 56.0f; 1866*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1867*82cbd5d8SMatthew Wilber bi.topleft.Set(123.0f, 44.0f); 1868*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 1869*82cbd5d8SMatthew Wilber bi.label = "Dog"; 1870*82cbd5d8SMatthew Wilber bi.width = 56.0f; 1871*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1872*82cbd5d8SMatthew Wilber bi.topleft.Set(211.0f, 44.0f); 1873*82cbd5d8SMatthew Wilber ati.SetButtonInfo(1, bi); 1874*82cbd5d8SMatthew Wilber bi.label = "Cat"; 1875*82cbd5d8SMatthew Wilber bi.width = 56.0f; 1876*82cbd5d8SMatthew Wilber bi.height = 30.0f; 1877*82cbd5d8SMatthew Wilber bi.topleft.Set(273.0f, 41.0f); 1878*82cbd5d8SMatthew Wilber ati.SetButtonInfo(2, bi); 1879*82cbd5d8SMatthew Wilber 1880*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_FROM_WIDEST); 1881*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 1882*82cbd5d8SMatthew Wilber ati.SetAlertType(B_INFO_ALERT); 1883*82cbd5d8SMatthew Wilber 1884*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 1885*82cbd5d8SMatthew Wilber } 1886*82cbd5d8SMatthew Wilber 1887*82cbd5d8SMatthew Wilber ////// UW_OS_EA - Three Button ////// 1888*82cbd5d8SMatthew Wilber 1889*82cbd5d8SMatthew Wilber void 1890*82cbd5d8SMatthew Wilber AlertTest::twentyX_OK_Cancel_60X_UW_OS_EA() 1891*82cbd5d8SMatthew Wilber { 1892*82cbd5d8SMatthew Wilber AlertTestInfo ati(this); 1893*82cbd5d8SMatthew Wilber GuiInfo wi, ti, bi; 1894*82cbd5d8SMatthew Wilber wi.label = "alert1"; 1895*82cbd5d8SMatthew Wilber wi.width = 366.0f; 1896*82cbd5d8SMatthew Wilber wi.height = 77.0f; 1897*82cbd5d8SMatthew Wilber ati.SetWinInfo(wi); 1898*82cbd5d8SMatthew Wilber 1899*82cbd5d8SMatthew Wilber ti.label = k60X; 1900*82cbd5d8SMatthew Wilber ti.width = 346.0f; 1901*82cbd5d8SMatthew Wilber ti.height = 26.0f; 1902*82cbd5d8SMatthew Wilber ti.topleft.Set(10.0f, 6.0f); 1903*82cbd5d8SMatthew Wilber ati.SetTextViewInfo(ti); 1904*82cbd5d8SMatthew Wilber 1905*82cbd5d8SMatthew Wilber bi.label = k20X; 1906*82cbd5d8SMatthew Wilber bi.width = 160.0f; 1907*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1908*82cbd5d8SMatthew Wilber bi.topleft.Set(12.0f, 44.0f); 1909*82cbd5d8SMatthew Wilber ati.SetButtonInfo(0, bi); 1910*82cbd5d8SMatthew Wilber bi.label = "OK"; 1911*82cbd5d8SMatthew Wilber bi.width = 75.0f; 1912*82cbd5d8SMatthew Wilber bi.height = 24.0f; 1913*82cbd5d8SMatthew Wilber bi.topleft.Set(204.0f, 44.0f); 1914*82cbd5d8SMatthew Wilber ati.SetButtonInfo(1, bi); 1915*82cbd5d8SMatthew Wilber bi.label = "Cancel"; 1916*82cbd5d8SMatthew Wilber bi.width = 75.0f; 1917*82cbd5d8SMatthew Wilber bi.height = 30.0f; 1918*82cbd5d8SMatthew Wilber bi.topleft.Set(285.0f, 41.0f); 1919*82cbd5d8SMatthew Wilber ati.SetButtonInfo(2, bi); 1920*82cbd5d8SMatthew Wilber 1921*82cbd5d8SMatthew Wilber ati.SetButtonWidthMode(B_WIDTH_AS_USUAL); 1922*82cbd5d8SMatthew Wilber ati.SetButtonSpacingMode(B_OFFSET_SPACING); 1923*82cbd5d8SMatthew Wilber ati.SetAlertType(B_EMPTY_ALERT); 1924*82cbd5d8SMatthew Wilber 1925*82cbd5d8SMatthew Wilber ati.GuiInfoTest(); 1926*82cbd5d8SMatthew Wilber } 1927*82cbd5d8SMatthew Wilber 1928