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

ImageView Class Reference

#include </home/clem/local/src/opie/noncore/graphics/opie-eye/gui/imageview.h>

Inheritance diagram for ImageView:

Inheritance graph
[legend]
Collaboration diagram for ImageView:

Collaboration graph
[legend]
List of all members.

Public Slots

virtual void hide ()
virtual void startSlide (int)
virtual void nextSlide ()
virtual void systemMessage (const QCString &, const QByteArray &)
virtual void slotIncBrightness ()
virtual void slotDecBrightness ()

Signals

void dispImageInfo (const QString &)
void dispNext ()
void dispPrev ()
void toggleFullScreen ()
void hideMe ()
void toggleZoomer ()
void toggleAutoscale ()
void toggleAutorotate ()
void incBrightness ()
void decBrightness ()

Public Member Functions

 ImageView (Opie::Core::OConfig *cfg, QWidget *parent, const char *name=0, WFlags fl=0)
virtual ~ImageView ()
Opie::Core::OKeyConfigManagermanager ()
void setFullScreen (bool how, bool force=true)
bool fullScreen ()
virtual void enableFullscreen ()
void stopSlide ()
void setMenuActions (QActionGroup *hGroup, QActionGroup *nextprevGroup, QActionGroup *disptypeGroup, QActionGroup *brightGroup)
void setCloseIfHide (bool)

Protected Slots

virtual void slotShowImageInfo ()
virtual void keyReleaseEvent (QKeyEvent *e)
virtual void contentsMousePressEvent (QMouseEvent *e)

Protected Member Functions

void initKeys ()
virtual void focusInEvent (QFocusEvent *)

Protected Attributes

Opie::Core::OConfigm_cfg
Opie::Core::OKeyConfigManagerm_viewManager
bool m_isFullScreen:1
bool m_ignore_next_in:1
bool m_Rotated:1
int focus_in_count
QTimer * m_slideTimer
int m_slideValue
QActionGroup * m_gDisplayType
QActionGroup * m_gPrevNext
QActionGroup * m_hGroup
QActionGroup * m_gBright
bool closeIfHide:1
QCopChannelm_sysChannel
int m_rotation

Private Types

enum  ActionIds {
  ViewInfo, FullScreen, ShowNext, ShowPrevious,
  Zoomer, Autorotate, Autoscale, Incbrightness,
  Decbrightness
}

Member Enumeration Documentation

enum ImageView::ActionIds [private]
 

Enumeration values:
ViewInfo 
FullScreen 
ShowNext 
ShowPrevious 
Zoomer 
Autorotate 
Autoscale 
Incbrightness 
Decbrightness 

Definition at line 25 of file imageview.h.


Constructor & Destructor Documentation

ImageView::ImageView Opie::Core::OConfig cfg,
QWidget *  parent,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 17 of file imageview.cpp.

References closeIfHide, decBrightness(), focus_in_count, incBrightness(), initKeys(), m_cfg, m_gBright, m_gDisplayType, m_gPrevNext, m_hGroup, m_ignore_next_in, m_isFullScreen, m_Rotated, m_slideTimer, m_slideValue, m_sysChannel, m_viewManager, min, QPEApplication::RightOnHold, QPEApplication::setStylusOperation(), slotDecBrightness(), slotIncBrightness(), and systemMessage().

ImageView::~ImageView  )  [virtual]
 

Definition at line 88 of file imageview.cpp.

References m_viewManager, odebug, and oendl.


Member Function Documentation

void ImageView::contentsMousePressEvent QMouseEvent *  e  )  [protected, virtual, slot]
 

Reimplemented from Opie::MM::OImageScrollView.

Definition at line 229 of file imageview.cpp.

References fullScreen(), m_gBright, m_gDisplayType, m_gPrevNext, m_hGroup, pos, Opie::MM::x, and Opie::MM::y.

void ImageView::decBrightness  )  [signal]
 

Referenced by ImageView(), and initKeys().

void ImageView::dispImageInfo const QString  )  [signal]
 

Referenced by slotShowImageInfo().

void ImageView::dispNext  )  [signal]
 

Referenced by initKeys(), and nextSlide().

void ImageView::dispPrev  )  [signal]
 

