TrackGit
Public Member Functions | Private Attributes | List of all members
Log Class Reference

Log command Class. More...

#include <Log.h>

Inheritance diagram for Log:
GitCommand

Public Member Functions

 Log (BString)
 Log class Constructor. More...
 
virtual void Execute ()
 Log command execution. More...
 
BString GetLogText ()
 Constructs the entire Log Text for given repo. More...
 
virtual TrackGitWindowGetWindow ()
 This returns pointer to the log window. More...
 

Private Attributes

BString fRepo
 The repo/directory where command is called. More...
 
LogWindowfLogWindow
 The Log Window. More...
 

Detailed Description

Log command Class.

Definition at line 50 of file Log.h.

Constructor & Destructor Documentation

◆ Log()

Log::Log ( BString  repo)

Log class Constructor.

Parameters
repoThe repo where the command is called.
dirPathThe current directory where Log is selected.

Definition at line 22 of file Log.cpp.

Member Function Documentation

◆ Execute()

void Log::Execute ( )
virtual

Log command execution.

Opens an alert with log text.

Implements GitCommand.

Definition at line 49 of file Log.cpp.

◆ GetLogText()

BString Log::GetLogText ( )

Constructs the entire Log Text for given repo.

Returns
The entire log text to display.

Use the revwalker to traverse the history.

Definition at line 243 of file Log.cpp.

◆ GetWindow()

TrackGitWindow * Log::GetWindow ( )
virtual

This returns pointer to the log window.

Returns
The pointer to the Log Window.

Reimplemented from GitCommand.

Definition at line 36 of file Log.cpp.

Member Data Documentation

◆ fLogWindow

LogWindow* Log::fLogWindow
private

The Log Window.

Definition at line 58 of file Log.h.

◆ fRepo

BString Log::fRepo
private

The repo/directory where command is called.

Definition at line 54 of file Log.h.


The documentation for this class was generated from the following files: