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

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.

Inherited by: qdesigner_internal::QDesignerFormWindowManager.

Public Types

enum Action { CutAction, CopyAction, PasteAction, DeleteAction, ..., FormWindowSettingsDialogAction }
enum ActionGroup { StyledPreviewActionGroup }

Public Functions

QDesignerFormWindowManagerInterface(QObject * parent = 0)
virtual ~QDesignerFormWindowManagerInterface()
virtual QAction * action(Action action) const = 0
virtual QActionGroup * actionGroup(ActionGroup actionGroup) const = 0
virtual QDesignerFormWindowInterface * activeFormWindow() const = 0
virtual QDesignerFormEditorInterface * core() const = 0
virtual QDesignerFormWindowInterface * createFormWindow(QWidget * parent = 0, Qt::WindowFlags flags = 0) = 0
virtual QPixmap createPreviewPixmap() const = 0
virtual QDesignerFormWindowInterface * formWindow(int index) const = 0
virtual int formWindowCount() const = 0
  • 31 public functions inherited from QObject

Public Slots

virtual void addFormWindow(QDesignerFormWindowInterface * formWindow) = 0
virtual void closeAllPreviews() = 0
virtual void removeFormWindow(QDesignerFormWindowInterface * formWindow) = 0
virtual void setActiveFormWindow(QDesignerFormWindowInterface * formWindow) = 0
virtual void showPluginDialog() = 0
virtual void showPreview() = 0
  • 1 public slot inherited from QObject

Signals

void activeFormWindowChanged(QDesignerFormWindowInterface * formWindow)
void formWindowAdded(QDesignerFormWindowInterface * formWindow)
void formWindowRemoved(QDesignerFormWindowInterface * formWindow)
void formWindowSettingsChanged(QDesignerFormWindowInterface * formWindow)

Additional Inherited Members

  • 1 property inherited from QObject
  • 11 static public members inherited from QObject
  • 9 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 Type Documentation

enum QDesignerFormWindowManagerInterface::Action

Specifies an action of Qt Designer.

ConstantValueDescription
QDesignerFormWindowManagerInterface::CutAction100Clipboard Cut
QDesignerFormWindowManagerInterface::CopyAction101Clipboard Copy
QDesignerFormWindowManagerInterface::PasteAction102Clipboard Paste
QDesignerFormWindowManagerInterface::DeleteAction103Clipboard Delete
QDesignerFormWindowManagerInterface::SelectAllAction104Select All
QDesignerFormWindowManagerInterface::LowerAction200Lower current widget
QDesignerFormWindowManagerInterface::RaiseAction201Raise current widget
QDesignerFormWindowManagerInterface::UndoAction300Undo
QDesignerFormWindowManagerInterface::RedoAction301Redo
QDesignerFormWindowManagerInterface::HorizontalLayoutAction400Lay out using QHBoxLayout
QDesignerFormWindowManagerInterface::VerticalLayoutAction401Lay out using QVBoxLayout
QDesignerFormWindowManagerInterface::SplitHorizontalAction402Lay out in horizontal QSplitter
QDesignerFormWindowManagerInterface::SplitVerticalAction403Lay out in vertical QSplitter
QDesignerFormWindowManagerInterface::GridLayoutAction404Lay out using QGridLayout
QDesignerFormWindowManagerInterface::FormLayoutAction405Lay out using QFormLayout
QDesignerFormWindowManagerInterface::BreakLayoutAction406Break existing layout
QDesignerFormWindowManagerInterface::AdjustSizeAction407Adjust size
QDesignerFormWindowManagerInterface::SimplifyLayoutAction408Simplify QGridLayout or QFormLayout
QDesignerFormWindowManagerInterface::DefaultPreviewAction500Create a preview in default style
QDesignerFormWindowManagerInterface::FormWindowSettingsDialogAction600Show dialog with form settings

This enum was introduced or modified in Qt 5.0.

See also action().

enum QDesignerFormWindowManagerInterface::ActionGroup

Specifies an action group of Qt Designer.

ConstantValueDescription
QDesignerFormWindowManagerInterface::StyledPreviewActionGroup100Action group containing styled preview actions

This enum was introduced or modified in Qt 5.0.

See also actionGroup().

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::action(Action action) const [pure virtual]

Returns the action specified by the enumeration value action.

Obsoletes the action accessors of Qt 4.X.

This function was introduced in Qt 5.0.

QActionGroup * QDesignerFormWindowManagerInterface::actionGroup(ActionGroup actionGroup) const [pure virtual]

Returns the action group specified by the enumeration value actionGroup.

This function was introduced in Qt 5.0.

QDesignerFormWindowInterface * QDesignerFormWindowManagerInterface::activeFormWindow() const [pure 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) [pure virtual slot]

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

See also formWindowAdded().

void QDesignerFormWindowManagerInterface::closeAllPreviews() [pure virtual slot]

Close all currently open previews.

This function was introduced in Qt 5.0.

See also showPreview().

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

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

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

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

See also addFormWindow().

QPixmap QDesignerFormWindowManagerInterface::createPreviewPixmap() const [pure virtual]

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

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 [pure 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::formWindowSettingsChanged(QDesignerFormWindowInterface * formWindow) [signal]

This signal is emitted when the settings of the form window change. It can be used to update window titles, etc. accordingly.

See also FormWindowSettingsDialogAction.

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

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

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

See also activeFormWindow() and activeFormWindowChanged().

void QDesignerFormWindowManagerInterface::showPluginDialog() [pure virtual slot]

Opens a dialog showing the plugins loaded by Qt Designer's and its plugin load failures.

This function was introduced in Qt 5.0.

void QDesignerFormWindowManagerInterface::showPreview() [pure virtual slot]

Show a preview of the current form using the default parameters.

This function was introduced in Qt 5.0.

See also closeAllPreviews().

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 5.0-snapshot
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