kviewshell
PageView Class Reference
#include <pageView.h>
Detailed Description
Definition at line 37 of file pageView.h.
Constructor & Destructor Documentation
PageView::PageView | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 | |||
) |
Definition at line 33 of file pageView.cpp.
PageView::~PageView | ( | ) | [inline] |
Definition at line 43 of file pageView.h.
Member Function Documentation
void PageView::addChild | ( | QPtrVector< DocumentWidget > * | wdgList | ) |
Definition at line 61 of file pageView.cpp.
bool PageView::atBottom | ( | ) | const |
Definition at line 79 of file pageView.cpp.
bool PageView::atTop | ( | ) | const |
Return true if the top resp.
bottom of the page is visible.
Definition at line 73 of file pageView.cpp.
void PageView::calculateCurrentPageNumber | ( | ) | [slot] |
Definition at line 583 of file pageView.cpp.
void PageView::contentsMouseMoveEvent | ( | QMouseEvent * | e | ) | [protected] |
void PageView::contentsMousePressEvent | ( | QMouseEvent * | e | ) | [protected] |
void PageView::contentsMouseReleaseEvent | ( | QMouseEvent * | ) | [protected] |
void PageView::contentsWheelEvent | ( | QWheelEvent * | e | ) | [protected] |
Reimplemented from QScrollView, because the kviepart needs to handle the wheel events itself.
The wheel event is passed on by emitting the singal "wheelEventReceived". Nothing else is done.
Reimplemented from QScrollView.
Definition at line 445 of file pageView.cpp.
void PageView::currentPageChanged | ( | const PageNumber & | ) | [signal] |
int PageView::distanceBetweenPages | ( | ) | [inline] |
Distance between pages in pixels (this is independent of the zoom level).
Definition at line 85 of file pageView.h.
bool PageView::fullScreenMode | ( | ) | [inline] |
Definition at line 53 of file pageView.h.
Q_UINT8 PageView::getNrColumns | ( | ) | const [inline] |
Returns the number of columns into which the widgets are aligned.
This method returns the number of colums actually used to display the widgets.
- Warning:
- This method need not return the number columns set in the setViewMode() method. For instance, if the viewmode KVSPrefs::EnumViewMode::ContinuousFacing is set, but there is only one widget, then only one column is used, and the method returns the number one.
- Returns:
- Number of columns used, or 1 if there aren't any widgets. The number i returned always satisfies 1 <= i <= nrCols, where nrCols is the private variable of the same nane.
Definition at line 74 of file pageView.h.
Q_UINT8 PageView::getNrRows | ( | ) | const [inline] |
Definition at line 76 of file pageView.h.
bool PageView::isContinuous | ( | ) | const [inline] |
Definition at line 77 of file pageView.h.
bool PageView::isMoveToolEnabled | ( | ) | const [inline] |
Definition at line 90 of file pageView.h.
void PageView::keyPressEvent | ( | QKeyEvent * | e | ) | [protected] |
Definition at line 174 of file pageView.cpp.
void PageView::layoutPages | ( | bool | zoomChanged = false |
) | [slot] |
Set layout of the page widgets according to the current viewmode and zoomlevel.
Set zoomChanged = true if the the layout needs updateing because the zoomlevel has changed.
Definition at line 298 of file pageView.cpp.
void PageView::moveViewportToWidget | ( | QWidget * | widget, | |
int | y = 0 | |||
) |
Moves the viewport so that the widget is at the top left corner.
Definition at line 451 of file pageView.cpp.
bool PageView::overviewMode | ( | ) | [inline] |
Definition at line 55 of file pageView.h.
void PageView::pageSizeChanged | ( | const QSize & | size | ) | [signal] |
bool PageView::readDown | ( | ) | [slot] |
Definition at line 114 of file pageView.cpp.
bool PageView::readUp | ( | ) | [slot] |
Definition at line 85 of file pageView.cpp.
void PageView::scrollBottom | ( | ) | [slot] |
Definition at line 164 of file pageView.cpp.
void PageView::scrollDown | ( | ) | [slot] |
Definition at line 154 of file pageView.cpp.
void PageView::scrollLeft | ( | ) | [slot] |
Definition at line 149 of file pageView.cpp.
void PageView::scrollRight | ( | ) | [slot] |
Definition at line 144 of file pageView.cpp.
void PageView::scrollTop | ( | ) | [slot] |
Definition at line 169 of file pageView.cpp.
void PageView::scrollUp | ( | ) | [slot] |
Definition at line 159 of file pageView.cpp.
void PageView::setContinuousViewMode | ( | bool | continuous | ) |
Definition at line 255 of file pageView.cpp.
void PageView::setFullScreenMode | ( | bool | fullScreen | ) | [slot] |
Definition at line 276 of file pageView.cpp.
void PageView::setNrColumns | ( | Q_UINT8 | cols | ) |
Sets the number of columns into which the widgets are aligned.
If nothing is set, '2' is the default.
Definition at line 245 of file pageView.cpp.
void PageView::setNrRows | ( | Q_UINT8 | rows | ) |
Definition at line 250 of file pageView.cpp.
bool PageView::singlePageFullScreenMode | ( | ) |
Definition at line 260 of file pageView.cpp.
void PageView::slotEnableMoveTool | ( | bool | enable | ) | [slot] |
Definition at line 588 of file pageView.cpp.
void PageView::slotShowScrollbars | ( | bool | status | ) | [slot] |
void PageView::viewportPaintEvent | ( | QPaintEvent * | e | ) | [protected] |
void PageView::viewportResizeEvent | ( | QResizeEvent * | e | ) | [protected] |
Reimplemented from QScrollView to make sure that the page is centered when it fits in the viewport.
Reimplemented from QScrollView.
Definition at line 233 of file pageView.cpp.
void PageView::viewSizeChanged | ( | const QSize & | size | ) | [signal] |
void PageView::wheelEventReceived | ( | QWheelEvent * | ) | [signal] |
This signal is emitted when the scrollView receives a mouse wheel event.
The documentation for this class was generated from the following files: