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
|
void
|
||||||
MouseView::UpdateFromSettings()
|
MouseView::UpdateFromSettings()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ class MouseView : public BView {
|
|||||||
virtual void GetPreferredSize(float *_width, float *_height);
|
virtual void GetPreferredSize(float *_width, float *_height);
|
||||||
|
|
||||||
void SetMouseType(int32 type);
|
void SetMouseType(int32 type);
|
||||||
|
void MouseMapUpdated();
|
||||||
void UpdateFromSettings();
|
void UpdateFromSettings();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -185,6 +185,7 @@ MouseWindow::MessageReceived(BMessage *message)
|
|||||||
|
|
||||||
fSettings.SetMapping(button, mapping);
|
fSettings.SetMapping(button, mapping);
|
||||||
SetRevertable(true);
|
SetRevertable(true);
|
||||||
|
fSettingsView->MouseMapUpdated();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -216,6 +216,13 @@ SettingsView::SetMouseType(int32 type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
SettingsView::MouseMapUpdated()
|
||||||
|
{
|
||||||
|
fMouseView->MouseMapUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
SettingsView::UpdateFromSettings()
|
SettingsView::UpdateFromSettings()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ class SettingsView : public BBox {
|
|||||||
virtual void Draw(BRect frame);
|
virtual void Draw(BRect frame);
|
||||||
|
|
||||||
void SetMouseType(int32 type);
|
void SetMouseType(int32 type);
|
||||||
|
void MouseMapUpdated();
|
||||||
void UpdateFromSettings();
|
void UpdateFromSettings();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user