kexi

KexiScrollView Class Reference

#include <kexiscrollview.h>

Inheritance diagram for KexiScrollView:

KexiFormScrollView KexiReportScrollView List of all members.

Detailed Description

The scrollview which includes KexiDBForm.

It allows to resize its m_widget, following snapToGrid setting. Its contents is resized so the widget can always be resized.

Definition at line 34 of file kexiscrollview.h.


Public Slots

virtual void refreshContentsSize ()

Signals

void outerAreaClicked ()
void resizingStarted ()
void resizingEnded ()

Public Member Functions

 KexiScrollView (QWidget *parent, bool preview)
virtual ~KexiScrollView ()
void setWidget (QWidget *w)
void setSnapToGrid (bool enable, int gridSize=10)
void setResizingEnabled (bool enabled)
void setRecordNavigatorVisible (bool visible)
void setOuterAreaIndicatorVisible (bool visible)
void refreshContentsSizeLater (bool horizontal, bool vertical)
void updateNavPanelGeometry ()
KexiRecordNavigatorrecordNavigator () const
bool preview () const

Protected Member Functions

virtual void contentsMousePressEvent (QMouseEvent *ev)
virtual void contentsMouseReleaseEvent (QMouseEvent *ev)
virtual void contentsMouseMoveEvent (QMouseEvent *ev)
virtual void drawContents (QPainter *p, int clipx, int clipy, int clipw, int cliph)
virtual void leaveEvent (QEvent *e)
virtual void setHBarGeometry (QScrollBar &hbar, int x, int y, int w, int h)
void setupPixmapBuffer (QPixmap &pixmap, const QString &text, int lines)

Protected Attributes

bool m_resizing
bool m_enableResizing
QWidget * m_widget
int m_gridSize
QFont m_helpFont
QColor m_helpColor
QTimer m_delayedResize
QScrollView::ScrollBarMode m_vsmode
QScrollView::ScrollBarMode m_hsmode
bool m_snapToGrid: 1
bool m_preview: 1
bool m_smodeSet: 1
bool m_outerAreaVisible: 1
KexiRecordNavigatorm_scrollViewNavPanel

Constructor & Destructor Documentation

KexiScrollView::KexiScrollView QWidget *  parent,
bool  preview
 

Todo:
allow to hide navigator

Definition at line 47 of file kexiscrollview.cpp.


Member Function Documentation

void KexiScrollView::refreshContentsSize  )  [virtual, slot]
 

Make sure there is a 300px margin around the form contents to allow resizing.

Reimplemented in KexiFormScrollView.

Definition at line 138 of file kexiscrollview.cpp.


Member Data Documentation

QScrollView::ScrollBarMode KexiScrollView::m_vsmode [protected]
 

for refreshContentsSizeLater()

Definition at line 84 of file kexiscrollview.h.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys