TrackGit
Macros | Functions
TrackGit.cpp File Reference

Main file of TrackGit - A Tracker Addon for Git Version Control System. More...

#include <Alert.h>
#include <Application.h>
#include <AppKit.h>
#include <Catalog.h>
#include <InterfaceKit.h>
#include <StorageKit.h>
#include <SupportKit.h>
#include <MenuItem.h>
#include <stdio.h>
#include <strings.h>
#include <vector>
#include <add-ons/tracker/TrackerAddOn.h>
#include "Utils.h"
#include "TrackGitApp.h"
#include <git2.h>

Go to the source code of this file.

Macros

#define B_TRANSLATION_CONTEXT   "TrackGit"
 

Functions

void populate_menu (BMessage *msg, BMenu *menu, BHandler *handler)
 Populates menu for this addon. More...
 
void message_received (BMessage *msg)
 Handler for received messages. More...
 
void process_refs (entry_ref dir_ref, BMessage *msg, void *)
 process_ref definition for addon. More...
 
int main ()
 The main function of TrackGit. More...
 

Detailed Description

Main file of TrackGit - A Tracker Addon for Git Version Control System.

Author
Hrishikesh Hiraskar hrish.nosp@m.ihir.nosp@m.askar.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition in file TrackGit.cpp.

Macro Definition Documentation

◆ B_TRANSLATION_CONTEXT

#define B_TRANSLATION_CONTEXT   "TrackGit"

Definition at line 28 of file TrackGit.cpp.

Function Documentation

◆ main()

int main ( )

The main function of TrackGit.

This function launches the TrackGit App.

Definition at line 221 of file TrackGit.cpp.

◆ message_received()

void message_received ( BMessage *  msg)

Handler for received messages.

Parameters
msgThe passed BMessage.

Definition at line 199 of file TrackGit.cpp.

◆ populate_menu()

void populate_menu ( BMessage *  msg,
BMenu *  menu,
BHandler *  handler 
)

Populates menu for this addon.

Parameters
msgThe passed BMessage. Contains refs to current dir and selected files.
menuThe pointer to Tracker menu.
handlerThe BHandler of Tracker. This should be target of added items.

Definition at line 59 of file TrackGit.cpp.

◆ process_refs()

void process_refs ( entry_ref  dir_ref,
BMessage *  msg,
void *   
)

process_ref definition for addon.

Parameters
dir_refThe current directory ref.
msgBMessage containing refs to selected files.

Definition at line 42 of file TrackGit.cpp.