midday-commander
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Interface Class Reference

Represents the main interface of the Application. More...

#include <Interface.h>

Collaboration diagram for Interface:
[legend]

Public Member Functions

const std::shared_ptr< Action > & promptAction () const
 
InterfaceaddHotkey (int key, const Action &action)
 
InterfacesetTheme (Theme)
 
void initialize () const
 Initializes ncurses and prepares.
 
void render (FileView &, State &)
 Shows the file view.
 
void stop ()
 Stops ncurses
 

Private Member Functions

void generateColorPairs () const
 

Private Attributes

std::map< int, std::shared_ptr< Action > > actions
 
Theme theme
 

Detailed Description

Represents the main interface of the Application.

Member Function Documentation

◆ addHotkey()

Interface & Interface::addHotkey ( int  key,
const Action action 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ generateColorPairs()

void Interface::generateColorPairs ( ) const
private
Here is the caller graph for this function:

◆ initialize()

void Interface::initialize ( ) const

Initializes ncurses and prepares.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ promptAction()

const std::shared_ptr< Action > & Interface::promptAction ( ) const
Here is the caller graph for this function:

◆ render()

void Interface::render ( FileView fileView,
State state 
)

Shows the file view.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTheme()

Interface & Interface::setTheme ( Theme  newTheme)

◆ stop()

void Interface::stop ( )

Stops ncurses

Here is the caller graph for this function:

Member Data Documentation

◆ actions

std::map<int, std::shared_ptr<Action> > Interface::actions
private

◆ theme

Theme Interface::theme
private

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