Slots públicos |
virtual void | widgetChanged (QObject *w) |
virtual void | currentToolChanged () |
virtual void | visibilityChanged () |
virtual void | modificationChanged (bool m) |
Señales |
void | showProperties (QObject *w) |
void | updateProperties (QObject *w) |
void | undoRedoChanged (bool undoAvailable, bool redoAvailable, const QString &undoCmd, const QString &redoCmd) |
void | selectionChanged () |
void | modificationChanged (bool m, FormWindow *fw) |
void | modificationChanged (bool m, const QString &s) |
void | fileNameChanged (const QString &s, FormWindow *fw) |
Métodos públicos |
| FormWindow (FormFile *f, MainWindow *mw, QWidget *parent, const char *name=0) |
| FormWindow (FormFile *f, QWidget *parent, const char *name=0) |
| ~FormWindow () |
void | init () |
virtual void | setMainWindow (MainWindow *w) |
virtual QString | fileName () const |
virtual void | setFileName (const QString &fn) |
virtual QPoint | grid () const |
virtual QPoint | gridPoint (const QPoint &p) |
virtual CommandHistory * | commandHistory () |
virtual void | undo () |
virtual void | redo () |
virtual QString | copy () |
virtual void | paste (const QString &cb, QWidget *parent) |
virtual void | lowerWidgets () |
virtual void | raiseWidgets () |
virtual void | checkAccels () |
virtual void | layoutHorizontal () |
virtual void | layoutVertical () |
virtual void | layoutHorizontalSplit () |
virtual void | layoutVerticalSplit () |
virtual void | layoutGrid () |
virtual void | layoutHorizontalContainer (QWidget *w) |
virtual void | layoutVerticalContainer (QWidget *w) |
virtual void | layoutGridContainer (QWidget *w) |
virtual void | breakLayout (QWidget *w) |
virtual void | selectWidget (QObject *w, bool select=TRUE) |
virtual void | selectAll () |
virtual void | updateSelection (QWidget *w) |
virtual void | raiseSelection (QWidget *w) |
virtual void | repaintSelection (QWidget *w) |
virtual void | clearSelection (bool changePropertyDisplay=TRUE) |
virtual void | selectWidgets () |
bool | isWidgetSelected (QObject *w) |
virtual void | updateChildSelections (QWidget *w) |
virtual void | raiseChildSelections (QWidget *w) |
virtual void | emitUpdateProperties (QObject *w) |
virtual void | emitShowProperties (QObject *w=0) |
virtual void | emitSelectionChanged () |
virtual void | setPropertyShowingBlocked (bool b) |
bool | isPropertyShowingBlocked () const |
virtual QLabel * | sizePreview () const |
virtual void | checkPreviewGeometry (QRect &r) |
virtual QPtrDict< QWidget > * | widgets () |
virtual QWidgetList | selectedWidgets () const |
virtual QWidget * | designerWidget (QObject *o) const |
virtual void | handleContextMenu (QContextMenuEvent *e, QWidget *w) |
virtual void | handleMousePress (QMouseEvent *e, QWidget *w) |
virtual void | handleMouseRelease (QMouseEvent *e, QWidget *w) |
virtual void | handleMouseDblClick (QMouseEvent *e, QWidget *w) |
virtual void | handleMouseMove (QMouseEvent *e, QWidget *w) |
virtual void | handleKeyPress (QKeyEvent *e, QWidget *w) |
virtual void | handleKeyRelease (QKeyEvent *e, QWidget *w) |
virtual void | updateUndoInfo () |
virtual MainWindow * | mainWindow () const |
bool | checkCustomWidgets () |
virtual void | insertWidget (QWidget *w, bool checkName=FALSE) |
virtual void | removeWidget (QWidget *w) |
virtual void | deleteWidgets () |
virtual void | editAdjustSize () |
virtual void | editConnections () |
virtual int | numSelectedWidgets () const |
virtual int | numVisibleWidgets () const |
virtual bool | hasInsertedChildren (QWidget *w) const |
virtual QWidget * | currentWidget () const |
virtual bool | unify (QObject *w, QString &s, bool changeIt) |
virtual bool | isCustomWidgetUsed (MetaDataBase::CustomWidget *w) |
virtual bool | isDatabaseWidgetUsed () const |
virtual bool | isDatabaseAware () const |
virtual QPoint | mapToForm (const QWidget *w, const QPoint &) const |
bool | isMainContainer (QObject *w) const |
bool | isCentralWidget (QObject *w) const |
QWidget * | mainContainer () const |
void | setMainContainer (QWidget *w) |
void | paintGrid (QWidget *w, QPaintEvent *e) |
bool | savePixmapInline () const |
QString | pixmapLoaderFunction () const |
void | setSavePixmapInline (bool b) |
void | setPixmapLoaderFunction (const QString &func) |
bool | savePixmapInProject () const |
void | setSavePixmapInProject (bool b) |
void | setToolFixed () |
void | setActiveObject (QObject *o) |
QPtrList< QAction > & | actionList () |
QAction * | findAction (const QString &name) |
void | setProject (Project *pro) |
Project * | project () const |
void | killAccels (QObject *top) |
DesignerFormWindow * | iFace () |
int | layoutDefaultSpacing () const |
int | layoutDefaultMargin () const |
void | setLayoutDefaultSpacing (int s) |
void | setLayoutDefaultMargin (int s) |
QString | spacingFunction () const |
QString | marginFunction () const |
void | setSpacingFunction (const QString &func) |
void | setMarginFunction (const QString &func) |
bool | hasLayoutFunctions () const |
void | hasLayoutFunctions (bool b) |
void | initSlots () |
FormFile * | formFile () const |
void | setFormFile (FormFile *f) |
bool | isFake () const |
bool | canBeBuddy (const QWidget *) const |
Métodos protegidos |
virtual void | closeEvent (QCloseEvent *e) |
virtual void | focusInEvent (QFocusEvent *e) |
virtual void | focusOutEvent (QFocusEvent *e) |
virtual void | resizeEvent (QResizeEvent *e) |
void | mouseDoubleClickEvent (QMouseEvent *e) |
Propiedades |
QString | fileName |
Editor window for a form.
The FormWindow is the widget which is used as editor for forms. It handles inserting, deleting, moving, resizing, etc. of widgets.
Normally multiple formwindows are used at the same time in the Designer. So each formwindow has its own undo/redo buffer, etc.
Also the formwindow has some signals to inform e.g. about selection changes which is interesting for the PropertyEditor.
For handling the events of the child widgets (moving, etc.) the handleMousePress(), etc. functions are called from the application event filter which is implemented in MainWindow::eventFilter().
void FormWindow::focusInEvent |
( |
QFocusEvent * |
| ) |
[protected, virtual] |
void FormWindow::focusOutEvent |
( |
QFocusEvent * |
| ) |
[protected, virtual] |
void FormWindow::resizeEvent |
( |
QResizeEvent * |
| ) |
[protected, virtual] |
This event handler can be reimplemented in a subclass to receive widget resize events. When resizeEvent() is called, the widget already has its new geometry. The old size is accessible through QResizeEvent::oldSize().
The widget will be erased and receive a paint event immediately after processing the resize event. No drawing need be (or should be) done inside this handler.
Widgets that have been created with the WNoAutoErase
flag will not be erased. Nevertheless, they will receive a paint event for their entire area afterwards. Again, no drawing needs to be done inside this handler.
The default implementation calls updateMask() if the widget has automatic masking enabled.
- Ver también:
- moveEvent(), event(), resize(), QResizeEvent, paintEvent()
Reimplementado de QWidget.
La documentación para esta clase fue generada a partir de los siguientes ficheros: