void PadView::SetIgnoreDoubleClick(bool refuse) { LaunchButton::SetIgnoreDoubleClick(refuse); _NotifySettingsChanged(); }
void MainWindow::FrameMoved(BPoint origin) { if (IsActive()) { _GetLocation(); _NotifySettingsChanged(); } }
bool PadView::RemoveButton(LaunchButton* button) { bool result = fButtonLayout->RemoveView(button); if (result) _NotifySettingsChanged(); return result; }
void MainWindow::FrameResized(float width, float height) { if (IsActive()) { _GetLocation(); _NotifySettingsChanged(); } BWindow::FrameResized(width, height); }
void MainWindow::ToggleAutoRaise() { fAutoRaise = !fAutoRaise; if (fAutoRaise) fPadView->SetEventMask(B_POINTER_EVENTS, B_NO_POINTER_HISTORY); else fPadView->SetEventMask(0); _NotifySettingsChanged(); }
void PadView::SetOrientation(enum orientation orientation) { if (orientation == B_VERTICAL) { fButtonLayout->SetInsets(2, 7, 2, 2); fButtonLayout->SetOrientation(B_VERTICAL); } else { fButtonLayout->SetInsets(7, 2, 2, 2); fButtonLayout->SetOrientation(B_HORIZONTAL); } _NotifySettingsChanged(); }
void PadView::AddButton(LaunchButton* button, LaunchButton* beforeButton) { button->SetIconSize(fIconSize); if (beforeButton) fButtonLayout->AddView(fButtonLayout->IndexOfView(beforeButton), button); else fButtonLayout->AddView(button); _NotifySettingsChanged(); }
void PadView::SetIconSize(uint32 size) { if (size == fIconSize) return; fIconSize = size; for (int32 i = 0; LaunchButton* button = ButtonAt(i); i++) button->SetIconSize(fIconSize); _NotifySettingsChanged(); }