From a18082d29beb5ecc46ecf2308d2f0171ee079604 Mon Sep 17 00:00:00 2001 From: rogerman Date: Tue, 12 Mar 2013 21:14:34 +0000 Subject: [PATCH] Cocoa Port: - Fix a crashing bug that can sometimes occur when removing an input mapping. - Make command names and input setting strings localizable. - Do some minor code cleanup. --- desmume/src/cocoa/cocoa_globals.h | 43 +-- .../translations/English.lproj/MainMenu.xib | 256 ++---------------- .../src/cocoa/userinterface/InputManager.h | 2 - .../src/cocoa/userinterface/InputManager.mm | 24 +- .../src/cocoa/userinterface/inputPrefsView.mm | 11 +- 5 files changed, 49 insertions(+), 287 deletions(-) diff --git a/desmume/src/cocoa/cocoa_globals.h b/desmume/src/cocoa/cocoa_globals.h index 27475fe36..44f896cb4 100644 --- a/desmume/src/cocoa/cocoa_globals.h +++ b/desmume/src/cocoa/cocoa_globals.h @@ -101,6 +101,17 @@ #define NSSTRING_DISPLAYMODE_TOUCH NSLocalizedString(@"Touch", nil) #define NSSTRING_DISPLAYMODE_COMBO NSLocalizedString(@"Combo", nil) +#define NSSTRING_INPUTPREF_NUM_INPUTS_MAPPED NSLocalizedString(@"%ld Input Mapped", nil) +#define NSSTRING_INPUTPREF_NUM_INPUTS_MAPPED_PLURAL NSLocalizedString(@"%ld Inputs Mapped", nil) + +#define NSSTRING_INPUTPREF_USE_DEVICE_COORDINATES NSLocalizedString(@"Use Device Coordinates", nil) +#define NSSTRING_INPUTPREF_MIC_NONE NSLocalizedString(@"None", nil) +#define NSSTRING_INPUTPREF_MIC_INTERNAL_NOISE NSLocalizedString(@"Internal Noise Samples", nil) +#define NSSTRING_INPUTPREF_MIC_WHITE_NOISE NSLocalizedString(@"White Noise", nil) +#define NSSTRING_INPUTPREF_SPEED_SCALAR NSLocalizedString(@"%1.2fx Speed", nil) +#define NSSTRING_INPUTPREF_GPU_STATE_ALL_MAIN NSLocalizedString(@"Main GPU - All Layers", nil) +#define NSSTRING_INPUTPREF_GPU_STATE_ALL_SUB NSLocalizedString(@"Sub GPU - All Layers", nil) + // LEGACY STRINGS #define NSSTRING_TITLE_OPEN_ROM_PANEL_LEGACY NSLocalizedString(@"Open ROM...", nil) #define NSSTRING_TITLE_OPEN_STATE_FILE_PANEL_LEGACY NSLocalizedString(@"Load State From...", nil) @@ -452,35 +463,3 @@ enum MICMODE_WHITE_NOISE, MICMODE_PHYSICAL }; - -/* - CONTROL TAGS FOR PREFERENCE WINDOW INPUT CONFIG BUTTONS - */ -enum -{ - PREF_INPUT_BUTTON_UP = 1000, - PREF_INPUT_BUTTON_DOWN, - PREF_INPUT_BUTTON_LEFT, - PREF_INPUT_BUTTON_RIGHT, - PREF_INPUT_BUTTON_A, - PREF_INPUT_BUTTON_B, - PREF_INPUT_BUTTON_X, - PREF_INPUT_BUTTON_Y, - PREF_INPUT_BUTTON_L, - PREF_INPUT_BUTTON_R, - PREF_INPUT_BUTTON_START, - PREF_INPUT_BUTTON_SELECT, - - PREF_INPUT_BUTTON_SIM_MIC = 2000, - - PREF_INPUT_BUTTON_LID = 3000, - PREF_INPUT_BUTTON_DEBUG, - PREF_INPUT_BUTTON_SPEED_HALF, - PREF_INPUT_BUTTON_SPEED_DOUBLE, - PREF_INPUT_BUTTON_TOGGLE_HUD, - PREF_INPUT_BUTTON_EXECUTE, - PREF_INPUT_BUTTON_PAUSE, - PREF_INPUT_BUTTON_RESET, - - PREF_INPUT_BUTTON_TOUCH = 4000 -}; \ No newline at end of file diff --git a/desmume/src/cocoa/translations/English.lproj/MainMenu.xib b/desmume/src/cocoa/translations/English.lproj/MainMenu.xib index 7669bffed..bf5c8fc96 100644 --- a/desmume/src/cocoa/translations/English.lproj/MainMenu.xib +++ b/desmume/src/cocoa/translations/English.lproj/MainMenu.xib @@ -3198,6 +3198,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA {{1, 17}, {638, 437}} + 4 @@ -3233,6 +3234,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA {{1, 0}, {638, 17}} + 4 @@ -3242,6 +3244,7 @@ aGVhdHMuZ2JhdGVtcC5uZXQvA {{0, 42}, {640, 455}} + 562 @@ -6002,7 +6005,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA NSView - + 268 YES @@ -6021,7 +6024,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 14}, {165, 38}} - YES 2 1 @@ -6212,12 +6214,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {494, 62}} - {{17, 454}, {496, 78}} - {0, 0} 67239424 @@ -6251,7 +6251,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 12}, {462, 18}} - YES -2080244224 @@ -6272,12 +6271,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {494, 38}} - {{17, 16}, {496, 54}} - {0, 0} 67239424 @@ -6311,7 +6308,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 32}, {145, 18}} - YES 67239424 @@ -6334,7 +6330,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 12}, {118, 18}} - YES 67239424 @@ -6355,12 +6350,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {494, 58}} - {{17, 74}, {496, 74}} - {0, 0} 67239424 @@ -6394,7 +6387,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 61}, {205, 18}} - YES 604110336 @@ -6417,7 +6409,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{140, 33}, {240, 22}} - YES -2070806976 @@ -6436,7 +6427,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{15, 37}, {120, 17}} - YES 68288064 @@ -6453,7 +6443,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{382, 27}, {100, 32}} - YES 67239424 @@ -6474,7 +6463,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 12}, {149, 18}} - YES 604110336 @@ -6497,7 +6485,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{12, 81}, {229, 32}} - YES 67239424 @@ -6516,12 +6503,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {494, 119}} - {{17, 152}, {496, 135}} - {0, 0} 67239424 @@ -6555,7 +6540,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 117}, {182, 18}} - YES 67239424 @@ -6578,7 +6562,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{140, 86}, {240, 22}} - YES -2070806976 @@ -6597,7 +6580,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{15, 89}, {120, 17}} - YES 68288064 @@ -6614,7 +6596,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{382, 80}, {100, 32}} - YES 67239424 @@ -6635,7 +6616,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{140, 59}, {240, 22}} - YES -2070806976 @@ -6654,7 +6634,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{15, 62}, {120, 17}} - YES 68288064 @@ -6671,7 +6650,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{382, 53}, {100, 32}} - YES 67239424 @@ -6692,7 +6670,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 32}, {230, 18}} - YES -1543373312 @@ -6715,7 +6692,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 12}, {236, 18}} - YES 604110336 @@ -6736,12 +6712,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {494, 143}} - {{17, 291}, {496, 159}} - {0, 0} 67239424 @@ -6775,7 +6749,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 32}, {197, 18}} - YES -2080244224 @@ -6798,7 +6771,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 12}, {217, 18}} - YES 67239424 @@ -6819,12 +6791,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {494, 58}} - {{17, 536}, {496, 74}} - {0, 0} 67239424 @@ -6845,8 +6815,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {530, 630} - - NSView @@ -6860,8 +6828,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA InputSettingsMicrophone NSWindow + {1.79769e+308, 1.79769e+308} - + 256 YES @@ -6880,7 +6849,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 69}, {528, 18}} - YES 537001472 @@ -6897,7 +6865,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{16, 39}, {532, 25}} - YES -1543373312 @@ -6919,7 +6886,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{247, 14}, {70, 17}} - YES 605158976 @@ -6936,7 +6902,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{15, 109}, {54, 17}} - YES 605158976 @@ -6953,7 +6918,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{71, 103}, {478, 26}} - YES -1539178944 @@ -6996,12 +6960,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {564, 137}} - {{17, 56}, {566, 153}} - {0, 0} 67239424 @@ -7035,7 +6997,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 14}, {290, 78}} - YES 4 1 @@ -7256,7 +7217,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{130, 12}, {324, 21}} - YES 612499008 @@ -7275,7 +7235,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{456, 5}, {96, 32}} - YES 604110336 @@ -7294,12 +7253,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {564, 102}} - {{17, 213}, {566, 118}} - {0, 0} 67239424 @@ -7323,7 +7280,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{490, 12}, {96, 32}} - 1 YES @@ -7345,7 +7301,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{394, 12}, {96, 32}} - YES 67239424 @@ -7366,7 +7321,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 339}, {566, 17}} - YES 70385217 @@ -7381,8 +7335,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {600, 376} - - {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -7395,8 +7347,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA InputSettingsTouch NSWindow + {1.79769e+308, 1.79769e+308} - + 256 YES @@ -7415,7 +7368,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{97, 44}, {17, 17}} - YES 68288064 @@ -7432,7 +7384,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{119, 42}, {96, 22}} - YES -1804468671 @@ -7512,7 +7463,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{97, 16}, {17, 17}} - YES 68288064 @@ -7529,7 +7479,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{119, 14}, {96, 22}} - YES -1804468671 @@ -7607,12 +7556,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {314, 74}} - {{17, 56}, {316, 90}} - {0, 0} 67239424 @@ -7636,7 +7583,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{240, 12}, {96, 32}} - 1 YES @@ -7658,7 +7604,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 202}, {314, 18}} - YES 67239424 @@ -7681,7 +7626,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 154}, {316, 42}} - YES 67239424 @@ -7698,7 +7642,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{144, 12}, {96, 32}} - YES 67239424 @@ -7719,7 +7662,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 226}, {316, 17}} - YES 70385217 @@ -7734,8 +7676,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {350, 263} - - {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -7748,8 +7688,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA InputSettingsLoadStateSlot NSWindow + {1.79769e+308, 1.79769e+308} - + 256 YES @@ -7758,7 +7699,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{121, 56}, {212, 26}} - YES -2076049856 @@ -7901,7 +7841,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 62}, {102, 17}} - YES 68288064 @@ -7918,7 +7857,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{240, 12}, {96, 32}} - 1 YES @@ -7940,7 +7878,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{144, 12}, {96, 32}} - YES 67239424 @@ -7961,7 +7898,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 88}, {316, 17}} - YES 70385217 @@ -7976,8 +7912,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {350, 125} - - {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -7990,6 +7924,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA InputSettingsSaveStateSlot NSWindow + {1.79769e+308, 1.79769e+308} 256 @@ -8225,6 +8160,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA InputSettingsSpeedLimit NSWindow + {1.79769e+308, 1.79769e+308} 256 @@ -8537,8 +8473,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA InputSettingsGPUState NSWindow + {1.79769e+308, 1.79769e+308} - + 256 YES @@ -8557,7 +8494,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 14}, {444, 142}} - YES 6 2 @@ -8878,12 +8814,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {480, 166}} - {{17, 56}, {482, 182}} - {0, 0} 67239424 @@ -8907,7 +8841,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{406, 12}, {96, 32}} - 1 YES @@ -8929,7 +8862,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{310, 12}, {96, 32}} - YES 67239424 @@ -8950,7 +8882,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 246}, {482, 17}} - YES 70385217 @@ -8965,8 +8896,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {516, 283} - - {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -8981,7 +8910,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {1.79769e+308, 1.79769e+308} - + 256 YES @@ -8990,7 +8919,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{119, 300}, {166, 22}} - YES -1804468671 @@ -9009,7 +8937,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{119, 246}, {166, 44}} - YES -1805517311 @@ -9028,7 +8955,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 302}, {71, 17}} - YES 68288064 @@ -9045,7 +8971,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 270}, {63, 17}} - YES 68288064 @@ -9062,7 +8987,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 220}, {97, 17}} - YES 68288064 @@ -9079,7 +9003,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 178}, {60, 17}} - YES 68288064 @@ -9096,7 +9019,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 150}, {69, 17}} - YES 68288064 @@ -9113,7 +9035,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{119, 176}, {169, 27}} - YES 71433728 @@ -9134,7 +9055,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{116, 144}, {172, 26}} - YES -2076049856 @@ -9234,7 +9154,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{116, 214}, {172, 26}} - YES -2076049856 @@ -9507,7 +9426,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 55}, {271, 85}} - YES 67239424 @@ -9524,7 +9442,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{104, 12}, {96, 32}} - YES 67239424 @@ -9542,8 +9459,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {305, 339} - - {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -9559,7 +9474,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {1.79769e+308, 1.79769e+308} {700, 250} - + 256 YES @@ -9568,7 +9483,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 310}, {666, 34}} - YES 67239424 @@ -9585,7 +9499,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 292 {{362, 12}, {162, 32}} - 2 YES @@ -9607,7 +9520,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 292 {{200, 12}, {162, 32}} - YES 67239424 @@ -9628,7 +9540,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 274}, {666, 28}} - YES 67239424 @@ -9649,7 +9560,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 292 {{18, 21}, {182, 18}} - YES 67239424 @@ -9672,7 +9582,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 292 {{524, 12}, {162, 32}} - 1 YES @@ -9704,14 +9613,12 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 {700, 195} - YES 256 {700, 17} - @@ -9719,7 +9626,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{544, 0}, {16, 17}} - YES @@ -9875,7 +9781,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 17}, {700, 195}} - @@ -9886,7 +9791,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{544, 17}, {15, 180}} - _doScroller: 0.92307692307692313 @@ -9896,7 +9800,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{1, 197}, {598, 15}} - 1 _doScroller: @@ -9911,7 +9814,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 0}, {700, 17}} - @@ -9921,7 +9823,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{-1, 53}, {702, 213}} - 562 @@ -9933,8 +9834,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {700, 364} - - {{0, 0}, {1920, 1178}} {700, 272} @@ -9950,7 +9849,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {1.79769e+308, 1.79769e+308} - + 256 YES @@ -9959,7 +9858,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 112}, {346, 68}} - YES 67239424 @@ -9976,7 +9874,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{270, 12}, {96, 32}} - 1 YES @@ -9998,7 +9895,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{144, 12}, {126, 32}} - YES 67239424 @@ -10019,7 +9915,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 48}, {346, 56}} - YES 67239424 @@ -10033,8 +9928,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {380, 200} - - {{0, 0}, {1440, 878}} {1.79769e+308, 1.79769e+308} @@ -13741,7 +13634,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {1.79769e+308, 1.79769e+308} - + 256 YES @@ -13750,7 +13643,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 174}, {158, 18}} - YES -2080244224 @@ -13773,7 +13665,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 154}, {158, 18}} - YES -2080244224 @@ -13796,7 +13687,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 134}, {158, 18}} - YES -2080244224 @@ -13819,7 +13709,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 114}, {158, 18}} - YES -2080244224 @@ -13842,7 +13731,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 94}, {158, 18}} - YES -2080244224 @@ -13865,7 +13753,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 74}, {158, 18}} - YES -2080244224 @@ -13888,7 +13775,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 54}, {158, 18}} - YES -2080244224 @@ -13911,7 +13797,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{20, 18}, {154, 19}} - YES -2080244224 @@ -13932,7 +13817,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{18, 205}, {158, 18}} - YES -2080244224 @@ -13955,7 +13839,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 12 {{21, 196}, {153, 5}} - {0, 0} 67239424 @@ -13975,8 +13858,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {194, 241} - - {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -17704,7 +17585,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {1.79769e+308, 1.79769e+308} - + 256 YES @@ -17713,7 +17594,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{30, 43}, {411, 26}} - YES -2079981824 @@ -17735,7 +17615,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{20, 70}, {38, 17}} - YES 68288064 @@ -17752,7 +17631,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{412, 70}, {38, 17}} - YES 68288064 @@ -17769,7 +17647,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{98, 70}, {38, 17}} - YES 68288064 @@ -17786,7 +17663,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{177, 70}, {38, 17}} - YES 68288064 @@ -17803,7 +17679,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{255, 70}, {38, 17}} - YES 68288064 @@ -17820,7 +17695,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{335, 70}, {38, 17}} - YES 68288064 @@ -17837,7 +17711,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{32, 18}, {133, 19}} - 100 YES @@ -17859,7 +17732,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{260, 21}, {123, 17}} - YES 68288064 @@ -17876,7 +17748,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{385, 21}, {57, 17}} - YES 68288064 @@ -17957,7 +17828,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{158, 93}, {154, 18}} - YES -2080244224 @@ -17977,8 +17847,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {467, 128} - - {{0, 0}, {1920, 1178}} {1.79769e+308, 1.79769e+308} @@ -18328,18 +18196,16 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {580, 592} {580, 592} - + 256 {580, 592} - - {{0, 0}, {1920, 1178}} {580, 614} {580, 614} - + 268 YES @@ -18381,7 +18247,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{0, 69}, {523, 133}} - @@ -18445,7 +18310,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {523, 202}} - @@ -18457,7 +18321,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 {{524, 1}, {15, 202}} - _doScroller: 0.99248120300751874 @@ -18467,7 +18330,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{-100, -100}, {87, 18}} - 1 _doScroller: @@ -18477,7 +18339,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{20, 61}, {540, 204}} - 18 @@ -18489,7 +18350,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 265 {{397, 342}, {166, 28}} - YES 69336577 @@ -18518,7 +18378,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{365, 340}, {30, 30}} - YES 130560 @@ -18536,7 +18395,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 288 {{125, 16}, {438, 28}} - YES 67239424 @@ -18553,7 +18411,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 34 {{12, 50}, {556, 5}} - {0, 0} 67239424 @@ -18576,7 +18433,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 273}, {546, 28}} - YES 67239424 @@ -18593,7 +18449,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 309}, {546, 17}} - YES 68288064 @@ -18610,7 +18465,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 10 {{12, 332}, {556, 5}} - {0, 0} 67239424 @@ -18633,7 +18487,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 489}, {546, 42}} - YES 67239424 @@ -18650,7 +18503,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 539}, {546, 17}} - YES 68288064 @@ -18667,7 +18519,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 10 {{12, 478}, {556, 5}} - {0, 0} 67239424 @@ -18690,7 +18541,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 455}, {546, 17}} - YES 68288064 @@ -18707,7 +18557,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 405}, {546, 42}} - YES 67239424 @@ -18724,7 +18573,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 347}, {77, 17}} - YES 68288064 @@ -18741,7 +18589,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 377}, {78, 17}} - YES 68288064 @@ -18758,7 +18605,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 266 {{100, 345}, {256, 22}} - YES -1804468671 @@ -18776,7 +18622,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 266 {{100, 375}, {256, 22}} - YES -1804468671 @@ -18794,7 +18639,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 265 {{358, 370}, {209, 32}} - YES 67239424 @@ -18815,7 +18659,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 288 {{14, 12}, {112, 32}} - YES 67239424 @@ -18833,12 +18676,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {580, 567} - - NSView - + 268 YES @@ -18880,7 +18721,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{0, 18}, {524, 62}} - @@ -18944,7 +18784,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {524, 80}} - @@ -18956,7 +18795,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 {{525, 1}, {15, 80}} - _doScroller: 0.99248120300751874 @@ -18966,7 +18804,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{-100, -100}, {87, 18}} - 1 _doScroller: @@ -18976,7 +18813,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{20, 61}, {541, 82}} - 18 @@ -19021,7 +18857,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{0, 6}, {523, 65}} - @@ -19085,7 +18920,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {523, 80}} - @@ -19097,7 +18931,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 {{524, 1}, {15, 80}} - _doScroller: 0.99248120300751874 @@ -19107,7 +18940,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{-100, -100}, {87, 18}} - 1 _doScroller: @@ -19117,7 +18949,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{20, 167}, {540, 82}} - 18 @@ -19129,7 +18960,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 265 {{397, 342}, {166, 28}} - YES 69336577 @@ -19158,7 +18988,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{365, 340}, {30, 30}} - YES 130560 @@ -19176,7 +19005,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 288 {{125, 16}, {438, 28}} - YES 67239424 @@ -19193,7 +19021,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 34 {{12, 50}, {556, 5}} - {0, 0} 67239424 @@ -19216,7 +19043,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 {{17, 145}, {206, 14}} - YES 68288064 @@ -19233,7 +19059,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 {{17, 251}, {206, 14}} - YES 68288064 @@ -19250,7 +19075,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 273}, {546, 28}} - YES 67239424 @@ -19267,7 +19091,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 309}, {546, 17}} - YES 68288064 @@ -19284,7 +19107,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 10 {{12, 332}, {556, 5}} - {0, 0} 67239424 @@ -19307,7 +19129,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 489}, {546, 42}} - YES 67239424 @@ -19324,7 +19145,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 539}, {546, 17}} - YES 68288064 @@ -19341,7 +19161,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 10 {{12, 478}, {556, 5}} - {0, 0} 67239424 @@ -19364,7 +19183,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 455}, {546, 17}} - YES 68288064 @@ -19381,7 +19199,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 269 {{17, 405}, {546, 42}} - YES 67239424 @@ -19398,7 +19215,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 347}, {77, 17}} - YES 68288064 @@ -19415,7 +19231,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 377}, {78, 17}} - YES 68288064 @@ -19432,7 +19247,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 266 {{100, 345}, {255, 22}} - YES -1804468671 @@ -19450,7 +19264,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 266 {{100, 375}, {255, 22}} - YES -1804468671 @@ -19468,7 +19281,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 265 {{358, 370}, {209, 32}} - YES 67239424 @@ -19489,7 +19301,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 288 {{14, 12}, {112, 32}} - YES 67239424 @@ -19507,12 +19318,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {580, 567} - - NSView - + 268 YES @@ -19521,7 +19330,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{342, 55}, {224, 32}} - YES 67239424 @@ -19542,7 +19350,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{17, 52}, {326, 42}} - YES 67239424 @@ -19559,7 +19366,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{342, 12}, {224, 32}} - YES 67239424 @@ -19580,7 +19386,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 268 {{14, 12}, {112, 32}} - YES 67239424 @@ -19611,7 +19416,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 2322 {{0, 157}, {523, 14}} - @@ -19675,7 +19479,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{1, 1}, {523, 443}} - @@ -19687,7 +19490,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 256 {{524, 1}, {15, 443}} - _doScroller: 1 @@ -19698,7 +19500,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA -2147483392 {{-100, -100}, {87, 18}} - 1 _doScroller: @@ -19708,7 +19509,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {{20, 102}, {540, 445}} - 18 @@ -19717,8 +19517,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA {580, 567} - - NSView @@ -27834,14 +27632,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA 7111 - - - inputPrefsOutlineView - - - - 7157 - dataSource diff --git a/desmume/src/cocoa/userinterface/InputManager.h b/desmume/src/cocoa/userinterface/InputManager.h index c7b41e025..92a32497e 100644 --- a/desmume/src/cocoa/userinterface/InputManager.h +++ b/desmume/src/cocoa/userinterface/InputManager.h @@ -144,7 +144,6 @@ void HandleDeviceRemovalCallback(void *inContext, IOReturn inResult, void *inSen @interface InputManager : NSObject { EmuControllerDelegate *emuControl; - NSOutlineView *inputPrefsOutlineView; id hidInputTarget; InputHIDManager *hidManager; NSMutableDictionary *inputMappings; @@ -155,7 +154,6 @@ void HandleDeviceRemovalCallback(void *inContext, IOReturn inResult, void *inSen } @property (readonly) IBOutlet EmuControllerDelegate *emuControl; -@property (readonly) IBOutlet NSOutlineView *inputPrefsOutlineView; @property (retain) id hidInputTarget; @property (retain) NSMutableDictionary *inputMappings; diff --git a/desmume/src/cocoa/userinterface/InputManager.mm b/desmume/src/cocoa/userinterface/InputManager.mm index ac84d916f..e9c579b27 100644 --- a/desmume/src/cocoa/userinterface/InputManager.mm +++ b/desmume/src/cocoa/userinterface/InputManager.mm @@ -795,7 +795,6 @@ void HandleDeviceRemovalCallback(void *inContext, IOReturn inResult, void *inSen @implementation InputManager @synthesize emuControl; -@synthesize inputPrefsOutlineView; @dynamic hidInputTarget; @synthesize inputMappings; @@ -1146,9 +1145,9 @@ static std::tr1::unordered_map keyboardNameTable; / commandMap.erase(it); } - for (NSString *inputCommandTag in [self inputMappings]) + for (NSString *inputCommandTag in inputMappings) { - NSMutableArray *inputList = (NSMutableArray *)[[self inputMappings] valueForKey:inputCommandTag]; + NSMutableArray *inputList = (NSMutableArray *)[inputMappings valueForKey:inputCommandTag]; NSMutableArray *inputRemovalList = [NSMutableArray arrayWithCapacity:1]; for (NSDictionary *inputDeviceInfo in inputList) @@ -1164,10 +1163,7 @@ static std::tr1::unordered_map keyboardNameTable; / } } - for (NSDictionary *inputDeviceInfoToRemove in inputRemovalList) - { - [inputList removeObject:inputDeviceInfoToRemove]; - } + [inputList removeObjectsInArray:inputRemovalList]; } } @@ -1304,7 +1300,7 @@ static std::tr1::unordered_map keyboardNameTable; / const BOOL useInputForIntCoord = [(NSNumber *)[deviceInfo valueForKey:@"useInputForIntCoord"] boolValue]; if (useInputForIntCoord) { - inputSummary = @"Use Device Coordinates"; + inputSummary = NSSTRING_INPUTPREF_USE_DEVICE_COORDINATES; } else { @@ -1319,11 +1315,11 @@ static std::tr1::unordered_map keyboardNameTable; / switch (micMode) { case MICMODE_NONE: - inputSummary = @"None"; + inputSummary = NSSTRING_INPUTPREF_MIC_NONE; break; case MICMODE_INTERNAL_NOISE: - inputSummary = @"Internal Noise Samples"; + inputSummary = NSSTRING_INPUTPREF_MIC_INTERNAL_NOISE; break; case MICMODE_SOUND_FILE: @@ -1331,7 +1327,7 @@ static std::tr1::unordered_map keyboardNameTable; / break; case MICMODE_WHITE_NOISE: - inputSummary = @"White Noise"; + inputSummary = NSSTRING_INPUTPREF_MIC_WHITE_NOISE; break; case MICMODE_PHYSICAL: @@ -1355,7 +1351,7 @@ static std::tr1::unordered_map keyboardNameTable; / else if (strncmp(commandTag, "Set Speed", INPUT_HANDLER_STRING_LENGTH) == 0) { const float speedScalar = [(NSNumber *)[deviceInfo valueForKey:@"floatValue0"] floatValue]; - inputSummary = [NSString stringWithFormat:@"%1.2fx Speed", speedScalar]; + inputSummary = [NSString stringWithFormat:NSSTRING_INPUTPREF_SPEED_SCALAR, speedScalar]; } else if (strncmp(commandTag, "Enable/Disable GPU State", INPUT_HANDLER_STRING_LENGTH) == 0) { @@ -1363,7 +1359,7 @@ static std::tr1::unordered_map keyboardNameTable; / switch (gpuStateID) { case 0: - inputSummary = @"Main GPU - All Layers"; + inputSummary = NSSTRING_INPUTPREF_GPU_STATE_ALL_MAIN; break; case 1: @@ -1387,7 +1383,7 @@ static std::tr1::unordered_map keyboardNameTable; / break; case 6: - inputSummary = @"Sub GPU - All Layers"; + inputSummary = NSSTRING_INPUTPREF_GPU_STATE_ALL_SUB; break; case 7: diff --git a/desmume/src/cocoa/userinterface/inputPrefsView.mm b/desmume/src/cocoa/userinterface/inputPrefsView.mm index 582d8c487..3b49d637a 100644 --- a/desmume/src/cocoa/userinterface/inputPrefsView.mm +++ b/desmume/src/cocoa/userinterface/inputPrefsView.mm @@ -372,7 +372,7 @@ buttonImage = (NSImage *)[inputPrefProperties valueForKey:@"UNKNOWN COMMAND"]; } - [outCell setTitle:commandTag]; + [outCell setTitle:NSLocalizedString(commandTag, nil)]; [outCell setImage:buttonImage]; } else @@ -483,7 +483,7 @@ if ([item isKindOfClass:[NSArray class]]) { const unsigned long inputCount = (unsigned long)[(NSArray *)item count]; - return [NSString stringWithFormat:(inputCount != 1) ? @"%ld Inputs Mapped" : @"%ld Input Mapped", inputCount]; + return [NSString stringWithFormat:(inputCount != 1) ? NSSTRING_INPUTPREF_NUM_INPUTS_MAPPED_PLURAL : NSSTRING_INPUTPREF_NUM_INPUTS_MAPPED, inputCount]; } else if ([item isKindOfClass:[NSDictionary class]]) { @@ -626,13 +626,12 @@ const NSInteger rowNumber = [outlineView clickedRow]; NSDictionary *deviceInfo = (NSDictionary *)[outlineView itemAtRow:rowNumber]; - [inputManager removeMappingUsingDeviceCode:[(NSString *)[deviceInfo valueForKey:@"deviceCode"] cStringUsingEncoding:NSUTF8StringEncoding] elementCode:[(NSString *)[deviceInfo valueForKey:@"elementCode"] cStringUsingEncoding:NSUTF8StringEncoding]]; - NSMutableArray *inputList = (NSMutableArray *)[outlineView parentForItem:deviceInfo]; - [inputList removeObject:deviceInfo]; + + [inputManager removeMappingUsingDeviceCode:[(NSString *)[deviceInfo valueForKey:@"deviceCode"] cStringUsingEncoding:NSUTF8StringEncoding] elementCode:[(NSString *)[deviceInfo valueForKey:@"elementCode"] cStringUsingEncoding:NSUTF8StringEncoding]]; + [inputManager writeDefaultsInputMappings]; [outlineView reloadItem:inputList reloadChildren:YES]; - [inputManager writeDefaultsInputMappings]; } - (IBAction) changeSpeed:(id)sender