21#ifndef KEXISCROLLVIEW_H
22#define KEXISCROLLVIEW_H
24#include <tqscrollview.h>
43 void setWidget(TQWidget *w);
44 void setSnapToGrid( bool enable, int gridSize=10);
46 void setResizingEnabled( bool enabled) { m_enableResizing = enabled; }
47 void setRecordNavigatorVisible( bool visible);
49 void setOuterAreaIndicatorVisible( bool visible) { m_outerAreaVisible = visible; }
51 void refreshContentsSizeLater( bool horizontal, bool vertical);
52 void updateNavPanelGeometry();
56 inline bool preview() const { return m_preview; }
60 virtual void refreshContentsSize();
63 void outerAreaClicked();
64 void resizingStarted();
68 virtual void contentsMousePressEvent(TQMouseEvent * ev);
69 virtual void contentsMouseReleaseEvent(TQMouseEvent * ev);
70 virtual void contentsMouseMoveEvent(TQMouseEvent * ev);
71 virtual void drawContents( TQPainter * p, int clipx, int clipy, int clipw, int cliph );
72 virtual void leaveEvent( TQEvent *e );
73 virtual void setHBarGeometry( TQScrollBar & hbar, int x, int y, int w, int h );
74 void setupPixmapBuffer(TQPixmap& pixmap, const TQString& text, int lines);
77 bool m_enableResizing;
83 TQTimer m_delayedResize;
85 TQScrollView::ScrollBarMode m_vsmode, m_hsmode;
86 bool m_snapToGrid : 1;
89 bool m_outerAreaVisible : 1;
KexiRecordNavigator class provides a record navigator.
|