KDDockWidgets API Documentation 2.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
KDDockWidgetsBindings_wrappersNS::LayoutSaver_wrapper Class Reference

#include <LayoutSaver_c.h>

Inheritance diagram for KDDockWidgetsBindings_wrappersNS::LayoutSaver_wrapper:
Inheritance graph
[legend]
Collaboration diagram for KDDockWidgetsBindings_wrappersNS::LayoutSaver_wrapper:
Collaboration graph
[legend]

Public Member Functions

 LayoutSaver_wrapper ()
 
 ~LayoutSaver_wrapper ()
 
bool restoreFromFile (const QString &jsonFilename)
 
bool saveToFile (const QString &jsonFilename)
 
- Public Member Functions inherited from KDDockWidgets::LayoutSaver
 LayoutSaver (RestoreOptions options=RestoreOption_None)
 Constructor. Construction on the stack is suggested.
 
 ~LayoutSaver ()
 Destructor.
 
Private * dptr () const
 
Vector< Core::DockWidget * > restoredDockWidgets () const
 returns a list of dock widgets which were restored since the last restoreLayout() or restoreFromFile()
 
bool restoreFromFile (const QString &jsonFilename)
 restores the layout from a JSON file
 
bool restoreLayout (const QByteArray &)
 restores the layout from a byte array All MainWindows and DockWidgets should have been created before calling this function.
 
bool saveToFile (const QString &jsonFilename)
 saves the layout to JSON file
 
QByteArray serializeLayout () const
 saves the layout into a byte array
 
void setAffinityNames (const Vector< QString > &affinityNames)
 Sets the list of affinity names for which restore and save will be applied on. Allows to save/restore only a subset of the windows. Empty by default, all windows are subject to save/restore. Any window with empty affinity will also be subject to save/restore, regardless of affinityNames.
 

Static Public Member Functions

static bool restoreInProgress ()
 
- Static Public Member Functions inherited from KDDockWidgets::LayoutSaver
static bool restoreInProgress ()
 returns whether a restore (restoreLayout) is in progress
 

Detailed Description

Definition at line 16 of file LayoutSaver_c.h.

Constructor & Destructor Documentation

◆ ~LayoutSaver_wrapper()

KDDockWidgetsBindings_wrappersNS::LayoutSaver_wrapper::~LayoutSaver_wrapper ( )

Definition at line 48 of file LayoutSaver_c.cpp.

◆ LayoutSaver_wrapper()

KDDockWidgetsBindings_wrappersNS::LayoutSaver_wrapper::LayoutSaver_wrapper ( )

Definition at line 32 of file LayoutSaver_c.cpp.

Member Function Documentation

◆ restoreFromFile()

bool KDDockWidgetsBindings_wrappersNS::LayoutSaver_wrapper::restoreFromFile ( const QString jsonFilename)

Definition at line 36 of file LayoutSaver_c.cpp.

◆ restoreInProgress()

bool KDDockWidgetsBindings_wrappersNS::LayoutSaver_wrapper::restoreInProgress ( )
static

◆ saveToFile()

bool KDDockWidgetsBindings_wrappersNS::LayoutSaver_wrapper::saveToFile ( const QString jsonFilename)

Definition at line 44 of file LayoutSaver_c.cpp.


The documentation for this class was generated from the following files:

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDDockWidgets
Advanced Dock Widget Framework for Qt
https://www.kdab.com/development-resources/qt-tools/kddockwidgets/
Generated by doxygen 1.9.8