MythMainWindow Class Reference

#include <mythmainwindow.h>

List of all members.


Detailed Description

Definition at line 55 of file mythmainwindow.h.


Public Slots

void drawTimeout ()
void mouseTimeout ()

Public Member Functions

void Init (void)
void Show (void)
void AddScreenStack (MythScreenStack *stack, bool main=false)
MythScreenStackGetMainStack ()
bool TranslateKeyPress (const QString &context, QKeyEvent *e, QStringList &actions, bool allowJumps=true)
void ClearKey (const QString &context, const QString &action)
void BindKey (const QString &context, const QString &action, const QString &key)
void RegisterKey (const QString &context, const QString &action, const QString &description, const QString &key)
QString GetKey (const QString &context, const QString &action) const
void ClearJump (const QString &destination)
void BindJump (const QString &destination, const QString &key)
void RegisterJump (const QString &destination, const QString &description, const QString &key, void(*callback)(void), bool exittomain=true, QString localAction="")
void RegisterMediaHandler (const QString &destination, const QString &description, const QString &key, void(*callback)(MythMediaDevice *mediadevice), int mediaType, const QString &extensions)
void RegisterMediaPlugin (const QString &name, const QString &desc, MediaPlayCallback fn)
bool HandleMedia (QString &handler, const QString &mrl, const QString &plot="", const QString &title="", const QString &director="", int lenMins=120, const QString &year="1895")
void JumpTo (const QString &destination, bool pop=true)
bool DestinationExists (const QString &destination) const
bool IsExitingToMain (void) const
MythPainterGetCurrentPainter ()
void AllowInput (bool allow)
QRect GetUIScreenRect ()
int NormalizeFontSize (int pointSize)
QFont CreateQFont (const QString &face, int pointSize=12, int weight=QFont::Normal, bool italic=FALSE)
QRect NormRect (const QRect &rect)
QPoint NormPoint (const QPoint &point)
QSize NormSize (const QSize &size)
int NormX (const int x)
int NormY (const int y)
void attach (QWidget *child)
void detach (QWidget *child)
QWidget * currentWidget (void)

Static Public Member Functions

static MythMainWindowgetMainWindow (const bool useDB=true)
 Return the existing main window, or create one.
static void destroyMainWindow ()

Public Attributes

int fonTweak

Protected Member Functions

 MythMainWindow (const bool useDB=true)
virtual ~MythMainWindow ()
bool eventFilter (QObject *o, QEvent *e)
void customEvent (QCustomEvent *ce)
void closeEvent (QCloseEvent *e)
void paintEvent (QPaintEvent *e)
bool event (QEvent *e)
void ExitToMainMenu ()
QObject * getTarget (QKeyEvent &key)

Protected Attributes

MythMainWindowPrivated

Constructor & Destructor Documentation

MythMainWindow::MythMainWindow ( const bool  useDB = true  )  [protected]

Definition at line 271 of file mythmainwindow.cpp.

Referenced by getMainWindow().

MythMainWindow::~MythMainWindow (  )  [protected, virtual]

Definition at line 389 of file mythmainwindow.cpp.


Member Function Documentation

void MythMainWindow::Init ( void   ) 

Definition at line 532 of file mythmainwindow.cpp.

Referenced by main(), reloadTheme(), and MythContextPrivate::TempMainWindow().

void MythMainWindow::Show ( void   ) 

Definition at line 603 of file mythmainwindow.cpp.

Referenced by Init().

void MythMainWindow::AddScreenStack ( MythScreenStack stack,
bool  main = false 
)

Definition at line 405 of file mythmainwindow.cpp.

Referenced by MythScreenStack::MythScreenStack().

MythScreenStack * MythMainWindow::GetMainStack ( void   ) 

bool MythMainWindow::TranslateKeyPress ( const QString &  context,
QKeyEvent *  e,
QStringList &  actions,
bool  allowJumps = true 
)

Definition at line 752 of file mythmainwindow.cpp.

