Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TextWidget Class Reference

#include </home/clem/local/src/opie/noncore/apps/dagger/textwidget.h>

Collaboration diagram for TextWidget:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotNumVersesChanged (int numVerses)
void slotFontChanged (const QFont *newFont)
void slotOptionChanged ()

Signals

void sigRefClicked (const QString &ref)

Public Member Functions

 TextWidget (QWidget *parent=0x0, sword::SWModule *module=0x0, int numVerses=5, const QFont *font=0x0)
 ~TextWidget ()
const QStringgetFullKey ()
const QStringgetAbbrevKey ()
QString getModuleName ()
sword::SWModule * getModule ()
QString getCurrVerse ()
bool isBibleText () const
void prevPage ()
void prevVerse ()
void setKey (const QString &newKey)
void nextVerse ()
void nextPage ()

Private Member Functions

void setText ()

Private Attributes

sword::SWModule * m_module
sword::SWKey * m_key
bool m_isBibleText
QTextBrowser * m_textView
QString m_fullKey
QString m_abbrevKey
int m_numVerses

Constructor & Destructor Documentation

TextWidget::TextWidget QWidget *  parent = 0x0,
sword::SWModule *  module = 0x0,
int  numVerses = 5,
const QFont *  font = 0x0
 

Definition at line 25 of file textwidget.cpp.

References m_isBibleText, m_key, m_module, m_textView, setText(), and sigRefClicked().

TextWidget::~TextWidget  ) 
 

Definition at line 69 of file textwidget.cpp.


Member Function Documentation

const QString& TextWidget::getAbbrevKey  )  [inline]
 

Definition at line 38 of file textwidget.h.

References m_abbrevKey.

Referenced by MainWindow::openModule(), MainWindow::slotEditCopy(), MainWindow::slotNavNextPage(), MainWindow::slotNavNextVerse(), MainWindow::slotNavPrevPage(), MainWindow::slotNavPrevVerse(), MainWindow::slotSearchResultClicked(), and MainWindow::slotTextDisplayed().

QString TextWidget::getCurrVerse  ) 
 

Definition at line 75 of file textwidget.cpp.

References m_key, and m_module.

Referenced by MainWindow::slotEditCopy().

const QString& TextWidget::getFullKey  )  [inline]
 

Definition at line 37 of file textwidget.h.

References m_fullKey.

Referenced by MainWindow::openModule(), MainWindow::slotBookmarkAdd(), MainWindow::slotBookmarkRemove(), MainWindow::slotNavKeyChanged(), MainWindow::slotNavNextPage(), MainWindow::slotNavNextVerse(), MainWindow::slotNavPrevPage(), MainWindow::slotNavPrevVerse(), MainWindow::slotSearchResultClicked(), and MainWindow::slotTextDisplayed().

sword::SWModule* TextWidget::getModule  )  [inline]
 

Definition at line 40 of file textwidget.h.

References m_module.

Referenced by SearchBar::slotFind().

QString TextWidget::getModuleName  )  [inline]
 

Definition at line 39 of file textwidget.h.

References m_module.

Referenced by MainWindow::openModule(), SearchBar::setCurrModule(), and MainWindow::slotEditCopy().

bool TextWidget::isBibleText  )  const [inline]
 

Definition at line 43 of file textwidget.h.

References m_isBibleText.

Referenced by MainWindow::slotNavKeyChanged(), and MainWindow::slotTextDisplayed().

void TextWidget::nextPage  ) 
 

Definition at line 105 of file textwidget.cpp.

References m_numVerses, and setText().

Referenced by MainWindow::slotNavNextPage().

void TextWidget::nextVerse  ) 
 

Definition at line 99 of file textwidget.cpp.

References setText().

Referenced by MainWindow::slotNavNextVerse().

void TextWidget::prevPage  ) 
 

Definition at line 81 of file textwidget.cpp.

References m_numVerses, and setText().

Referenced by MainWindow::slotNavPrevPage().

void TextWidget::prevVerse  ) 
 

Definition at line 87 of file textwidget.cpp.

References setText().

Referenced by MainWindow::slotNavPrevVerse().

void TextWidget::setKey const QString newKey  ) 
 

Definition at line 93 of file textwidget.cpp.

References QString::latin1(), m_key, and setText().

Referenced by MainWindow::openModule(), MainWindow::slotNavKeyChanged(), and MainWindow::slotSearchResultClicked().

void TextWidget::setText  )  [private]
 

Definition at line 129 of file textwidget.cpp.

References QString::append(), QString::fromUtf8(), i, m_abbrevKey, m_fullKey, m_isBibleText, m_key, m_module, m_numVerses, and m_textView.

Referenced by nextPage(), nextVerse(), prevPage(), prevVerse(), setKey(), slotFontChanged(), slotNumVersesChanged(), slotOptionChanged(), and TextWidget().

void TextWidget::sigRefClicked const QString ref  )  [signal]
 

Referenced by TextWidget().

void TextWidget::slotFontChanged const QFont *  newFont  )  [slot]
 

Definition at line 117 of file textwidget.cpp.

References setText().

void TextWidget::slotNumVersesChanged int  numVerses  )  [slot]
 

Definition at line 111 of file textwidget.cpp.

References m_numVerses, and setText().

void TextWidget::slotOptionChanged  )  [slot]
 

Definition at line 124 of file textwidget.cpp.

References setText().


Member Data Documentation

QString TextWidget::m_abbrevKey [private]
 

Definition at line 63 of file textwidget.h.

Referenced by getAbbrevKey(), and setText().

QString TextWidget::m_fullKey [private]
 

Definition at line 62 of file textwidget.h.

Referenced by getFullKey(), and setText().

bool TextWidget::m_isBibleText [private]
 

Definition at line 59 of file textwidget.h.

Referenced by isBibleText(), setText(), and TextWidget().

sword::SWKey* TextWidget::m_key [private]
 

Definition at line 58 of file textwidget.h.

Referenced by getCurrVerse(), setKey(), setText(), and TextWidget().

sword::SWModule* TextWidget::m_module [private]
 

Definition at line 57 of file textwidget.h.

Referenced by getCurrVerse(), getModule(), getModuleName(), setText(), and TextWidget().

int TextWidget::m_numVerses [private]
 

Definition at line 65 of file textwidget.h.

Referenced by nextPage(), prevPage(), setText(), and slotNumVersesChanged().

QTextBrowser* TextWidget::m_textView [private]
 

Definition at line 61 of file textwidget.h.

Referenced by setText(), and TextWidget().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:53:50 2005 for OPIE by  doxygen 1.4.2