MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
MythThemedDialog Class Reference

#include <mythdialogs.h>

Inheritance diagram for MythThemedDialog:
Inheritance graph
[legend]
Collaboration diagram for MythThemedDialog:
Collaboration graph
[legend]

Public Slots

virtual void deleteLater (void)
virtual void updateBackground ()
virtual void initForeground ()
virtual void updateForeground ()
virtual void updateForeground (const QRect &)
 draws anything that intersects
virtual void updateForegroundRegion (const QRect &)
 only draws the region
virtual bool assignFirstFocus ()
virtual bool nextPrevWidgetFocus (bool up_or_down)
virtual void activateCurrent ()
- Public Slots inherited from MythDialog
DialogCode exec (void)
virtual void done (int)
virtual void AcceptItem (int)
virtual void accept ()
virtual void reject ()

Public Member Functions

 MythThemedDialog (MythMainWindow *parent, const QString &window_name, const QString &theme_filename=QString(), const char *name="MythThemedDialog", bool setsize=true)
 MythThemedDialog (MythMainWindow *parent, const char *name="MythThemedDialog", bool setsize=true)
virtual bool loadThemedWindow (QString window_name, QString theme_filename)
virtual void loadWindow (QDomElement &)
virtual void parseContainer (QDomElement &)
virtual void parseFont (QDomElement &)
bool buildFocusList ()
UITypegetUIObject (const QString &name)
UITypegetCurrentFocusWidget ()
void setCurrentFocusWidget (UIType *widget)
UIKeyboardTypegetUIKeyboardType (const QString &name)
LayerSetgetContainer (const QString &name)
fontPropgetFont (const QString &name)
void setContext (int a_context)
int getContext ()
- Public Member Functions inherited from MythDialog
 MythDialog (MythMainWindow *parent, const char *name="MythDialog", bool setsize=true)
DialogCode result (void) const
virtual void Show (void)
void hide (void)
void setNoErase (void)
virtual bool onMediaEvent (MythMediaDevice *mediadevice)
void setResult (DialogCode r)
virtual void deleteLater (void)

Protected Member Functions

 ~MythThemedDialog ()
void paintEvent (QPaintEvent *e)
XMLParsegetTheme ()
QDomElement & getXmlData ()
- Protected Member Functions inherited from MythDialog
 ~MythDialog ()
void TeardownAll (void)
void keyPressEvent (QKeyEvent *e)

Protected Attributes

UITypewidget_with_current_focus
QPixmap my_background
QPixmap my_foreground
- Protected Attributes inherited from MythDialog
float wmult
float hmult
int screenwidth
int screenheight
int xbase
int ybase
MythMainWindowm_parent
DialogCode rescode
bool in_loop
QFont defaultBigFont
QFont defaultMediumFont
QFont defaultSmallFont

Private Member Functions

void ReallyUpdateForeground (const QRect &)
void UpdateForegroundRect (const QRect &inv_rect)

Private Attributes

XMLParsetheme
QDomElement xmldata
int context
QList< LayerSet * > my_containers
vector< UIType * > focus_taking_widgets
QRect redrawRect

Additional Inherited Members

- Signals inherited from MythDialog
void menuButtonPressed ()
void leaveModality ()
- Static Public Member Functions inherited from MythDialog
static int CalcItemIndex (DialogCode code)
- Static Public Attributes inherited from MythDialog
static const DialogCode Rejected = kDialogCodeRejected
static const DialogCode Accepted = kDialogCodeAccepted
static const DialogCode ListStart = kDialogCodeListStart

Detailed Description

Deprecated:
Due for removal, use libmythui's MythScreenType instead

Definition at line 261 of file mythdialogs.h.

Constructor & Destructor Documentation

MythThemedDialog::MythThemedDialog ( MythMainWindow parent,
const QString &  window_name,
const QString &  theme_filename = QString(),
const char *  name = "MythThemedDialog",
bool  setsize = true 
)

Definition at line 932 of file mythdialogs.cpp.

MythThemedDialog::MythThemedDialog ( MythMainWindow parent,
const char *  name = "MythThemedDialog",
bool  setsize = true 
)

Definition at line 955 of file mythdialogs.cpp.

MythThemedDialog::~MythThemedDialog ( )
protected

Definition at line 1049 of file mythdialogs.cpp.

Member Function Documentation

bool MythThemedDialog::loadThemedWindow ( QString  window_name,
QString  theme_filename 
)
virtual

Definition at line 963 of file mythdialogs.cpp.

Referenced by MythThemedDialog(), and VirtualKeyboardQt::SwitchLayout().

void MythThemedDialog::loadWindow ( QDomElement &  element)
virtual

Definition at line 1068 of file mythdialogs.cpp.

