rtop
Public Member Functions | Protected Attributes | Friends | List of all members
rtop::SimplePanelData Class Reference

Base class in heirarchy of UI objects responsible to storing the content associated with a panel and providing an API to manipulate it. More...

#include <panel2.h>

Inheritance diagram for rtop::SimplePanelData:
rtop::BrowsePanelData< T > rtop::ProcViewPanel rtop::EditPanelData< T >

Public Member Functions

 SimplePanelData (int)
 SimplePanelData constructor. More...
 
int uUid () const
 returns unique identifier of this object More...
 
void setWin (WINDOW *win_in)
 sets reference to ncurses WINDOW associated with panel More...
 
void setPanel (PANEL *panel_in)
 sets reference to ncurses PANEL associated with this panel data structure More...
 
void setDimensions (int h, int w)
 set internal width, height variables corresponding to panel window dimensions More...
 
void setLeftNbr (SimplePanelData *)
 set pointer to left neighbour panel More...
 
void setRightNbr (SimplePanelData *)
 set pointer to right neighbour panel More...
 
SimplePanelDataleftNbr ()
 returns pointer to left neighbour panel More...
 
SimplePanelDatarightNbr ()
 returns pointer to right neighbour panel More...
 
void moveTo (int, int)
 move panel window to desired x,y pos on stdscr. More...
 
virtual void show ()
 refreshes contents of associated BrowsePanel data structure and makes panel visible More...
 
virtual void show2 ()
 makes panel visible More...
 
virtual void hide ()
 hides panel More...
 
WINDOW * window () const
 returns pointer to ncurses WINDOW associated with panel More...
 
virtual void selectionOn ()
 mock More...
 
virtual void selectionOff ()
 mock More...
 
virtual void toggleEditMode ()
 mock More...
 
virtual void editModeOn ()
 mock More...
 
virtual void editModeOff ()
 mock More...
 
virtual void setEditingColor (int)
 mock More...
 
virtual void setSelectionColor (int)
 mock More...
 
virtual void setBasicColor (int)
 mock More...
 
virtual void setHeaderColor (int)
 mock More...
 
virtual void setHeader (std::string)
 mock More...
 
virtual void Down ()
 mock More...
 
virtual void Up ()
 mock More...
 
virtual void Top ()
 mock More...
 
virtual void refreshItemList ()
 mock More...
 
virtual void refreshItemList2 (std::vector< InfoProc< std::string >> &, std::string, const std::vector< int > &, int &)
 mock More...
 
virtual void resolveKey (int)
 mock More...
 
virtual void moveIntoLeftNbr ()
 mock More...
 
virtual void moveIntoRightNbr ()
 mock More...
 
virtual void insertIntoLeftNbr ()
 mock More...
 
virtual void insertIntoRightNbr ()
 mock More...
 
virtual void addIntoLeftNbr ()
 mock More...
 
virtual void addIntoRightNbr ()
 mock More...
 
virtual void remove ()
 mock More...
 
virtual std::vector< std::string > displayedKeys () const
 mock More...
 
virtual void deleteColumn ()
 mock More...
 
virtual void insertColumn ()
 mock More...
 
virtual void refresh ()
 mock More...
 
virtual void moveLeft ()
 mock More...
 
virtual void moveRight ()
 mock More...
 
virtual void syncColors ()
 mock More...
 

Protected Attributes

int uuid
 
int width
 width and height in panel window in ncurses units. More...
 
int height
 
PANEL * panel
 panel to which the data structure is associated More...
 
WINDOW * win
 window attached to the panel More...
 
SimplePanelDatar_next
 pointer to panel data structures correponding to left/right neighbour of this panel More...
 
SimplePanelDatal_next
 
StateMachine smKeys
 Keys statemachine. More...
 

Friends

class XMLTree
 

Detailed Description

Base class in heirarchy of UI objects responsible to storing the content associated with a panel and providing an API to manipulate it.

encapsulates the idea of a panel which is a square region on the screen. Its API allows moving this region, setting its neighbours and specifying its size and changing its visibility

Definition at line 34 of file panel2.h.

Constructor & Destructor Documentation

◆ SimplePanelData()

rtop::SimplePanelData::SimplePanelData ( int  id)

SimplePanelData constructor.

Definition at line 148 of file panel2.h.

Member Function Documentation

◆ addIntoLeftNbr()

virtual void rtop::SimplePanelData::addIntoLeftNbr ( )
inlinevirtual

mock

Reimplemented in rtop::BrowsePanelData< T >.

Definition at line 123 of file panel2.h.

◆ addIntoRightNbr()

virtual void rtop::SimplePanelData::addIntoRightNbr ( )
inlinevirtual

mock

Reimplemented in rtop::BrowsePanelData< T >.

Definition at line 125 of file panel2.h.

◆ deleteColumn()

virtual void rtop::SimplePanelData::deleteColumn ( )
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel.

