UIListTreeType Class Reference

#include <uilistbtntype.h>

Inheritance diagram for UIListTreeType:

UIType

List of all members.


Detailed Description

Definition at line 69 of file uilistbtntype.h.


Public Types

enum  MovementUnit { MoveItem, MovePage, MoveMax }

Public Slots

bool takeFocus ()
void looseFocus ()

Signals

void selected (UIListGenericTree *item)
void itemSelected (UIListTreeType *parent, UIListGenericTree *item)
void itemEntered (UIListTreeType *parent, UIListGenericTree *item)

Public Member Functions

 UIListTreeType (const QString &name, const QRect &area, const QRect &levelsize, int levelspacing, int order)
 ~UIListTreeType ()
void SetFontActive (fontProp *font)
void SetFontInactive (fontProp *font)
void SetSpacing (int spacing)
void SetMargin (int margin)
void SetItemRegColor (const QColor &beg, const QColor &end, uint alpha)
void SetItemSelColor (const QColor &beg, const QColor &end, uint alpha)
void SetTree (UIListGenericTree *toplevel)
UIListGenericTreeGetCurrentPosition (void)
void Draw (QPainter *p, int order, int context)
void DrawRegion (QPainter *p, QRect &area, int order, int context)
void Redraw (void)
void RedrawCurrent (void)
void RefreshCurrentLevel (void)
void MoveDown (MovementUnit unit=MoveItem)
void MoveDown (int count)
void MoveUp (MovementUnit unit=MoveItem)
void MoveUp (int count)
void MoveLeft (bool do_refresh=true)
bool MoveRight (bool do_refresh=true)
void calculateScreenArea ()
void GoHome ()
void select ()
QStringList getRouteToCurrent ()
bool tryToSetCurrent (QStringList route)
int getDepth ()
void setActive (bool x)
bool isActive ()
void enter ()
void moveAwayFrom (UIListGenericTree *node)
int getNumbItemsVisible ()
bool incSearchStart ()
bool incSearchNext ()

Private Member Functions

void FillLevelFromTree (UIListGenericTree *item, UIListBtnType *list)
void ClearLevel (UIListBtnType *list)
UIListBtnTypeGetLevel (int levelnum)
void SetCurrentPosition (void)
void CreateLevel (int level)

Private Attributes

int levels
int curlevel
UIListGenericTreetreetop
UIListGenericTreecurrentpos
QPtrList< UIListBtnTypelistLevels
UIListBtnTypecurrentlevel
fontPropm_active
fontPropm_inactive
QColor m_itemRegBeg
QColor m_itemRegEnd
QColor m_itemSelBeg
QColor m_itemSelEnd
uint m_itemRegAlpha
uint m_itemSelAlpha
int m_spacing
int m_margin
QRect m_totalarea
QRect m_levelsize
int m_levelspacing
bool list_tree_active

Member Enumeration Documentation

Enumerator:
MoveItem 
MovePage 
MoveMax 

Definition at line 96 of file uilistbtntype.h.


Constructor & Destructor Documentation

UIListTreeType::UIListTreeType ( const QString &  name,
const QRect &  area,
const QRect &  levelsize,
int  levelspacing,
int  order 
)

Definition at line 126 of file uilistbtntype.cpp.

UIListTreeType::~UIListTreeType (  ) 

Definition at line 165 of file uilistbtntype.cpp.


Member Function Documentation

void UIListTreeType::SetFontActive ( fontProp font  ) 

Definition at line 185 of file uilistbtntype.cpp.

Referenced by XMLParse::parseListTreeArea().

void UIListTreeType::SetFontInactive ( fontProp font  ) 

Definition at line 190 of file uilistbtntype.cpp.

Referenced by XMLParse::parseListTreeArea().

void UIListTreeType::SetSpacing ( int  spacing  ) 

Definition at line 195 of file uilistbtntype.cpp.

Referenced by XMLParse::parseListTreeArea().

void UIListTreeType::SetMargin ( int  margin  ) 

Definition at line 200 of file uilistbtntype.cpp.

Referenced by XMLParse::parseListTreeArea().

void UIListTreeType::SetItemRegColor ( const QColor &  beg,
const QColor &  end,
uint  alpha 
)

