void PowerStatusView::AttachedToWindow() { BView::AttachedToWindow(); AdoptParentColors(); float tint = B_NO_TINT; color_which which = ViewUIColor(&tint); if (which == B_NO_COLOR) SetLowUIColor(B_PANEL_BACKGROUND_COLOR); else SetLowUIColor(which, tint); Update(); }
void BStatusBar::AttachedToWindow() { // resize so that the height fits float width, height; GetPreferredSize(&width, &height); ResizeTo(Bounds().Width(), height); SetViewColor(B_TRANSPARENT_COLOR); AdoptParentColors(); fTextDivider = Bounds().Width(); if ((fInternalFlags & kCustomBarColor) == 0) fBarColor = ui_color(B_STATUS_BAR_COLOR); }
void LookAndFeelSettingsView::AttachedToWindow() { AdoptParentColors(); if (Parent() == NULL) SetViewUIColor(B_PANEL_BACKGROUND_COLOR); fDecorMenu->SetTargetForItems(this); fDecorInfoButton->SetTarget(this); fArrowStyleSingle->SetTarget(this); fArrowStyleDouble->SetTarget(this); if (fSavedDoubleArrowsValue) fArrowStyleDouble->SetValue(B_CONTROL_ON); else fArrowStyleSingle->SetValue(B_CONTROL_ON); }
void NetworkStatusView::AttachedToWindow() { BView::AttachedToWindow(); if (Parent() != NULL) { if ((Parent()->Flags() & B_DRAW_ON_CHILDREN) != 0) SetViewColor(B_TRANSPARENT_COLOR); else AdoptParentColors(); } else SetViewUIColor(B_PANEL_BACKGROUND_COLOR); if (ViewUIColor() != B_NO_COLOR) SetLowUIColor(ViewUIColor()); else SetLowColor(ViewColor()); start_watching_network( B_WATCH_NETWORK_INTERFACE_CHANGES | B_WATCH_NETWORK_LINK_CHANGES, this); _Update(); }
void ClockView::AttachedToWindow() { AdoptParentColors(); fShowClock->SetTarget(this); fShowSeconds->SetTarget(this); fShowDayOfWeek->SetTarget(this); fShowTimeZone->SetTarget(this); // Disable these controls initially, they'll be enabled // when we get a response from Deskbar. fShowClock->SetEnabled(false); fShowSeconds->SetEnabled(false); fShowDayOfWeek->SetEnabled(false); fShowTimeZone->SetEnabled(false); // Ask Deskbar for current clock settings, it will reply // asynchronously in MesssageReceived() below. BMessenger* messenger = new BMessenger(kDeskbarSignature); BMessenger replyMessenger(this); BMessage* message = new BMessage(kGetClockSettings); messenger->SendMessage(message, replyMessenger); }
void NetPulseView::AttachedToWindow() { BView::AttachedToWindow(); fMessageRunner = new BMessageRunner(BMessenger(this), new BMessage(kMsgUpdate), fUpdateInterval); fModemDownBitmap = new BBitmap( BRect(0, 0, C_MODEM_ICON_WIDTH - 1, C_MODEM_ICON_HEIGHT - 1), B_COLOR_8_BIT); if (fModemDownBitmap != NULL) { fModemDownBitmap->SetBits(kModemDownIconBits, sizeof(kModemDownIconBits), 0, B_COLOR_8_BIT); } fModemUpBitmap = new BBitmap( BRect(0, 0, C_MODEM_ICON_WIDTH - 1, C_MODEM_ICON_HEIGHT - 1), B_COLOR_8_BIT); if (fModemUpBitmap != NULL) { fModemUpBitmap->SetBits(kModemUpIconBits, sizeof(kModemUpIconBits), 0, B_COLOR_8_BIT); } AdoptParentColors(); float tint = B_NO_TINT; color_which which = ViewUIColor(&tint); if (which == B_NO_COLOR) SetLowUIColor(B_PANEL_BACKGROUND_COLOR); else SetLowUIColor(which, tint); UpdateColorTable(); Update(); }
virtual void AttachedToWindow() { BStringView::AttachedToWindow(); AdoptParentColors(); Update(-1, -1); }
void RatingView::AttachedToWindow() { AdoptParentColors(); }
void BitmapView::AllAttached() { AdoptParentColors(); }
void DialogPane::AttachedToWindow() { AdoptParentColors(); }