13 #include <LayoutBuilder.h> 15 #define B_TRANSLATION_CONTEXT "TrackGit" 56 B_DOCUMENT_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE)
62 BScrollView* fScrollView =
new BScrollView(
"statusScrollView",
66 BButton* fOK =
new BButton(
"ok", B_TRANSLATE(
"OK"),
69 BLayoutBuilder::Group<>(
this, B_VERTICAL, 0)
112 if (item->
GetPath().Length() > 0) {
114 path.ReplaceFirst(
".git/",
"");
116 printf(
"Selected %s\n", path.String());
117 entry = BEntry(path.String());
119 msgr = BMessenger(
"application/x-vnd.Be-TRAK");
120 rmsg = BMessage(B_REFS_RECEIVED);
121 rmsg.AddRef(
"refs", &ref);
122 msgr.SendMessage(&rmsg);
129 BWindow::MessageReceived(msg);
Header file of Status window.
The Status List Item class.
virtual void MessageReceived(BMessage *)
Handler to received messages.
BString GetPath()
Getter for path.
BString fText
The text to be displayed.
virtual void Quit()
The function to Quit the window.
BListView * fStatusListView
The Status List View.
StatusItem(BString, BString)
StatusItem Constructor.
BString fPath
The file path of item.
void AddItem(BString, BString)
Adds item to the Status list.
StatusWindow(BString)
StatusWindow Constructor.
The TrackGit Window class.
BString fRepo
The repo/directory where the command is called.