Make the keyring label and name StringViews.
This commit is contained in:
committed by
Ryan Leavengood
parent
7b437e50eb
commit
f1f719c433
@@ -18,6 +18,7 @@
|
|||||||
#include <NetworkDevice.h>
|
#include <NetworkDevice.h>
|
||||||
#include <PopUpMenu.h>
|
#include <PopUpMenu.h>
|
||||||
#include <SpaceLayoutItem.h>
|
#include <SpaceLayoutItem.h>
|
||||||
|
#include <StringView.h>
|
||||||
#include <TextControl.h>
|
#include <TextControl.h>
|
||||||
#include <View.h>
|
#include <View.h>
|
||||||
|
|
||||||
@@ -54,13 +55,19 @@ public:
|
|||||||
rootLayout->SetSpacing(inset);
|
rootLayout->SetSpacing(inset);
|
||||||
layout->SetSpacing(inset, inset);
|
layout->SetSpacing(inset, inset);
|
||||||
|
|
||||||
fKeyringName = new(std::nothrow) BTextControl("Keyring:", "", NULL);
|
BStringView* label = new(std::nothrow) BStringView("keyringLabel",
|
||||||
if (fKeyringName == NULL)
|
"Keyring:");
|
||||||
|
if (label == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int32 row = 0;
|
int32 row = 0;
|
||||||
layout->AddItem(fKeyringName->CreateLabelLayoutItem(), 0, row);
|
layout->AddView(label, 0, row);
|
||||||
layout->AddItem(fKeyringName->CreateTextViewLayoutItem(), 1, row++);
|
|
||||||
|
fKeyringName = new(std::nothrow) BStringView("keyringName", "");
|
||||||
|
if (fKeyringName == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
|
layout->AddView(fKeyringName, 1, row++);
|
||||||
|
|
||||||
fPassword = new(std::nothrow) BTextControl("Password:", "", NULL);
|
fPassword = new(std::nothrow) BTextControl("Password:", "", NULL);
|
||||||
if (fPassword == NULL)
|
if (fPassword == NULL)
|
||||||
@@ -118,7 +125,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BTextControl* fKeyringName;
|
BStringView* fKeyringName;
|
||||||
BTextControl* fPassword;
|
BTextControl* fPassword;
|
||||||
BCheckBox* fPersist;
|
BCheckBox* fPersist;
|
||||||
BButton* fCancelButton;
|
BButton* fCancelButton;
|
||||||
|
|||||||
Reference in New Issue
Block a user