TrackGit
TrackGitWindow.h
Go to the documentation of this file.
1 
8 #ifndef _TRACKGIT_WINDOW_H_
9 #define _TRACKGIT_WINDOW_H_
10 
11 #include "../Utils.h"
12 
13 #include <AppKit.h>
14 #include <InterfaceKit.h>
15 #include <SupportKit.h>
16 
17 
22 class TrackGitWindow : public BWindow {
23 protected:
27  BString fRepo;
28 public:
36  TrackGitWindow(BString repo, BRect frame, const char* title, window_type type,
37  int flags)
38  :
39  BWindow(frame, title, type, flags)
40  {
41  fRepo = repo;
42  }
48  virtual void Quit()
49  {
50  BMessenger messenger(APP_SIGN);
51  BMessage msg(kQuitWindow);
52  msg.AddString("repo", fRepo);
53  messenger.SendMessage(&msg);
54  BWindow::Quit();
55  }
56 };
57 
58 #endif
#define APP_SIGN
The Application signature.
Definition: Utils.h:45
virtual void Quit()
The function to Quit the window.
TrackGitWindow(BString repo, BRect frame, const char *title, window_type type, int flags)
The TrackGitWindow constructor.
The TrackGit Window class.
BString fRepo
The repo/directory where the command is called.