* Implemented changing the icons size (several ones are supported from

16 x 16 to 64 x 64).
* Changed the layout code to have dynamic padding depending on main icon size.
* Fixed a problem with the "Auto Raise" feature where, when the pad was along
  the bottom, you had to tip the top of the screen with the mouse for the pad
  to raise...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28096 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2008-10-14 18:32:31 +00:00
parent 8eeb005f20
commit a6099ca9e5
7 changed files with 125 additions and 26 deletions
+9
View File
@@ -357,6 +357,11 @@ MainWindow::LoadSettings(const BMessage* message)
if (message->FindInt32("orientation", &orientation) == B_OK)
fPadView->SetOrientation((enum orientation)orientation);
// restore icon size
int32 iconSize;
if (message->FindInt32("icon size", &iconSize) == B_OK)
fPadView->SetIconSize(iconSize);
// restore buttons
const char* path;
bool buttonAdded = false;
@@ -430,6 +435,10 @@ MainWindow::SaveSettings(BMessage* message)
(int32)fPadView->Orientation()) != B_OK)
message->AddInt32("orientation", (int32)fPadView->Orientation());
// store icon size
if (message->ReplaceInt32("icon size", fPadView->IconSize()) != B_OK)
message->AddInt32("icon size", fPadView->IconSize());
// store buttons
message->RemoveName("path");
message->RemoveName("description");