we want button numbers to be updated as mouse map is updated
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18011 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -283,6 +283,13 @@ MouseView::SetMouseType(int32 type)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
MouseView::MouseMapUpdated()
|
||||
{
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
MouseView::UpdateFromSettings()
|
||||
{
|
||||
|
||||
@@ -37,6 +37,7 @@ class MouseView : public BView {
|
||||
virtual void GetPreferredSize(float *_width, float *_height);
|
||||
|
||||
void SetMouseType(int32 type);
|
||||
void MouseMapUpdated();
|
||||
void UpdateFromSettings();
|
||||
|
||||
private:
|
||||
|
||||
@@ -185,6 +185,7 @@ MouseWindow::MessageReceived(BMessage *message)
|
||||
|
||||
fSettings.SetMapping(button, mapping);
|
||||
SetRevertable(true);
|
||||
fSettingsView->MouseMapUpdated();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -216,6 +216,13 @@ SettingsView::SetMouseType(int32 type)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SettingsView::MouseMapUpdated()
|
||||
{
|
||||
fMouseView->MouseMapUpdated();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SettingsView::UpdateFromSettings()
|
||||
{
|
||||
|
||||
@@ -39,6 +39,7 @@ class SettingsView : public BBox {
|
||||
virtual void Draw(BRect frame);
|
||||
|
||||
void SetMouseType(int32 type);
|
||||
void MouseMapUpdated();
|
||||
void UpdateFromSettings();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user