Definition at line 169 of file uilistbtntype.cpp.

Referenced by XMLParse::parseListTreeArea(), and UIListTreeType().

void UIListTreeType::SetItemSelColor ( const QColor &  beg,
const QColor &  end,
uint  alpha 
)

Definition at line 177 of file uilistbtntype.cpp.

Referenced by XMLParse::parseListTreeArea(), and UIListTreeType().

void UIListTreeType::SetTree ( UIListGenericTree toplevel  ) 

Definition at line 205 of file uilistbtntype.cpp.

Referenced by DatabaseBox::DatabaseBox().

UIListGenericTree * UIListTreeType::GetCurrentPosition ( void   ) 

void UIListTreeType::Draw ( QPainter *  p,
int  order,
int  context 
) [virtual]

Reimplemented from UIType.

Definition at line 292 of file uilistbtntype.cpp.

void UIListTreeType::DrawRegion ( QPainter *  p,
QRect &  area,
int  order,
int  context 
) [virtual]

Reimplemented from UIType.

Definition at line 342 of file uilistbtntype.cpp.

void UIListTreeType::Redraw ( void   ) 

void UIListTreeType::RedrawCurrent ( void   ) 

void UIListTreeType::RefreshCurrentLevel ( void   ) 

Definition at line 399 of file uilistbtntype.cpp.

Referenced by DatabaseBox::copyToActive().

void UIListTreeType::MoveDown ( MovementUnit  unit = MoveItem  ) 

void UIListTreeType::MoveDown ( int  count  ) 

Definition at line 511 of file uilistbtntype.cpp.

void UIListTreeType::MoveUp ( MovementUnit  unit = MoveItem  ) 

void UIListTreeType::MoveUp ( int  count  ) 

Definition at line 533 of file uilistbtntype.cpp.

void UIListTreeType::MoveLeft ( bool  do_refresh = true  ) 

bool UIListTreeType::MoveRight ( bool  do_refresh = true  ) 

Definition at line 568 of file uilistbtntype.cpp.

Referenced by DatabaseBox::keyPressEvent(), and tryToSetCurrent().

void UIListTreeType::calculateScreenArea ( void   )  [virtual]

Reimplemented from UIType.

Definition at line 601 of file uilistbtntype.cpp.

Referenced by XMLParse::parseListTreeArea().

void UIListTreeType::GoHome (  ) 

Definition at line 610 of file uilistbtntype.cpp.

void UIListTreeType::select (  ) 

Definition at line 621 of file uilistbtntype.cpp.

QStringList UIListTreeType::getRouteToCurrent (  ) 

Definition at line 630 of file uilistbtntype.cpp.

Referenced by DatabaseBox::entered().

bool UIListTreeType::tryToSetCurrent ( QStringList  route  ) 

Definition at line 650 of file uilistbtntype.cpp.

int UIListTreeType::getDepth (  ) 

Definition at line 777 of file uilistbtntype.cpp.

Referenced by UIListBtnType::Draw().

void UIListTreeType::setActive ( bool  x  ) 

Definition at line 782 of file uilistbtntype.cpp.

Referenced by looseFocus(), and takeFocus().

bool UIListTreeType::isActive (  )  [inline]

Definition at line 110 of file uilistbtntype.h.

void UIListTreeType::enter (  ) 

Definition at line 788 of file uilistbtntype.cpp.

void UIListTreeType::moveAwayFrom ( UIListGenericTree node  ) 

Definition at line 796 of file uilistbtntype.cpp.

int UIListTreeType::getNumbItemsVisible (  ) 

Definition at line 835 of file uilistbtntype.cpp.

bool UIListTreeType::incSearchStart ( void   ) 

Definition at line 753 of file uilistbtntype.cpp.

Referenced by DatabaseBox::keyPressEvent().

bool UIListTreeType::incSearchNext ( void   ) 

Definition at line 765 of file uilistbtntype.cpp.

Referenced by DatabaseBox::keyPressEvent().

void UIListTreeType::selected ( UIListGenericTree item  )  [signal]

Referenced by select().

void UIListTreeType::itemSelected ( UIListTreeType parent,
UIListGenericTree item 
) [signal]

Referenced by select().

void UIListTreeType::itemEntered ( UIListTreeType parent,
UIListGenericTree item 
) [signal]

