TrackGit
CloneWindow.h
Go to the documentation of this file.
1 
8 #ifndef _CLONE_WINDOW_H_
9 #define _CLONE_WINDOW_H_
10 
11 #include "../ThirdParty/PathBox.h"
12 #include "TrackGitWindow.h"
13 #include "../GitCommand/Clone.h"
14 
15 #include <git2.h>
16 #include <pthread.h>
17 
18 #include <InterfaceKit.h>
19 
20 enum {
23 };
24 
26 
30 class CloneWindow : public TrackGitWindow {
38  BTextControl* fURL;
42  PathBox* fPathBox;
51  pthread_t fThreadId;
52  public:
53  CloneWindow(BString, BString, Clone*);
54  void SetProgressText(BString);
55  void SetProgress(float);
56  virtual void MessageReceived(BMessage*);
57 };
58 
59 
63 class CloneProgressWindow : public BWindow
64 {
73  BTextView* fTextView;
77  BStatusBar* fProgressBar;
78  public:
80  void SetText(const char*);
81  void SetProgress(float);
82  virtual void MessageReceived(BMessage*);
83 };
84 
85 #endif
pthread_t fThreadId
The thread Id of clone thread.
Definition: CloneWindow.h:51
virtual void MessageReceived(BMessage *)
The handler to receive messages.
The Clone Progress Window class.
Definition: CloneWindow.h:63
BStatusBar * fProgressBar
The progress bar.
Definition: CloneWindow.h:77
virtual void MessageReceived(BMessage *)
The handler to receive messages.
Definition: CloneWindow.cpp:82
BTextView * fTextView
The text view to show progress text.
Definition: CloneWindow.h:73
CloneWindow * fCloneWindow
The Clone Window pointer.
Definition: CloneWindow.h:69
void SetProgress(float)
Sets the progress value of the progress bar in progress window.
Definition: CloneWindow.cpp:71
BTextControl * fURL
The text control for url.
Definition: CloneWindow.h:38
CloneProgressWindow(CloneWindow *)
The CloneProgressWindow constructor.
void SetProgressText(BString)
Prints progress text to textview of window.
Definition: CloneWindow.cpp:60
void SetText(const char *)
This function sets texts of the textview within window.
CloneWindow(BString, BString, Clone *)
Constructor for CloneWindow.
Definition: CloneWindow.cpp:25
CloneProgressWindow * fProgressWindow
The progress window.
Definition: CloneWindow.h:34
PathBox * fPathBox
The text control for path.
Definition: CloneWindow.h:42
Clone * fClone
The clone command pointer.
Definition: CloneWindow.h:47
The Clone Window class.
Definition: CloneWindow.h:30
Clone command Class.
Definition: Clone.h:46
The TrackGit Window class.
Header file of TrackGit window.
void SetProgress(float)
This function sets the value of progress bar.