13 #include <LayoutBuilder.h> 14 #include <SupportKit.h> 24 BWindow(BRect(0, 0, 300, 150),
"TrackGit - User Credentials",
25 B_DOCUMENT_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE)
30 fUsername =
new BTextControl(
"Username:",
"", NULL);
31 fPassword =
new BTextControl(
"Password: ",
"", NULL);
32 BButton* fOK =
new BButton(
"ok",
"OK",
34 BButton* fCancel =
new BButton(
"cancel",
"Cancel",
37 BLayoutBuilder::Group<>(
this, B_VERTICAL, 0)
41 .AddGroup(B_HORIZONTAL, 0)
69 BWindow::MessageReceived(msg);
BTextControl * fPassword
The text control for password.
char * fUsernamePtr
The username pointer.
virtual void MessageReceived(BMessage *)
The handler to receive messages.
BTextControl * fUsername
The text control for username.
char * fPasswordPtr
The password pointer.
CredentialsWindow(char *, char *)
Constructor for CredentialsWindow.