Referenced by initKeys().

void ImageView::enableFullscreen  )  [virtual]
 

Definition at line 299 of file imageview.cpp.

References fullScreen(), and m_ignore_next_in.

Referenced by focusInEvent().

void ImageView::focusInEvent QFocusEvent *   )  [protected, virtual]
 

Definition at line 283 of file imageview.cpp.

References enableFullscreen(), fullScreen(), and m_ignore_next_in.

bool ImageView::fullScreen  )  [inline]
 

Definition at line 42 of file imageview.h.

References m_isFullScreen.

Referenced by PMainWindow::closeEvent(), contentsMousePressEvent(), enableFullscreen(), focusInEvent(), hide(), keyReleaseEvent(), PMainWindow::raiseIconView(), PMainWindow::setupBrightness(), PMainWindow::slotDisplay(), PMainWindow::slotShowInfo(), and systemMessage().

void ImageView::hide  )  [virtual, slot]
 

Definition at line 291 of file imageview.cpp.

References fullScreen(), and m_ignore_next_in.

Referenced by PMainWindow::raiseIconView(), PMainWindow::setupBrightness(), and PMainWindow::slotConfig().

void ImageView::hideMe  )  [signal]
 

Referenced by keyReleaseEvent().

void ImageView::incBrightness  )  [signal]
 

Referenced by ImageView(), and initKeys().

void ImageView::initKeys  )  [protected]
 

Handle KeyEvents when they're pressed. This avoids problems with 'double next' on Return. The Return press would switch to this view and the return release would emit the dispNext Signal.

Definition at line 140 of file imageview.cpp.

References Opie::Core::OKeyConfigManager::addKeyConfig(), QValueList< T >::append(), Autorotate, Autoscale, decBrightness(), Decbrightness, dispNext(), dispPrev(), FullScreen, Opie::Core::OKeyConfigManager::handleWidget(), incBrightness(), Incbrightness, Qt::Key_B, Qt::Key_D, Qt::Key_Escape, Qt::Key_F, Qt::Key_I, Qt::Key_P, Qt::Key_R, Qt::Key_Return, Qt::Key_S, Qt::Key_T, Opie::Core::OKeyConfigManager::load(), Opie::Core::OResource::loadPixmap(), m_cfg, m_viewManager, Opie::Core::OKeyConfigManager::MaskPressed, odebug, oendl, Opie::Core::OKeyConfigManager::setEventMask(), Config::setGroup(), ShowNext, ShowPrevious, slotShowImageInfo(), Opie::Core::OResource::SmallIcon, toggleAutorotate(), toggleAutoscale(), toggleFullScreen(), toggleZoomer(), tr, ViewInfo, and Zoomer.

Referenced by ImageView(), and manager().

void ImageView::keyReleaseEvent QKeyEvent *  e  )  [protected, virtual, slot]
 

Definition at line 204 of file imageview.cpp.

References closeIfHide, fullScreen(), hideMe(), Qt::Key_Escape, and qApp.

Opie::Core::OKeyConfigManager * ImageView::manager  ) 
 

Definition at line 94 of file imageview.cpp.

References initKeys(), and m_viewManager.

Referenced by PMainWindow::slotConfig().

void ImageView::nextSlide  )  [virtual, slot]
 

Definition at line 125 of file imageview.cpp.

References dispNext(), m_slideTimer, and m_slideValue.

Referenced by startSlide().

void ImageView::setCloseIfHide bool   ) 
 

Definition at line 219 of file imageview.cpp.

References closeIfHide.

Referenced by PMainWindow::polish().

void ImageView::setFullScreen bool  how,
bool  force = true
 

Definition at line 270 of file imageview.cpp.

References m_ignore_next_in, m_isFullScreen, and qApp.

Referenced by PMainWindow::setupViewWindow().

void ImageView::setMenuActions QActionGroup *  hGroup,
QActionGroup *  nextprevGroup,
QActionGroup *  disptypeGroup,
QActionGroup *  brightGroup
 

Definition at line 80 of file imageview.cpp.

References m_gBright, m_gDisplayType, m_gPrevNext, and m_hGroup.

void ImageView::slotDecBrightness  )  [virtual, slot]
 

