8 #include "../GitCommand/Push.h" 14 #include <LayoutBuilder.h> 15 #include <SupportKit.h> 28 B_DOCUMENT_WINDOW, 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(
"Pushing" 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);
virtual void Quit()
The function to Quit the window.
PushWindow(BString)
The PushWindow constructor.
void SetText(const char *)
This function sets texts of the textview within window.
pthread_t fThreadId
Pull thread id.
static pthread_t DoPush(PushWindow *, const char *)
This spawns thread to perform push over given repo.
The TrackGit Window class.
BTextView * fTextView
The text view to show progress text.
Header file of Push window.
virtual void MessageReceived(BMessage *)
The handler to receive messages.