Definition at line 134 of file panel2.h.

◆ displayedKeys()

virtual std::vector<std::string> rtop::SimplePanelData::displayedKeys ( ) const
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel.

Definition at line 132 of file panel2.h.

◆ Down()

virtual void rtop::SimplePanelData::Down ( )
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel, rtop::EditPanelData< T >, and rtop::BrowsePanelData< T >.

Definition at line 103 of file panel2.h.

◆ editModeOff()

virtual void rtop::SimplePanelData::editModeOff ( )
inlinevirtual

mock

Reimplemented in rtop::EditPanelData< T >.

Definition at line 91 of file panel2.h.

◆ editModeOn()

virtual void rtop::SimplePanelData::editModeOn ( )
inlinevirtual

mock

Reimplemented in rtop::EditPanelData< T >.

Definition at line 89 of file panel2.h.

◆ hide()

void rtop::SimplePanelData::hide ( )
virtual

hides panel

Reimplemented in rtop::ProcViewPanel.

Definition at line 230 of file panel2.h.

◆ insertColumn()

virtual void rtop::SimplePanelData::insertColumn ( )
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel.

Definition at line 136 of file panel2.h.

◆ insertIntoLeftNbr()

virtual void rtop::SimplePanelData::insertIntoLeftNbr ( )
inlinevirtual

mock

Reimplemented in rtop::EditPanelData< T >, and rtop::BrowsePanelData< T >.

Definition at line 119 of file panel2.h.

◆ insertIntoRightNbr()

virtual void rtop::SimplePanelData::insertIntoRightNbr ( )
inlinevirtual

mock

Reimplemented in rtop::EditPanelData< T >, and rtop::BrowsePanelData< T >.

Definition at line 121 of file panel2.h.

◆ leftNbr()

SimplePanelData * rtop::SimplePanelData::leftNbr ( )

returns pointer to left neighbour panel

Definition at line 177 of file panel2.h.

◆ moveIntoLeftNbr()

virtual void rtop::SimplePanelData::moveIntoLeftNbr ( )
inlinevirtual

mock

Reimplemented in rtop::BrowsePanelData< T >.

Definition at line 115 of file panel2.h.

◆ moveIntoRightNbr()

virtual void rtop::SimplePanelData::moveIntoRightNbr ( )
inlinevirtual

mock

Reimplemented in rtop::BrowsePanelData< T >.

Definition at line 117 of file panel2.h.

◆ moveLeft()

virtual void rtop::SimplePanelData::moveLeft ( )
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel.

Definition at line 140 of file panel2.h.

◆ moveRight()

virtual void rtop::SimplePanelData::moveRight ( )
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel.

Definition at line 142 of file panel2.h.

◆ moveTo()

void rtop::SimplePanelData::moveTo ( int  y,
int  x 
)

move panel window to desired x,y pos on stdscr.

Todo:
: may cause bugs. investigate

Definition at line 195 of file panel2.h.

◆ refresh()

virtual void rtop::SimplePanelData::refresh ( )
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel.

Definition at line 138 of file panel2.h.

◆ refreshItemList()

virtual void rtop::SimplePanelData::refreshItemList ( )
inlinevirtual

mock

Reimplemented in rtop::BrowsePanelData< T >.

Definition at line 109 of file panel2.h.

◆ refreshItemList2()

virtual void rtop::SimplePanelData::refreshItemList2 ( std::vector< InfoProc< std::string >> &  ,
std::string  ,
const std::vector< int > &  ,
int &   
)
inlinevirtual

mock

Reimplemented in rtop::BrowsePanelData< T >.

Definition at line 111 of file panel2.h.

◆ remove()

virtual void rtop::SimplePanelData::remove ( )
inlinevirtual

mock

Reimplemented in rtop::EditPanelData< T >.

Definition at line 127 of file panel2.h.

◆ resolveKey()

virtual void rtop::SimplePanelData::resolveKey ( int  )
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel, rtop::EditPanelData< T >, and rtop::BrowsePanelData< T >.

Definition at line 113 of file panel2.h.

◆ rightNbr()

SimplePanelData * rtop::SimplePanelData::rightNbr ( )

returns pointer to right neighbour panel

Definition at line 186 of file panel2.h.

◆ selectionOff()

virtual void rtop::SimplePanelData::selectionOff ( )
inlinevirtual

mock

Reimplemented in rtop::EditPanelData< T >, and rtop::BrowsePanelData< T >.

Definition at line 85 of file panel2.h.

◆ selectionOn()

virtual void rtop::SimplePanelData::selectionOn ( )
inlinevirtual

mock

Reimplemented in rtop::EditPanelData< T >, and rtop::BrowsePanelData< T >.

Definition at line 83 of file panel2.h.

◆ setBasicColor()

virtual void rtop::SimplePanelData::setBasicColor ( int  )
inlinevirtual

mock

