Renamed SET_INITIAL_MODE_MSG to BUTTON_UNDO_MSG.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20101 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Waldemar Kornewald 2007-02-07 14:39:08 +00:00
parent bbf8311d15
commit 10e9b12fe0
6 changed files with 7 additions and 9 deletions

View File

@ -52,7 +52,7 @@ AlertView::AlertView(BRect frame, char *name)
AddChild(keepButton);
BButton* button = new BButton(rect, "undo", "Undo",
new BMessage(SET_INITIAL_MODE_MSG), B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM);
new BMessage(BUTTON_UNDO_MSG), B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM);
button->ResizeToPreferred();
AddChild(button);
@ -107,7 +107,7 @@ void
AlertView::Pulse()
{
if (--fSeconds == 0)
Window()->PostMessage(SET_INITIAL_MODE_MSG);
Window()->PostMessage(BUTTON_UNDO_MSG);
else
UpdateCountdownView();
}
@ -117,7 +117,7 @@ void
AlertView::KeyDown(const char* bytes, int32 numBytes)
{
if (numBytes == 1 && bytes[0] == B_ESCAPE)
Window()->PostMessage(SET_INITIAL_MODE_MSG);
Window()->PostMessage(BUTTON_UNDO_MSG);
}

View File

@ -43,8 +43,8 @@ AlertWindow::MessageReceived(BMessage *message)
PostMessage(B_QUIT_REQUESTED);
break;
case SET_INITIAL_MODE_MSG:
fTarget.SendMessage(SET_INITIAL_MODE_MSG);
case BUTTON_UNDO_MSG:
fTarget.SendMessage(BUTTON_UNDO_MSG);
PostMessage(B_QUIT_REQUESTED);
break;

View File

@ -21,6 +21,7 @@ static const uint32 BUTTON_REVERT_MSG = 'brev';
static const uint32 BUTTON_APPLY_MSG = 'bapl';
static const uint32 BUTTON_DONE_MSG = 'bdon';
static const uint32 BUTTON_KEEP_MSG = 'bkep';
static const uint32 BUTTON_UNDO_MSG = 'bund';
static const uint32 POP_WORKSPACE_CHANGED_MSG = 'pwsc';
static const uint32 POP_RESOLUTION_MSG = 'pres';
static const uint32 POP_COLORS_MSG = 'pclr';
@ -34,7 +35,6 @@ static const uint32 UPDATE_DESKTOP_COLOR_MSG = 'udsc';
static const uint32 UPDATE_DESKTOP_MSG = 'udsk';
static const uint32 SLIDER_MODIFICATION_MSG = 'sldm';
static const uint32 SLIDER_INVOKE_MSG = 'sldi';
static const uint32 SET_INITIAL_MODE_MSG = 'sinm';
static const uint32 SET_CUSTOM_REFRESH_MSG = 'scrf';
static const uint32 DIM_COUNT_MSG = 'scrf';
static const uint32 MAKE_INITIAL_MSG = 'mkin';

View File

@ -43,7 +43,6 @@ void
ScreenApplication::MessageReceived(BMessage* message)
{
switch (message->what) {
case SET_INITIAL_MODE_MSG:
case SET_CUSTOM_REFRESH_MSG:
case MAKE_INITIAL_MSG:
fScreenWindow->PostMessage(message);

View File

@ -62,7 +62,6 @@ class ScreenMode {
uint32 fModeCount;
bool fUpdatedModes;
// TODO: hard-coded to the current workspace limit
display_mode fOriginalDisplayMode[32];
screen_mode fOriginal[32];
};

View File

@ -916,7 +916,7 @@ ScreenWindow::MessageReceived(BMessage* message)
break;
}
case SET_INITIAL_MODE_MSG:
case BUTTON_UNDO_MSG:
fTempScreenMode.Revert();
UpdateActiveMode();
break;