Fixed code style, fixed a regression that caused a bad position when the chat window is created.
This commit is contained in:
parent
730e9d3d49
commit
19869c3970
|
@ -13,7 +13,7 @@ WindowsManager* WindowsManager::fInstance = NULL;
|
||||||
|
|
||||||
WindowsManager::WindowsManager()
|
WindowsManager::WindowsManager()
|
||||||
{
|
{
|
||||||
fCurrentPoint.Set(40.0f, 40.0f);
|
fCurrentPoint.Set(50.0f, 50.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,5 +32,5 @@ WindowsManager::RelocateWindow(BWindow* window)
|
||||||
{
|
{
|
||||||
window->SetWorkspaces(B_CURRENT_WORKSPACE);
|
window->SetWorkspaces(B_CURRENT_WORKSPACE);
|
||||||
window->MoveTo(fCurrentPoint);
|
window->MoveTo(fCurrentPoint);
|
||||||
fCurrentPoint += BPoint(40.0f, 40.0f);
|
fCurrentPoint += BPoint(50.0f, 50.0f);
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,9 @@ PreferencesBehavior::PreferencesBehavior()
|
||||||
fMarkUnreadReplicant->SetEnabled(false);
|
fMarkUnreadReplicant->SetEnabled(false);
|
||||||
// not implemented
|
// not implemented
|
||||||
|
|
||||||
fNotifications = new BStringView("notifications", "Deskbar Notifications");
|
fNotifications = new BStringView("notifications",
|
||||||
|
"Deskbar Notifications (experimental)");
|
||||||
|
|
||||||
fNotifications->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_MIDDLE));
|
fNotifications->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_MIDDLE));
|
||||||
fNotifications->SetFont(be_bold_font);
|
fNotifications->SetFont(be_bold_font);
|
||||||
|
|
||||||
|
|
|
@ -31,11 +31,14 @@
|
||||||
ContactInfoWindow::ContactInfoWindow(ContactLinker* linker)
|
ContactInfoWindow::ContactInfoWindow(ContactLinker* linker)
|
||||||
:
|
:
|
||||||
BWindow(BRect(200, 200, 500, 400),
|
BWindow(BRect(200, 200, 500, 400),
|
||||||
"Contact Informations", B_FLOATING_WINDOW, B_NOT_ZOOMABLE | B_NOT_RESIZABLE),
|
"Contact Informations", B_FLOATING_WINDOW,
|
||||||
|
B_NOT_ZOOMABLE | B_NOT_RESIZABLE),
|
||||||
fContactLinker(linker)
|
fContactLinker(linker)
|
||||||
{
|
{
|
||||||
fPersonalMessage = new BTextView("personalMessage", B_WILL_DRAW);
|
fPersonalMessage = new BTextView("personalMessage", B_WILL_DRAW);
|
||||||
fPersonalMessage->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_MIDDLE));
|
fPersonalMessage->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT,
|
||||||
|
B_ALIGN_MIDDLE));
|
||||||
|
|
||||||
fPersonalMessage->SetText(fContactLinker->GetNotifyPersonalStatus());
|
fPersonalMessage->SetText(fContactLinker->GetNotifyPersonalStatus());
|
||||||
fPersonalMessage->SetExplicitMaxSize(BSize(200, 200));
|
fPersonalMessage->SetExplicitMaxSize(BSize(200, 200));
|
||||||
fPersonalMessage->MakeEditable(false);
|
fPersonalMessage->MakeEditable(false);
|
||||||
|
|
Ŝarĝante…
Reference in New Issue