Referenced by NuppelVideoPlayer::DoKeypress(), TabView::eventFilter(), MythSpinBox::eventFilter(), MythNewsSpinBox::eventFilter(), MythFlixSpinBox::eventFilter(), InfoDialog::eventFilter(), SevereWeatherScreen::handleKey(), OSDListTreeType::HandleKeypress(), VisualizationsEditor::handleKeyPress(), ZMPlayer::keyPressEvent(), ZMLivePlayer::keyPressEvent(), ZMEvents::keyPressEvent(), ZMConsole::keyPressEvent(), WelcomeDialog::keyPressEvent(), WebcamSettingsBox::keyPressEvent(), LocationDialog::keyPressEvent(), SourceSetup::keyPressEvent(), ScreenSetup::keyPressEvent(), GlobalSetup::keyPressEvent(), Weather::keyPressEvent(), VirtualKeyboard::keyPressEvent(), ViewScheduled::keyPressEvent(), ViewScheduleDiff::keyPressEvent(), VideoTree::keyPressEvent(), VideoSelector::keyPressEvent(), VideoSelected::keyPressEvent(), VideoManager::keyPressEvent(), VideoGallery::keyPressEvent(), VideoFilterDialog::keyPressEvent(), VideoBrowser::keyPressEvent(), UIKeyboardType::keyPressEvent(), TitleDialog::keyPressEvent(), ThumbFinder::keyPressEvent(), StatusBox::keyPressEvent(), RecOptDialog::keyPressEvent(), SmartPLDateDialog::keyPressEvent(), SmartPLOrderByDialog::keyPressEvent(), SmartPlaylistDialog::keyPressEvent(), SingleView::keyPressEvent(), RecordingSelector::keyPressEvent(), ProgramRecPriority::keyPressEvent(), ProgLister::keyPressEvent(), ProgFinder::keyPressEvent(), ProgDetails::keyPressEvent(), PreviousList::keyPressEvent(), PlaybackBoxMusic::keyPressEvent(), PlaybackBox::keyPressEvent(), PhoneUIBox::keyPressEvent(), MythMultiPasswordDialog::keyPressEvent(), MythWizard::keyPressEvent(), MythListBox::keyPressEvent(), MythListView::keyPressEvent(), MythPushButton::keyPressEvent(), MythTable::keyPressEvent(), MythRemoteLineEdit::keyPressEvent(), MythLineEdit::keyPressEvent(), MythSlider::keyPressEvent(), MythRadioButton::keyPressEvent(), MythCheckBox::keyPressEvent(), MythComboBox::keyPressEvent(), MythUIButton::keyPressEvent(), MythNewsConfig::keyPressEvent(), MythNews::keyPressEvent(), MythNewsBusyDialog::keyPressEvent(), MythListButton::keyPressEvent(), MythFlixQueue::keyPressEvent(), MythFlixConfig::keyPressEvent(), MythFlix::keyPressEvent(), MythScrollDialog::keyPressEvent(), MythImageFileDialog::keyPressEvent(), MythSearchDialog::keyPressEvent(), MythPasswordDialog::keyPressEvent(), MythProgressDialog::keyPressEvent(), MythPopupBox::keyPressEvent(), MythDialog::keyPressEvent(), MythControls::keyPressEvent(), ConfigurationDialogWidget::keyPressEvent(), MythburnWizard::keyPressEvent(), MythAppearance::keyPressEvent(), MoviesUI::keyPressEvent(), MiniPlayer::keyPressEvent(), LogViewer::keyPressEvent(), ImportNativeWizard::keyPressEvent(), ImportCoverArtDialog::keyPressEvent(), ImportMusicDialog::keyPressEvent(), IconView::keyPressEvent(), GuideGrid::keyPressEvent(), GLSingleView::keyPressEvent(), GameTree::keyPressEvent(), FileSelector::keyPressEvent(), FileAssocDialog::keyPressEvent(), ExportNativeWizard::keyPressEvent(), EditMetadataDialog::keyPressEvent(), DVDRipBox::keyPressEvent(), DirectoryFinder::keyPressEvent(), DatabaseBox::keyPressEvent(), ChannelRecPriority::keyPressEvent(), RipStatus::keyPressEvent(), Ripper::keyPressEvent(), MythThemedMenuPrivate::keyPressHandler(), and TV::ProcessKeypress().

void MythMainWindow::ClearKey ( const QString &  context,
const QString &  action 
)

Definition at line 803 of file mythmainwindow.cpp.

Referenced by KeyBindings::CommitAction().

void MythMainWindow::BindKey ( const QString &  context,
const QString &  action,
const QString &  key 
)

Definition at line 831 of file mythmainwindow.cpp.

Referenced by KeyBindings::CommitAction(), and RegisterKey().

void MythMainWindow::RegisterKey ( const QString &  context,
const QString &  action,
const QString &  description,
const QString &  key 
)

Definition at line 862 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

QString MythMainWindow::GetKey ( const QString &  context,
const QString &  action 
) const

Definition at line 931 of file mythmainwindow.cpp.

void MythMainWindow::ClearJump ( const QString &  destination  ) 

Definition at line 953 of file mythmainwindow.cpp.

Referenced by KeyBindings::CommitJumppoint().

void MythMainWindow::BindJump ( const QString &  destination,
const QString &  key 
)

Definition at line 973 of file mythmainwindow.cpp.

Referenced by KeyBindings::CommitJumppoint(), and RegisterJump().

void MythMainWindow::RegisterJump ( const QString &  destination,
const QString &  description,
const QString &  key,
void(*)(void)  callback,
bool  exittomain = true,
QString  localAction = "" 
)

Definition at line 1008 of file mythmainwindow.cpp.

void MythMainWindow::RegisterMediaHandler ( const QString &  destination,
const QString &  description,
const QString &  key,
void(*)(MythMediaDevice *mediadevice)  callback,
int  mediaType,
const QString &  extensions 
)

