13 #include <LayoutBuilder.h> 14 #include <SupportKit.h> 16 #define B_TRANSLATION_CONTEXT "TrackGit" 28 B_DOCUMENT_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE)
33 fURL =
new BTextControl(B_TRANSLATE(
"URL:"),
"", NULL);
34 fPathBox =
new PathBox(
"pathbox", dirPath.String(),
"Path:");
35 BButton*
fClone =
new BButton(
"ok", B_TRANSLATE(
"Clone"),
37 BButton* fCancel =
new BButton(
"ok", B_TRANSLATE(
"Cancel"),
40 BLayoutBuilder::Group<>(
this, B_VERTICAL, 0)
44 .AddGroup(B_HORIZONTAL, 0)
97 BWindow::MessageReceived(msg);
108 BWindow(BRect(0, 0, 300, 150),
"", B_MODAL_WINDOW,
109 B_NOT_CLOSABLE | B_NOT_RESIZABLE)
112 fTextView =
new BTextView(BRect(0, 0, 280, 80),
"_clone_",
113 BRect(0, 0, 280, 80), B_FOLLOW_LEFT_RIGHT);
114 fTextView->SetViewUIColor(B_PANEL_BACKGROUND_COLOR);
118 fTextView->SetText(
"Cloning" B_UTF8_ELLIPSIS
"\nRepository");
123 BButton* fCancel =
new BButton(
"ok",
"Cancel",
126 BLayoutBuilder::Group<>(
this, B_VERTICAL, 0)
130 .AddGroup(B_HORIZONTAL, 0)
178 BWindow::MessageReceived(msg);
pthread_t fThreadId
The thread Id of clone thread.
Header file of Clone window.
virtual void MessageReceived(BMessage *)
The handler to receive messages.
The Clone Progress Window class.
BStatusBar * fProgressBar
The progress bar.
virtual void Quit()
The function to Quit the window.
virtual void MessageReceived(BMessage *)
The handler to receive messages.
BTextView * fTextView
The text view to show progress text.
CloneWindow * fCloneWindow
The Clone Window pointer.
void SetProgress(float)
Sets the progress value of the progress bar in progress window.
BTextControl * fURL
The text control for url.
CloneProgressWindow(CloneWindow *)
The CloneProgressWindow constructor.
void SetProgressText(BString)
Prints progress text to textview of window.
void SetText(const char *)
This function sets texts of the textview within window.
CloneWindow(BString, BString, Clone *)
Constructor for CloneWindow.
CloneProgressWindow * fProgressWindow
The progress window.
PathBox * fPathBox
The text control for path.
Clone * fClone
The clone command pointer.
pthread_t DoClone(CloneWindow *, const char *, const char *)
Spawns a thread to clone.
The TrackGit Window class.
void SetProgress(float)
This function sets the value of progress bar.