Logo Search packages:      
Sourcecode: qstardict version File versions  Download package

QStarDict::PopupWindow Class Reference

#include <popupwindow.h>

Inheritance diagram for QStarDict::PopupWindow:

QStarDict::ResizablePopup

List of all members.


Detailed Description

The PopupWindow is a window that scan selection and pop-up when needed.

Definition at line 38 of file popupwindow.h.


Public Slots

void popup ()
void setDefaultSize (const QSize &defaultSize)
void setModifierKey (int key)
void setPronounceWord (bool pronounceWord)
void setScan (bool scan)
void setShowIfNotFound (bool mode)
void setTimeoutBeforeHide (int timeoutBeforeHide)
void showTranslation (const QString &text)

Signals

void scanChanged (bool scan)

Public Member Functions

const QSize & defaultSize () const
QString defaultStyleSheet () const
DictCoredict () const
bool isScan () const
int modifierKey () const
 PopupWindow (QWidget *parent=0)
bool pronounceWord () const
void setDefaultStyleSheet (const QString &css)
void setDict (DictCore *dict)
bool showIfNotFound () const
int timeoutBeforeHide () const
 ~PopupWindow ()

Protected Member Functions

void enterEvent (QEvent *)
bool event (QEvent *event)
void leaveEvent (QEvent *)
void mouseDoubleClickEvent (QMouseEvent *)
void mouseMoveEvent (QMouseEvent *)
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
void timerEvent (QTimerEvent *)

Private Slots

void selectionChanged (const QString &text)

Private Member Functions

void loadSettings ()
void saveSettings ()

Private Attributes

DictCorem_dict
int m_modifierKey
bool m_pronounceWord
Selectionm_selection
bool m_showIfNotFound
DictWidgettranslationView

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

Generated by  Doxygen 1.6.0   Back to index