1// abstractformwindowmanager.sip generated by MetaSIP 2// 3// This file is part of the QtDesigner Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23class QDesignerFormWindowManagerInterface : QObject /Abstract/ 24{ 25%TypeHeaderCode 26#include <abstractformwindowmanager.h> 27%End 28 29public: 30 explicit QDesignerFormWindowManagerInterface(QObject *parent /TransferThis/ = 0); 31 virtual ~QDesignerFormWindowManagerInterface(); 32 QAction *actionFormLayout() const /Transfer/; 33 QAction *actionSimplifyLayout() const /Transfer/; 34 virtual QDesignerFormWindowInterface *activeFormWindow() const = 0; 35 virtual int formWindowCount() const = 0; 36 virtual QDesignerFormWindowInterface *formWindow(int index) const = 0 /Transfer/; 37 virtual QDesignerFormWindowInterface *createFormWindow(QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0) = 0; 38 virtual QDesignerFormEditorInterface *core() const = 0; 39 40signals: 41 void formWindowAdded(QDesignerFormWindowInterface *formWindow); 42 void formWindowRemoved(QDesignerFormWindowInterface *formWindow); 43 void activeFormWindowChanged(QDesignerFormWindowInterface *formWindow); 44 void formWindowSettingsChanged(QDesignerFormWindowInterface *fw); 45 46public slots: 47 virtual void addFormWindow(QDesignerFormWindowInterface *formWindow) = 0; 48 virtual void removeFormWindow(QDesignerFormWindowInterface *formWindow) = 0; 49 virtual void setActiveFormWindow(QDesignerFormWindowInterface *formWindow) = 0; 50 51public: 52 enum Action 53 { 54 CutAction, 55 CopyAction, 56 PasteAction, 57 DeleteAction, 58 SelectAllAction, 59 LowerAction, 60 RaiseAction, 61 UndoAction, 62 RedoAction, 63 HorizontalLayoutAction, 64 VerticalLayoutAction, 65 SplitHorizontalAction, 66 SplitVerticalAction, 67 GridLayoutAction, 68 FormLayoutAction, 69 BreakLayoutAction, 70 AdjustSizeAction, 71 SimplifyLayoutAction, 72 DefaultPreviewAction, 73 FormWindowSettingsDialogAction, 74 }; 75 76 enum ActionGroup 77 { 78 StyledPreviewActionGroup, 79 }; 80 81 virtual QAction *action(QDesignerFormWindowManagerInterface::Action action) const = 0 /Transfer/; 82 virtual QActionGroup *actionGroup(QDesignerFormWindowManagerInterface::ActionGroup actionGroup) const = 0 /Transfer/; 83 84public slots: 85 virtual void showPreview() = 0; 86 virtual void closeAllPreviews() = 0; 87 virtual void showPluginDialog() = 0; 88}; 89