8 #include "../GitCommand/Pull.h" 14 #include <LayoutBuilder.h> 15 #include <SupportKit.h> 28 B_NOT_CLOSABLE | B_NOT_RESIZABLE)
30 fTextView =
new BTextView(BRect(0, 0, 280, 80),
"_clone_",
31 BRect(0, 0, 280, 80), B_FOLLOW_LEFT_RIGHT);
32 fTextView->SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
36 fTextView->SetText(
"Pulling" B_UTF8_ELLIPSIS
"\nRepository");
37 BButton* fCancel =
new BButton(
"ok",
"Cancel",
40 BLayoutBuilder::Group<>(
this, B_VERTICAL, 0)
43 .AddGroup(B_HORIZONTAL, 0)
82 BWindow::MessageReceived(msg);
PullWindow(BString)
The PullWindow constructor.
virtual void Quit()
The function to Quit the window.
virtual void MessageReceived(BMessage *)
The handler to receive messages.
static pthread_t DoPull(PullWindow *, const char *)
This spawns thread to perform pull over given repo.
pthread_t fThreadId
Pull thread id.
The TrackGit Window class.
BTextView * fTextView
The text view to show progress text.
void SetText(const char *)
This function sets texts of the textview within window.
Header file of Pull window.