Referenced by loadThemedWindow().

void MythThemedDialog::parseContainer ( QDomElement &  element)
virtual

Definition at line 1099 of file mythdialogs.cpp.

Referenced by loadWindow().

void MythThemedDialog::parseFont ( QDomElement &  element)
virtual

Definition at line 1122 of file mythdialogs.cpp.

bool MythThemedDialog::buildFocusList ( )

Definition at line 1017 of file mythdialogs.cpp.

Referenced by loadThemedWindow().

UIType * MythThemedDialog::getUIObject ( const QString &  name)

Definition at line 1425 of file mythdialogs.cpp.

UIType * MythThemedDialog::getCurrentFocusWidget ( )

Definition at line 1447 of file mythdialogs.cpp.

void MythThemedDialog::setCurrentFocusWidget ( UIType widget)

Definition at line 1456 of file mythdialogs.cpp.

UIKeyboardType * MythThemedDialog::getUIKeyboardType ( const QString &  name)

Definition at line 1472 of file mythdialogs.cpp.

Referenced by VirtualKeyboardQt::SwitchLayout().

LayerSet * MythThemedDialog::getContainer ( const QString &  name)

Definition at line 1477 of file mythdialogs.cpp.

Referenced by VirtualKeyboardQt::SwitchLayout().

fontProp * MythThemedDialog::getFont ( const QString &  name)

Definition at line 1489 of file mythdialogs.cpp.

void MythThemedDialog::setContext ( int  a_context)
inline

Definition at line 291 of file mythdialogs.h.

int MythThemedDialog::getContext ( )
inline

Definition at line 292 of file mythdialogs.h.

void MythThemedDialog::deleteLater ( void  )
virtualslot

Definition at line 1058 of file mythdialogs.cpp.

void MythThemedDialog::updateBackground ( )
virtualslot

Definition at line 1138 of file mythdialogs.cpp.

Referenced by loadThemedWindow().

void MythThemedDialog::initForeground ( )
virtualslot

Definition at line 1132 of file mythdialogs.cpp.

Referenced by loadThemedWindow().

void MythThemedDialog::updateForeground ( )
virtualslot

Definition at line 1177 of file mythdialogs.cpp.

Referenced by initForeground(), and loadThemedWindow().

void MythThemedDialog::updateForeground ( const QRect &  r)
virtualslot

draws anything that intersects

Definition at line 1187 of file mythdialogs.cpp.

void MythThemedDialog::updateForegroundRegion ( const QRect &  r)
virtualslot

only draws the region

Definition at line 1215 of file mythdialogs.cpp.

Referenced by loadThemedWindow().

bool MythThemedDialog::assignFirstFocus ( )
virtualslot

Definition at line 1300 of file mythdialogs.cpp.

Referenced by nextPrevWidgetFocus().

bool MythThemedDialog::nextPrevWidgetFocus ( bool  up_or_down)
virtualslot

Definition at line 1322 of file mythdialogs.cpp.

void MythThemedDialog::activateCurrent ( )
virtualslot

Definition at line 1396 of file mythdialogs.cpp.

void MythThemedDialog::paintEvent ( QPaintEvent *  e)
protected

Definition at line 1288 of file mythdialogs.cpp.

XMLParse* MythThemedDialog::getTheme ( )
inlineprotected

Definition at line 314 of file mythdialogs.h.

QDomElement& MythThemedDialog::getXmlData ( )
inlineprotected

Definition at line 315 of file mythdialogs.h.

void MythThemedDialog::ReallyUpdateForeground ( const QRect &  r)
private

Definition at line 1201 of file mythdialogs.cpp.

Referenced by paintEvent().

void MythThemedDialog::UpdateForegroundRect ( const QRect &  inv_rect)
private

Definition at line 1225 of file mythdialogs.cpp.

Referenced by ReallyUpdateForeground(), and updateForegroundRegion().

Member Data Documentation

UIType* MythThemedDialog::widget_with_current_focus
protected
QPixmap MythThemedDialog::my_background
protected

Definition at line 317 of file mythdialogs.h.

Referenced by initForeground(), updateBackground(), and UpdateForegroundRect().

QPixmap MythThemedDialog::my_foreground
protected

Definition at line 318 of file mythdialogs.h.

Referenced by initForeground(), paintEvent(), and UpdateForegroundRect().

XMLParse* MythThemedDialog::theme
private
QDomElement MythThemedDialog::xmldata
private

Definition at line 327 of file mythdialogs.h.

Referenced by loadThemedWindow().

int MythThemedDialog::context
private
QList<LayerSet*> MythThemedDialog::my_containers
private
vector<UIType*> MythThemedDialog::focus_taking_widgets
private
QRect MythThemedDialog::redrawRect
private

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