Referenced by enter(), SetCurrentPosition(), and SetTree().

bool UIListTreeType::takeFocus (  )  [virtual, slot]

Reimplemented from UIType.

Definition at line 844 of file uilistbtntype.cpp.

void UIListTreeType::looseFocus (  )  [virtual, slot]

Reimplemented from UIType.

Definition at line 850 of file uilistbtntype.cpp.

void UIListTreeType::FillLevelFromTree ( UIListGenericTree item,
UIListBtnType list 
) [private]

Definition at line 415 of file uilistbtntype.cpp.

Referenced by MoveRight(), and SetTree().

void UIListTreeType::ClearLevel ( UIListBtnType list  )  [private]

Definition at line 386 of file uilistbtntype.cpp.

Referenced by FillLevelFromTree(), and MoveLeft().

UIListBtnType * UIListTreeType::GetLevel ( int  levelnum  )  [private]

Definition at line 450 of file uilistbtntype.cpp.

Referenced by MoveLeft(), MoveRight(), and SetTree().

void UIListTreeType::SetCurrentPosition ( void   )  [private]

Definition at line 461 of file uilistbtntype.cpp.

Referenced by incSearchNext(), incSearchStart(), MoveDown(), MoveLeft(), MoveRight(), and MoveUp().

void UIListTreeType::CreateLevel ( int  level  )  [private]

Definition at line 255 of file uilistbtntype.cpp.

Referenced by MoveRight(), and SetTree().


Member Data Documentation

int UIListTreeType::levels [private]

Definition at line 134 of file uilistbtntype.h.

Referenced by CreateLevel(), SetTree(), and UIListTreeType().

int UIListTreeType::curlevel [private]

Definition at line 137 of file uilistbtntype.h.

Referenced by SetTree(), and UIListTreeType().

Definition at line 140 of file uilistbtntype.h.

Referenced by CreateLevel(), Draw(), DrawRegion(), GetLevel(), SetTree(), and UIListTreeType().

Definition at line 144 of file uilistbtntype.h.

Referenced by CreateLevel(), SetFontActive(), and UIListTreeType().

Definition at line 145 of file uilistbtntype.h.

Referenced by CreateLevel(), SetFontInactive(), and UIListTreeType().

QColor UIListTreeType::m_itemRegBeg [private]

Definition at line 147 of file uilistbtntype.h.

Referenced by CreateLevel(), and SetItemRegColor().

QColor UIListTreeType::m_itemRegEnd [private]

Definition at line 148 of file uilistbtntype.h.

Referenced by CreateLevel(), and SetItemRegColor().

QColor UIListTreeType::m_itemSelBeg [private]

Definition at line 149 of file uilistbtntype.h.

Referenced by CreateLevel(), and SetItemSelColor().

QColor UIListTreeType::m_itemSelEnd [private]

Definition at line 150 of file uilistbtntype.h.

Referenced by CreateLevel(), and SetItemSelColor().

Definition at line 151 of file uilistbtntype.h.

Referenced by CreateLevel(), and SetItemRegColor().

Definition at line 152 of file uilistbtntype.h.

Referenced by CreateLevel(), and SetItemSelColor().

Definition at line 154 of file uilistbtntype.h.

Referenced by CreateLevel(), SetSpacing(), and UIListTreeType().

int UIListTreeType::m_margin [private]

Definition at line 155 of file uilistbtntype.h.

Referenced by CreateLevel(), SetMargin(), and UIListTreeType().

QRect UIListTreeType::m_totalarea [private]

Definition at line 157 of file uilistbtntype.h.

Referenced by calculateScreenArea(), CreateLevel(), Draw(), DrawRegion(), and UIListTreeType().

QRect UIListTreeType::m_levelsize [private]

Definition at line 158 of file uilistbtntype.h.

Referenced by CreateLevel(), and UIListTreeType().

Definition at line 159 of file uilistbtntype.h.

Referenced by CreateLevel(), and UIListTreeType().

Definition at line 161 of file uilistbtntype.h.

Referenced by Draw(), DrawRegion(), setActive(), and UIListTreeType().


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

Generated on Sat Dec 18 05:16:12 2010 for MythTV by  doxygen 1.5.5