27 #define YUILogComponent "ncurses"
28 #include <yui/YUILog.h>
29 #include "NCTreePad.h"
33 NCTreePad::NCTreePad(
int lines,
int cols,
const NCWidget & p )
39 NCTreePad::~NCTreePad()
46 NCPad::Destwin( dwin );
55 void NCTreePad::ShowItem(
const NCTableLine * item )
76 if ( !NCPad::Destwin() )
NCursesWindow * destwin
Where to draw us (may be nullptr, not owned)
virtual bool handleInput(wint_t key)
Handle a keyboard input event.
virtual int DoRedraw()
Redraw the pad.
virtual void prepareRedraw()
Prepare a redraw: Update the format if needed, set the background, clear the old content.
virtual void drawHeader()
Redraw the table header.
bool _dirtyFormat
does table format (size) need recalculating?
unsigned visibleLines() const
Return the number of lines that are currently visible.
std::vector< NCTableLine * > _visibleItems
not owned
virtual void drawContentLines()
Redraw the (visible) content lines one by one.
Screen position pair in the order line, column: (L, C)
virtual void Destwin(NCursesWindow *dwin)
virtual bool handleInput(wint_t key)
Handle a keyboard input event.
One line in a NCTable with multiple cells and an optional tree hierarchy.
An NCPad for an NCTable or an NCTree.
wrect srect
Source rectangle: the visible part of this pad.