Reimplemented in rtop::BrowsePanelData< T >.

Definition at line 97 of file panel2.h.

◆ setDimensions()

void rtop::SimplePanelData::setDimensions ( int  h,
int  w 
)

set internal width, height variables corresponding to panel window dimensions

Definition at line 153 of file panel2.h.

◆ setEditingColor()

virtual void rtop::SimplePanelData::setEditingColor ( int  )
inlinevirtual

mock

Reimplemented in rtop::EditPanelData< T >.

Definition at line 93 of file panel2.h.

◆ setHeader()

virtual void rtop::SimplePanelData::setHeader ( std::string  )
inlinevirtual

mock

Reimplemented in rtop::BrowsePanelData< T >.

Definition at line 101 of file panel2.h.

◆ setHeaderColor()

virtual void rtop::SimplePanelData::setHeaderColor ( int  )
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel, rtop::EditPanelData< T >, and rtop::BrowsePanelData< T >.

Definition at line 99 of file panel2.h.

◆ setLeftNbr()

void rtop::SimplePanelData::setLeftNbr ( SimplePanelData panel)

set pointer to left neighbour panel

Definition at line 159 of file panel2.h.

◆ setPanel()

void rtop::SimplePanelData::setPanel ( PANEL *  panel_in)
inline

sets reference to ncurses PANEL associated with this panel data structure

Definition at line 58 of file panel2.h.

◆ setRightNbr()

void rtop::SimplePanelData::setRightNbr ( SimplePanelData panel)

set pointer to right neighbour panel

Definition at line 168 of file panel2.h.

◆ setSelectionColor()

virtual void rtop::SimplePanelData::setSelectionColor ( int  )
inlinevirtual

mock

Reimplemented in rtop::BrowsePanelData< T >.

Definition at line 95 of file panel2.h.

◆ setWin()

void rtop::SimplePanelData::setWin ( WINDOW *  win_in)
inline

sets reference to ncurses WINDOW associated with panel

Definition at line 56 of file panel2.h.

◆ show()

void rtop::SimplePanelData::show ( )
virtual

refreshes contents of associated BrowsePanel data structure and makes panel visible

Bug:
: when new prop is added to active_proc_panel and deletion is attemped, seg fault occurs at show_panel.

Reimplemented in rtop::ProcViewPanel.

Definition at line 206 of file panel2.h.

◆ show2()

void rtop::SimplePanelData::show2 ( )
virtual

makes panel visible

Definition at line 219 of file panel2.h.

◆ syncColors()

virtual void rtop::SimplePanelData::syncColors ( )
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel.

Definition at line 144 of file panel2.h.

◆ toggleEditMode()

virtual void rtop::SimplePanelData::toggleEditMode ( )
inlinevirtual

mock

Reimplemented in rtop::EditPanelData< T >.

Definition at line 87 of file panel2.h.

◆ Top()

virtual void rtop::SimplePanelData::Top ( )
inlinevirtual

mock

Reimplemented in rtop::BrowsePanelData< T >.

Definition at line 107 of file panel2.h.

◆ Up()

virtual void rtop::SimplePanelData::Up ( )
inlinevirtual

mock

Reimplemented in rtop::ProcViewPanel, rtop::EditPanelData< T >, and rtop::BrowsePanelData< T >.

Definition at line 105 of file panel2.h.

◆ uUid()

int rtop::SimplePanelData::uUid ( ) const
inline

returns unique identifier of this object

Definition at line 54 of file panel2.h.

◆ window()

WINDOW* rtop::SimplePanelData::window ( ) const
inline

returns pointer to ncurses WINDOW associated with panel

Definition at line 78 of file panel2.h.

Friends And Related Function Documentation

◆ XMLTree

friend class XMLTree
friend

Definition at line 145 of file panel2.h.

Member Data Documentation

◆ height

int rtop::SimplePanelData::height
protected

Definition at line 39 of file panel2.h.

◆ l_next

SimplePanelData * rtop::SimplePanelData::l_next
protected

Definition at line 45 of file panel2.h.

◆ panel

PANEL* rtop::SimplePanelData::panel
protected

panel to which the data structure is associated

Definition at line 41 of file panel2.h.

◆ r_next

SimplePanelData* rtop::SimplePanelData::r_next
protected

pointer to panel data structures correponding to left/right neighbour of this panel

Definition at line 45 of file panel2.h.

◆ smKeys

StateMachine rtop::SimplePanelData::smKeys
protected

Keys statemachine.

Definition at line 47 of file panel2.h.

◆ uuid

int rtop::SimplePanelData::uuid
protected

Definition at line 37 of file panel2.h.

◆ width

int rtop::SimplePanelData::width
protected

width and height in panel window in ncurses units.

Definition at line 39 of file panel2.h.

◆ win

WINDOW* rtop::SimplePanelData::win
protected

window attached to the panel

Definition at line 43 of file panel2.h.


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