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:
@@ -52,7 +52,7 @@ AlertView::AlertView(BRect frame, char *name)
|
|||||||
AddChild(keepButton);
|
AddChild(keepButton);
|
||||||
|
|
||||||
BButton* button = new BButton(rect, "undo", "Undo",
|
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();
|
button->ResizeToPreferred();
|
||||||
AddChild(button);
|
AddChild(button);
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ void
|
|||||||
AlertView::Pulse()
|
AlertView::Pulse()
|
||||||
{
|
{
|
||||||
if (--fSeconds == 0)
|
if (--fSeconds == 0)
|
||||||
Window()->PostMessage(SET_INITIAL_MODE_MSG);
|
Window()->PostMessage(BUTTON_UNDO_MSG);
|
||||||
else
|
else
|
||||||
UpdateCountdownView();
|
UpdateCountdownView();
|
||||||
}
|
}
|
||||||
@@ -117,7 +117,7 @@ void
|
|||||||
AlertView::KeyDown(const char* bytes, int32 numBytes)
|
AlertView::KeyDown(const char* bytes, int32 numBytes)
|
||||||
{
|
{
|
||||||
if (numBytes == 1 && bytes[0] == B_ESCAPE)
|
if (numBytes == 1 && bytes[0] == B_ESCAPE)
|
||||||
Window()->PostMessage(SET_INITIAL_MODE_MSG);
|
Window()->PostMessage(BUTTON_UNDO_MSG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ AlertWindow::MessageReceived(BMessage *message)
|
|||||||
PostMessage(B_QUIT_REQUESTED);
|
PostMessage(B_QUIT_REQUESTED);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SET_INITIAL_MODE_MSG:
|
case BUTTON_UNDO_MSG:
|
||||||
fTarget.SendMessage(SET_INITIAL_MODE_MSG);
|
fTarget.SendMessage(BUTTON_UNDO_MSG);
|
||||||
PostMessage(B_QUIT_REQUESTED);
|
PostMessage(B_QUIT_REQUESTED);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ static const uint32 BUTTON_REVERT_MSG = 'brev';
|
|||||||
static const uint32 BUTTON_APPLY_MSG = 'bapl';
|
static const uint32 BUTTON_APPLY_MSG = 'bapl';
|
||||||
static const uint32 BUTTON_DONE_MSG = 'bdon';
|
static const uint32 BUTTON_DONE_MSG = 'bdon';
|
||||||
static const uint32 BUTTON_KEEP_MSG = 'bkep';
|
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_WORKSPACE_CHANGED_MSG = 'pwsc';
|
||||||
static const uint32 POP_RESOLUTION_MSG = 'pres';
|
static const uint32 POP_RESOLUTION_MSG = 'pres';
|
||||||
static const uint32 POP_COLORS_MSG = 'pclr';
|
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 UPDATE_DESKTOP_MSG = 'udsk';
|
||||||
static const uint32 SLIDER_MODIFICATION_MSG = 'sldm';
|
static const uint32 SLIDER_MODIFICATION_MSG = 'sldm';
|
||||||
static const uint32 SLIDER_INVOKE_MSG = 'sldi';
|
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 SET_CUSTOM_REFRESH_MSG = 'scrf';
|
||||||
static const uint32 DIM_COUNT_MSG = 'scrf';
|
static const uint32 DIM_COUNT_MSG = 'scrf';
|
||||||
static const uint32 MAKE_INITIAL_MSG = 'mkin';
|
static const uint32 MAKE_INITIAL_MSG = 'mkin';
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ void
|
|||||||
ScreenApplication::MessageReceived(BMessage* message)
|
ScreenApplication::MessageReceived(BMessage* message)
|
||||||
{
|
{
|
||||||
switch (message->what) {
|
switch (message->what) {
|
||||||
case SET_INITIAL_MODE_MSG:
|
|
||||||
case SET_CUSTOM_REFRESH_MSG:
|
case SET_CUSTOM_REFRESH_MSG:
|
||||||
case MAKE_INITIAL_MSG:
|
case MAKE_INITIAL_MSG:
|
||||||
fScreenWindow->PostMessage(message);
|
fScreenWindow->PostMessage(message);
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ class ScreenMode {
|
|||||||
uint32 fModeCount;
|
uint32 fModeCount;
|
||||||
|
|
||||||
bool fUpdatedModes;
|
bool fUpdatedModes;
|
||||||
// TODO: hard-coded to the current workspace limit
|
|
||||||
display_mode fOriginalDisplayMode[32];
|
display_mode fOriginalDisplayMode[32];
|
||||||
screen_mode fOriginal[32];
|
screen_mode fOriginal[32];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -916,7 +916,7 @@ ScreenWindow::MessageReceived(BMessage* message)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case SET_INITIAL_MODE_MSG:
|
case BUTTON_UNDO_MSG:
|
||||||
fTempScreenMode.Revert();
|
fTempScreenMode.Revert();
|
||||||
UpdateActiveMode();
|
UpdateActiveMode();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user