kexi

#include <kexiscrollview.h>

Inheritance diagram for KexiScrollView:
KexiFormScrollView

Public Slots

virtual void refreshContentsSize ()
 

Signals

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

Public Member Functions

 KexiScrollView (TQWidget *parent, bool preview)
 
void setWidget (TQWidget *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 ()
 
KexiRecordNavigator * recordNavigator () const
 
bool preview () const
 

Protected Member Functions

virtual void contentsMousePressEvent (TQMouseEvent *ev)
 
virtual void contentsMouseReleaseEvent (TQMouseEvent *ev)
 
virtual void contentsMouseMoveEvent (TQMouseEvent *ev)
 
virtual void drawContents (TQPainter *p, int clipx, int clipy, int clipw, int cliph)
 
virtual void leaveEvent (TQEvent *e)
 
virtual void setHBarGeometry (TQScrollBar &hbar, int x, int y, int w, int h)
 
void setupPixmapBuffer (TQPixmap &pixmap, const TQString &text, int lines)
 

Protected Attributes

bool m_resizing
 
bool m_enableResizing
 
TQWidget * m_widget
 
int m_gridSize
 
TQFont m_helpFont
 
TQColor m_helpColor
 
TQTimer m_delayedResize
 
TQScrollView::ScrollBarMode m_vsmode
 
TQScrollView::ScrollBarMode m_hsmode
 
bool m_snapToGrid: 1
 
bool m_preview: 1
 
bool m_smodeSet: 1
 
bool m_outerAreaVisible: 1
 
KexiRecordNavigator * m_scrollViewNavPanel
 

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.

Constructor & Destructor Documentation

◆ KexiScrollView()

KexiScrollView::KexiScrollView ( TQWidget *  parent,
bool  preview 
)
Todo:
allow to hide navigator

Definition at line 47 of file kexiscrollview.cpp.

◆ ~KexiScrollView()

KexiScrollView::~KexiScrollView ( )
virtual

Definition at line 87 of file kexiscrollview.cpp.

Member Function Documentation

◆ contentsMouseMoveEvent()

void KexiScrollView::contentsMouseMoveEvent ( TQMouseEvent *  ev)
protectedvirtual

Definition at line 236 of file kexiscrollview.cpp.

◆ contentsMousePressEvent()

void KexiScrollView::contentsMousePressEvent ( TQMouseEvent *  ev)
protectedvirtual

Definition at line 202 of file kexiscrollview.cpp.

◆ contentsMouseReleaseEvent()

void KexiScrollView::contentsMouseReleaseEvent ( TQMouseEvent *  ev)
protectedvirtual

Definition at line 225 of file kexiscrollview.cpp.

◆ drawContents()

void KexiScrollView::drawContents ( TQPainter *  p,
int  clipx,
int  clipy,
int  clipw,
int  cliph 
)
protectedvirtual

Definition at line 338 of file kexiscrollview.cpp.

◆ leaveEvent()

void KexiScrollView::leaveEvent ( TQEvent *  e)
protectedvirtual

Definition at line 381 of file kexiscrollview.cpp.

◆ preview()

bool KexiScrollView::preview ( ) const
inline

Definition at line 56 of file kexiscrollview.h.

◆ recordNavigator()

KexiRecordNavigator * KexiScrollView::recordNavigator ( ) const

Definition at line 401 of file kexiscrollview.cpp.

◆ refreshContentsSize

void KexiScrollView::refreshContentsSize ( )
virtualslot

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

Definition at line 138 of file kexiscrollview.cpp.

◆ refreshContentsSizeLater()

void KexiScrollView::refreshContentsSizeLater ( bool  horizontal,
bool  vertical 
)

Definition at line 119 of file kexiscrollview.cpp.

◆ setHBarGeometry()

void KexiScrollView::setHBarGeometry ( TQScrollBar &  hbar,
int  x,
int  y,
int  w,
int  h 
)
protectedvirtual

Definition at line 388 of file kexiscrollview.cpp.

◆ setOuterAreaIndicatorVisible()

void KexiScrollView::setOuterAreaIndicatorVisible ( bool  visible)
inline

Definition at line 49 of file kexiscrollview.h.

◆ setRecordNavigatorVisible()

void KexiScrollView::setRecordNavigatorVisible ( bool  visible)

Definition at line 99 of file kexiscrollview.cpp.

◆ setResizingEnabled()

void KexiScrollView::setResizingEnabled ( bool  enabled)
inline

Definition at line 46 of file kexiscrollview.h.

◆ setSnapToGrid()

void KexiScrollView::setSnapToGrid ( bool  enable,
int  gridSize = 10 
)

Definition at line 110 of file kexiscrollview.cpp.

◆ setupPixmapBuffer()

void KexiScrollView::setupPixmapBuffer ( TQPixmap &  pixmap,
const TQString &  text,
int  lines 
)
protected

Definition at line 318 of file kexiscrollview.cpp.

◆ setWidget()

void KexiScrollView::setWidget ( TQWidget *  w)

Definition at line 92 of file kexiscrollview.cpp.

◆ updateNavPanelGeometry()

void KexiScrollView::updateNavPanelGeometry ( )

Definition at line 195 of file kexiscrollview.cpp.

Member Data Documentation

◆ m_delayedResize

TQTimer KexiScrollView::m_delayedResize
protected

Definition at line 83 of file kexiscrollview.h.

◆ m_enableResizing

bool KexiScrollView::m_enableResizing
protected

Definition at line 77 of file kexiscrollview.h.

◆ m_gridSize

int KexiScrollView::m_gridSize
protected

Definition at line 80 of file kexiscrollview.h.

◆ m_helpColor

TQColor KexiScrollView::m_helpColor
protected

Definition at line 82 of file kexiscrollview.h.

◆ m_helpFont

TQFont KexiScrollView::m_helpFont
protected

Definition at line 81 of file kexiscrollview.h.

◆ m_hsmode

TQScrollView::ScrollBarMode KexiScrollView::m_hsmode
protected

Definition at line 85 of file kexiscrollview.h.

◆ m_outerAreaVisible

bool KexiScrollView::m_outerAreaVisible
protected

Definition at line 89 of file kexiscrollview.h.

◆ m_preview

bool KexiScrollView::m_preview
protected

Definition at line 87 of file kexiscrollview.h.

◆ m_resizing

bool KexiScrollView::m_resizing
protected

Definition at line 76 of file kexiscrollview.h.

◆ m_scrollViewNavPanel

KexiRecordNavigator* KexiScrollView::m_scrollViewNavPanel
protected

Definition at line 90 of file kexiscrollview.h.

◆ m_smodeSet

bool KexiScrollView::m_smodeSet
protected

Definition at line 88 of file kexiscrollview.h.

◆ m_snapToGrid

bool KexiScrollView::m_snapToGrid
protected

Definition at line 86 of file kexiscrollview.h.

◆ m_vsmode

TQScrollView::ScrollBarMode KexiScrollView::m_vsmode
protected

for refreshContentsSizeLater()

Definition at line 85 of file kexiscrollview.h.

◆ m_widget

TQWidget* KexiScrollView::m_widget
protected

Definition at line 78 of file kexiscrollview.h.


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