Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QDesignerFormWindowManagerInterface Class Reference
[QtDesigner module]

The QDesignerFormWindowManagerInterface class allows you to manipulate the collection of form windows in Qt Designer, and control Qt Designer's form editing actions. More...

#include <QDesignerFormWindowManagerInterface>

Inherits QObject.

Public Functions

  • 28 public functions inherited from QObject

Public Slots

  • 1 public slot inherited from QObject

Signals

Additional Inherited Members

  • 1 property inherited from QObject
  • 4 static public members inherited from QObject
  • 7 protected functions inherited from QObject

Detailed Description

The QDesignerFormWindowManagerInterface class allows you to manipulate the collection of form windows in Qt Designer, and control Qt Designer's form editing actions.

QDesignerFormWindowManagerInterface is not intended to be instantiated directly. Qt Designer uses the form window manager to control the various form windows in its workspace. You can retrieve an interface to Qt Designer's form window manager using the QDesignerFormEditorInterface::formWindowManager() function. For example:

    QDesignerFormWindowManagerInterface *manager = 0;
    QDesignerFormWindowInterface *formWindow = 0;

    manager = formEditor->formWindowManager();
    formWindow = manager->formWindow(0);

    manager->setActiveFormWindow(formWindow);

When implementing a custom widget plugin, a pointer to Qt Designer's current QDesignerFormEditorInterface object (formEditor in the example above) is provided by the QDesignerCustomWidgetInterface::initialize() function's parameter. You must subclass the QDesignerCustomWidgetInterface to expose your plugin to Qt Designer.

The form window manager interface provides the createFormWindow() function that enables you to create a new form window which you can add to the collection of form windows that the manager maintains, using the addFormWindow() slot. It also provides the formWindowCount() function returning the number of form windows currently under the manager's control, the formWindow() function returning the form window associated with a given index, and the activeFormWindow() function returning the currently selected form window. The removeFormWindow() slot allows you to reduce the number of form windows the manager must maintain, and the setActiveFormWindow() slot allows you to change the form window focus in Qt Designer's workspace.

In addition, QDesignerFormWindowManagerInterface contains a collection of functions that enables you to intervene and control Qt Designer's form editing actions. All these functions return the original action, making it possible to propagate the function further after intervention.

Finally, the interface provides three signals which are emitted when a form window is added, when the currently selected form window changes, or when a form window is removed, respectively. All the signals carry the form window in question as their parameter.

See also QDesignerFormEditorInterface and QDesignerFormWindowInterface.


Member Function Documentation

QDesignerFormWindowManagerInterface::QDesignerFormWindowManagerInterface ( QObject * parent = 0 )

Constructs an interface with the given parent for the form window manager.

QDesignerFormWindowManagerInterface::~QDesignerFormWindowManagerInterface ()   [virtual]

Destroys the interface for the form window manager.

QAction * QDesignerFormWindowManagerInterface::actionAdjustSize () const   [virtual]

Allows you to intervene and control Qt Designer's "adjust size" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionBreakLayout () const   [virtual]

Allows you to intervene and control Qt Designer's "break layout" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionCopy () const   [virtual]

Allows you to intervene and control Qt Designer's "copy" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionCut () const   [virtual]

Allows you to intervene and control Qt Designer's "cut" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionDelete () const   [virtual]

Allows you to intervene and control Qt Designer's "delete" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionGridLayout () const   [virtual]

Allows you to intervene and control a request for grid layout for a form window in Qt Designer's workspace. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionHorizontalLayout () const   [virtual]

Allows you to intervene and control a request for horizontal layout for a form window in Qt Designer's workspace. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionLower () const   [virtual]

Allows you to intervene and control the action of lowering a form window in Qt Designer's workspace. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionPaste () const   [virtual]

Allows you to intervene and control Qt Designer's "paste" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionRaise () const   [virtual]

Allows you to intervene and control the action of raising of a form window in Qt Designer's workspace. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionRedo () const   [virtual]

Allows you to intervene and control Qt Designer's "redo" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionSelectAll () const   [virtual]

Allows you to intervene and control Qt Designer's "select all" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionSplitHorizontal () const   [virtual]

Allows you to intervene and control Qt Designer's "split horizontal" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionSplitVertical () const   [virtual]

Allows you to intervene and control Qt Designer's "split vertical" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionUndo () const   [virtual]

Allows you to intervene and control Qt Designer's "undo" action. The function returns the original action.

See also QAction.

QAction * QDesignerFormWindowManagerInterface::actionVerticalLayout () const   [virtual]

Allows you to intervene and control a request for vertical layout for a form window in Qt Designer's workspace. The function returns the original action.

See also QAction.

QDesignerFormWindowInterface * QDesignerFormWindowManagerInterface::activeFormWindow () const   [virtual]

Returns the currently active form window in Qt Designer's workspace.

See also setActiveFormWindow() and removeFormWindow().

void QDesignerFormWindowManagerInterface::activeFormWindowChanged ( QDesignerFormWindowInterface * formWindow )   [signal]

This signal is emitted when the contents of the currently active form window in Qt Designer's workspace changed. A pointer to the currently active formWindow is passed as an argument.

See also activeFormWindow().

void QDesignerFormWindowManagerInterface::addFormWindow ( QDesignerFormWindowInterface * formWindow )   [virtual slot]

Adds the given formWindow to the collection of windows that Qt Designer's form window manager maintains.

See also formWindowAdded().

QDesignerFormEditorInterface * QDesignerFormWindowManagerInterface::core () const   [virtual]

Returns a pointer to Qt Designer's current QDesignerFormEditorInterface object.

QDesignerFormWindowInterface * QDesignerFormWindowManagerInterface::createFormWindow ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )   [virtual]

Creates a form window with the given parent and the given window flags.

See also addFormWindow().

QDesignerFormWindowInterface * QDesignerFormWindowManagerInterface::formWindow ( int index ) const   [virtual]

Returns the form window at the given index.

See also setActiveFormWindow() and removeFormWindow().

void QDesignerFormWindowManagerInterface::formWindowAdded ( QDesignerFormWindowInterface * formWindow )   [signal]

This signal is emitted when a new form window is added to the collection of windows that Qt Designer's form window manager maintains. A pointer to the new formWindow is passed as an argument.

See also addFormWindow() and setActiveFormWindow().

int QDesignerFormWindowManagerInterface::formWindowCount () const   [virtual]

Returns the number of form windows maintained by Qt Designer's form window manager.

void QDesignerFormWindowManagerInterface::formWindowRemoved ( QDesignerFormWindowInterface * formWindow )   [signal]

This signal is emitted when a form window is removed from the collection of windows that Qt Designer's form window manager maintains. A pointer to the removed formWindow is passed as an argument.

See also removeFormWindow().

void QDesignerFormWindowManagerInterface::removeFormWindow ( QDesignerFormWindowInterface * formWindow )   [virtual slot]

Removes the given formWindow from the collection of windows that Qt Designer's form window manager maintains.

See also formWindow() and formWindowRemoved().

void QDesignerFormWindowManagerInterface::setActiveFormWindow ( QDesignerFormWindowInterface * formWindow )   [virtual slot]

Sets the given formWindow to be the currently active form window in Qt Designer's workspace.

See also activeFormWindow() and activeFormWindowChanged().

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 48
  4. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  5. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 13
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
Page suivante

Le Qt Quarterly au hasard

Logo

Poppler : afficher des fichiers PDF avec Qt

Qt Quarterly est la revue trimestrielle proposée par Nokia et à destination des développeurs Qt. Ces articles d'une grande qualité technique sont rédigés par des experts Qt. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 4.1
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web