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:
Jérôme Duval
2006-07-03 11:52:23 +00:00
parent 62b4effa0a
commit 3aa0a9d879
5 changed files with 17 additions and 0 deletions
+7
View File
@@ -283,6 +283,13 @@ MouseView::SetMouseType(int32 type)
}
void
MouseView::MouseMapUpdated()
{
Invalidate();
}
void
MouseView::UpdateFromSettings()
{
+1
View File
@@ -37,6 +37,7 @@ class MouseView : public BView {
virtual void GetPreferredSize(float *_width, float *_height);
void SetMouseType(int32 type);
void MouseMapUpdated();
void UpdateFromSettings();
private:
+1
View File
@@ -185,6 +185,7 @@ MouseWindow::MessageReceived(BMessage *message)
fSettings.SetMapping(button, mapping);
SetRevertable(true);
fSettingsView->MouseMapUpdated();
}
break;
}
+7
View File
@@ -216,6 +216,13 @@ SettingsView::SetMouseType(int32 type)
}
void
SettingsView::MouseMapUpdated()
{
fMouseView->MouseMapUpdated();
}
void
SettingsView::UpdateFromSettings()
{
+1
View File
@@ -39,6 +39,7 @@ class SettingsView : public BBox {
virtual void Draw(BRect frame);
void SetMouseType(int32 type);
void MouseMapUpdated();
void UpdateFromSettings();
private: