Adjust IMAP addon for changes in BALMLayout.
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
#include <StringView.h>
|
#include <StringView.h>
|
||||||
|
|
||||||
#include <ALMLayout.h>
|
#include <ALMLayout.h>
|
||||||
|
#include <ALMGroup.h>
|
||||||
#include <StringForSize.h>
|
#include <StringForSize.h>
|
||||||
|
|
||||||
#include <crypt.h>
|
#include <crypt.h>
|
||||||
@@ -86,10 +87,11 @@ public:
|
|||||||
B_WILL_DRAW);
|
B_WILL_DRAW);
|
||||||
AddChild(rootView);
|
AddChild(rootView);
|
||||||
rootView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
rootView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
float spacing = be_control_look->DefaultItemSpacing();
|
|
||||||
BALMLayout* layout = new BALMLayout(spacing);
|
BALMLayout* layout = new BALMLayout(B_USE_ITEM_SPACING,
|
||||||
|
B_USE_ITEM_SPACING);
|
||||||
rootView->SetLayout(layout);
|
rootView->SetLayout(layout);
|
||||||
layout->SetInset(spacing);
|
layout->SetInsets(B_USE_WINDOW_SPACING);
|
||||||
|
|
||||||
BStringView* string = new BStringView("text", text);
|
BStringView* string = new BStringView("text", text);
|
||||||
layout->AddView(string, layout->Left(), layout->Top(), layout->Right(),
|
layout->AddView(string, layout->Left(), layout->Top(), layout->Right(),
|
||||||
@@ -254,10 +256,9 @@ FolderConfigWindow::FolderConfigWindow(BRect parent, const BMessage& settings)
|
|||||||
AddChild(rootView);
|
AddChild(rootView);
|
||||||
rootView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
rootView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||||
|
|
||||||
float spacing = be_control_look->DefaultItemSpacing();
|
BALMLayout* layout = new BALMLayout(B_USE_ITEM_SPACING, B_USE_ITEM_SPACING);
|
||||||
BALMLayout* layout = new BALMLayout(spacing);
|
|
||||||
rootView->SetLayout(layout);
|
rootView->SetLayout(layout);
|
||||||
layout->SetInset(spacing);
|
layout->SetInsets(B_USE_WINDOW_INSETS);
|
||||||
|
|
||||||
fFolderListView = new EditListView(B_TRANSLATE("IMAP Folders"));
|
fFolderListView = new EditListView(B_TRANSLATE("IMAP Folders"));
|
||||||
fFolderListView->SetExplicitPreferredSize(BSize(B_SIZE_UNLIMITED,
|
fFolderListView->SetExplicitPreferredSize(BSize(B_SIZE_UNLIMITED,
|
||||||
@@ -270,13 +271,9 @@ FolderConfigWindow::FolderConfigWindow(BRect parent, const BMessage& settings)
|
|||||||
fQuotaView->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT,
|
fQuotaView->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT,
|
||||||
B_ALIGN_VERTICAL_CENTER));
|
B_ALIGN_VERTICAL_CENTER));
|
||||||
|
|
||||||
layout->AddView(fFolderListView, layout->Left(), layout->Top(),
|
(ALMGroup(fQuotaView) / ALMGroup(fFolderListView)
|
||||||
layout->Right(), layout->Bottom());
|
/ (ALMGroup(BSpaceLayoutItem::CreateGlue())
|
||||||
|
| ALMGroup(fApplyButton))).BuildLayout(layout);
|
||||||
GroupItem item = GroupItem(fQuotaView) / GroupItem(fFolderListView)
|
|
||||||
/ (GroupItem(BSpaceLayoutItem::CreateGlue())
|
|
||||||
| GroupItem(fApplyButton));
|
|
||||||
layout->BuildLayout(item);
|
|
||||||
|
|
||||||
PostMessage(kMsgInit);
|
PostMessage(kMsgInit);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user