Definition at line 59 of file imageview.cpp.

References Opie::MM::OImageScrollView::Intensity(), and Opie::MM::OImageScrollView::setIntensity().

Referenced by ImageView().

void ImageView::slotIncBrightness  )  [virtual, slot]
 

Definition at line 52 of file imageview.cpp.

References Opie::MM::OImageScrollView::Intensity(), and Opie::MM::OImageScrollView::setIntensity().

Referenced by ImageView().

void ImageView::slotShowImageInfo  )  [protected, virtual, slot]
 

Definition at line 224 of file imageview.cpp.

References dispImageInfo(), and Opie::MM::OImageScrollView::m_lastName.

Referenced by initKeys().

void ImageView::startSlide int   )  [virtual, slot]
 

Definition at line 102 of file imageview.cpp.

References m_slideTimer, m_slideValue, and nextSlide().

void ImageView::stopSlide  ) 
 

Definition at line 115 of file imageview.cpp.

References m_slideTimer.

Referenced by PMainWindow::raiseIconView().

void ImageView::systemMessage const QCString ,
const QByteArray
[virtual, slot]
 

Definition at line 66 of file imageview.cpp.

References fullScreen(), IO_ReadOnly, m_rotation, and stream.

Referenced by ImageView().

void ImageView::toggleAutorotate  )  [signal]
 

Referenced by initKeys().

void ImageView::toggleAutoscale  )  [signal]
 

Referenced by initKeys().

void ImageView::toggleFullScreen  )  [signal]
 

Referenced by initKeys().

void ImageView::toggleZoomer  )  [signal]
 

Referenced by initKeys().


Member Data Documentation

bool ImageView::closeIfHide [protected]
 

Definition at line 73 of file imageview.h.

Referenced by ImageView(), keyReleaseEvent(), and setCloseIfHide().

int ImageView::focus_in_count [protected]
 

Definition at line 68 of file imageview.h.

Referenced by ImageView().

Opie::Core::OConfig* ImageView::m_cfg [protected]
 

Definition at line 61 of file imageview.h.

Referenced by ImageView(), and initKeys().

QActionGroup * ImageView::m_gBright [protected]
 

Definition at line 72 of file imageview.h.

Referenced by contentsMousePressEvent(), ImageView(), and setMenuActions().

QActionGroup* ImageView::m_gDisplayType [protected]
 

Definition at line 72 of file imageview.h.

Referenced by contentsMousePressEvent(), ImageView(), and setMenuActions().

QActionGroup * ImageView::m_gPrevNext [protected]
 

Definition at line 72 of file imageview.h.

Referenced by contentsMousePressEvent(), ImageView(), and setMenuActions().

QActionGroup * ImageView::m_hGroup [protected]
 

Definition at line 72 of file imageview.h.

Referenced by contentsMousePressEvent(), ImageView(), and setMenuActions().

bool ImageView::m_ignore_next_in [protected]
 

Definition at line 65 of file imageview.h.

Referenced by enableFullscreen(), focusInEvent(), hide(), ImageView(), and setFullScreen().

bool ImageView::m_isFullScreen [protected]
 

Definition at line 64 of file imageview.h.

Referenced by fullScreen(), ImageView(), and setFullScreen().

bool ImageView::m_Rotated [protected]
 

Definition at line 66 of file imageview.h.

Referenced by ImageView().

int ImageView::m_rotation [protected]
 

Definition at line 75 of file imageview.h.

Referenced by systemMessage().

QTimer* ImageView::m_slideTimer [protected]
 

Definition at line 69 of file imageview.h.

Referenced by ImageView(), nextSlide(), startSlide(), and stopSlide().

int ImageView::m_slideValue [protected]
 

Definition at line 70 of file imageview.h.

Referenced by ImageView(), nextSlide(), and startSlide().

QCopChannel* ImageView::m_sysChannel [protected]
 

Definition at line 74 of file imageview.h.

Referenced by ImageView().

Opie::Core::OKeyConfigManager* ImageView::m_viewManager [protected]
 

Definition at line 62 of file imageview.h.

Referenced by ImageView(), initKeys(), manager(), and ~ImageView().


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