void MythMainWindow::RegisterMediaPlugin ( const QString &  name,
const QString &  desc,
MediaPlayCallback  fn 
)

Definition at line 1103 of file mythmainwindow.cpp.

bool MythMainWindow::HandleMedia ( QString &  handler,
const QString &  mrl,
const QString &  plot = "",
const QString &  title = "",
const QString &  director = "",
int  lenMins = 120,
const QString &  year = "1895" 
)

Definition at line 1121 of file mythmainwindow.cpp.

Referenced by playDVD(), PlayVideo(), MythNews::playVideo(), and runTestDVD().

void MythMainWindow::JumpTo ( const QString &  destination,
bool  pop = true 
)

bool MythMainWindow::DestinationExists ( const QString &  destination  )  const

Definition at line 1066 of file mythmainwindow.cpp.

Referenced by MythThemedMenuPrivate::parseThemeButton().

bool MythMainWindow::IsExitingToMain ( void   )  const

MythMainWindow * MythMainWindow::getMainWindow ( const bool  useDB = true  )  [static]

Return the existing main window, or create one.

Parameters:
useDB If this is a temporary window, which is used to bootstrap the database, passing false prevents any database access.
See also:
MythContextPrivate::TempMainWindow()

Definition at line 232 of file mythmainwindow.cpp.

Referenced by GetMythMainWindow(), GetMythPainter(), and MythContextPrivate::TempMainWindow().

void MythMainWindow::destroyMainWindow ( void   )  [static]

Definition at line 245 of file mythmainwindow.cpp.

Referenced by DestroyMythMainWindow().

MythPainter * MythMainWindow::GetCurrentPainter ( void   ) 

Definition at line 400 of file mythmainwindow.cpp.

Referenced by GetMythPainter().

void MythMainWindow::AllowInput ( bool  allow  ) 

QRect MythMainWindow::GetUIScreenRect ( void   ) 

int MythMainWindow::NormalizeFontSize ( int  pointSize  ) 

Definition at line 1556 of file mythmainwindow.cpp.

Referenced by CreateQFont(), and XMLParse::parseFont().

QFont MythMainWindow::CreateQFont ( const QString &  face,
int  pointSize = 12,
int  weight = QFont::Normal,
bool  italic = FALSE 
)

Definition at line 1588 of file mythmainwindow.cpp.

Referenced by MythUIType::CreateQFont(), and MythThemedMenuState::parseText().

QRect MythMainWindow::NormRect ( const QRect &  rect  ) 

Definition at line 1601 of file mythmainwindow.cpp.

Referenced by MythUIType::NormRect(), and XMLParseBase::parseRect().

QPoint MythMainWindow::NormPoint ( const QPoint &  point  ) 

QSize MythMainWindow::NormSize ( const QSize &  size  ) 

Definition at line 1622 of file mythmainwindow.cpp.

Referenced by XMLParseBase::parseSize().

int MythMainWindow::NormX ( const int  x  ) 

Definition at line 1631 of file mythmainwindow.cpp.

Referenced by MythUIType::NormX().

int MythMainWindow::NormY ( const int  y  ) 

Definition at line 1636 of file mythmainwindow.cpp.

Referenced by MythUIType::NormY(), and MythThemedMenuState::parseOutline().

void MythMainWindow::attach ( QWidget *  child  ) 

void MythMainWindow::detach ( QWidget *  child  ) 

QWidget * MythMainWindow::currentWidget ( void   ) 

void MythMainWindow::drawTimeout ( void   )  [slot]

Definition at line 417 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

void MythMainWindow::mouseTimeout ( void   )  [slot]

Definition at line 1144 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

bool MythMainWindow::eventFilter ( QObject *  o,
QEvent *  e 
) [protected]

Definition at line 1161 of file mythmainwindow.cpp.

void MythMainWindow::customEvent ( QCustomEvent *  ce  )  [protected]

Definition at line 1301 of file mythmainwindow.cpp.

void MythMainWindow::closeEvent ( QCloseEvent *  e  )  [protected]

Definition at line 496 of file mythmainwindow.cpp.

void MythMainWindow::paintEvent ( QPaintEvent *  e  )  [protected]

Definition at line 502 of file mythmainwindow.cpp.

bool MythMainWindow::event ( QEvent *  e  )  [protected]

Definition at line 510 of file mythmainwindow.cpp.

void MythMainWindow::ExitToMainMenu ( void   )  [protected]

Definition at line 678 of file mythmainwindow.cpp.

Referenced by customEvent().

QObject * MythMainWindow::getTarget ( QKeyEvent &  key  )  [protected]

Definition at line 1527 of file mythmainwindow.cpp.

Referenced by customEvent(), eventFilter(), and ExitToMainMenu().


Member Data Documentation

Definition at line 116 of file mythmainwindow.h.

Referenced by Init(), and NormalizeFontSize().


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

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