DockHandler Class Reference

Public Slots

void viewChanged (ViewFrame *frame)
 
void visibilityChanged (bool visible)
 
void topLevelChanged (bool topLevel)
 
void removeWidget (QObject *object)
 

Signals

void notifyVisibilityChanged ()
 

Public Member Functions

 DockHandler (QObject *parent, int windowIndex)
 
void close ()
 
void notifyRestoredFromState ()
 
void reset (bool initial=false)
 
void reset (const QString &name)
 
void resizeDocksOnShow (bool resizeDocks)
 
bool addDockWidget (QWidget *widget, Qt::DockWidgetArea area=Qt::BottomDockWidgetArea, Qt::Orientation orientation=Qt::Horizontal, bool defaultVisibility=false)
 
bool addDockWidget (const QString &name, const std::function< QWidget *(const QString &, ViewFrame *, BinaryViewRef)> &createWidget, Qt::DockWidgetArea area=Qt::BottomDockWidgetArea, Qt::Orientation orientation=Qt::Horizontal, bool defaultVisibility=false)
 
void createDynamicWidgets (ViewFrame *frame, BinaryViewRef data, std::map< QString, QPointer< QWidget > > &store, std::vector< QString > filter, bool isExcludeFilter=true)
 
QDockWidget * getDockWidget (const QString &name)
 
ViewFramegetViewFrame ()
 
bool isVisible (const QString &name)
 
void setVisible (const QString &name, bool visible)
 
void saveState (QSettings &settings, const QString &windowStateName)
 
void restoreState (QSettings &settings, const QString &windowStateName)
 
void saveDockSizes (bool nullFrame=false)
 
void restoreDockSizes ()
 
bool shouldResizeDocks ()
 
void updateFonts ()
 
void clearViewLocation (View *view)
 
void updateViewLocation (View *view, const ViewLocation &viewLocation)
 
void updateTheme ()
 
void addActionOnShow (const QString &name, const std::function< void()> &action)
 

Static Public Member Functions

static DockHandlergetActiveDockHandler ()
 

Friends

class DockContextHandler
 

Constructor & Destructor Documentation

◆ DockHandler()

DockHandler::DockHandler ( QObject *  parent,
int  windowIndex 
)
explicit

Member Function Documentation

◆ addActionOnShow()

void DockHandler::addActionOnShow ( const QString &  name,
const std::function< void()> &  action 
)

◆ addDockWidget() [1/2]

bool DockHandler::addDockWidget ( const QString &  name,
const std::function< QWidget *(const QString &, ViewFrame *, BinaryViewRef)> &  createWidget,
Qt::DockWidgetArea  area = Qt::BottomDockWidgetArea,
Qt::Orientation  orientation = Qt::Horizontal,
bool  defaultVisibility = false 
)

◆ addDockWidget() [2/2]

bool DockHandler::addDockWidget ( QWidget *  widget,
Qt::DockWidgetArea  area = Qt::BottomDockWidgetArea,
Qt::Orientation  orientation = Qt::Horizontal,
bool  defaultVisibility = false 
)

◆ clearViewLocation()

void DockHandler::clearViewLocation ( View view)

◆ close()

void DockHandler::close ( )

◆ createDynamicWidgets()

void DockHandler::createDynamicWidgets ( ViewFrame frame,
BinaryViewRef  data,
std::map< QString, QPointer< QWidget > > &  store,
std::vector< QString >  filter,
bool  isExcludeFilter = true 
)

◆ getActiveDockHandler()

static DockHandler * DockHandler::getActiveDockHandler ( )
static

◆ getDockWidget()

QDockWidget * DockHandler::getDockWidget ( const QString &  name)

◆ getViewFrame()

ViewFrame * DockHandler::getViewFrame ( )
inline

◆ isVisible()

bool DockHandler::isVisible ( const QString &  name)

◆ notifyRestoredFromState()

void DockHandler::notifyRestoredFromState ( )

◆ notifyVisibilityChanged

void DockHandler::notifyVisibilityChanged ( )
signal

◆ removeWidget

void DockHandler::removeWidget ( QObject *  object)
slot

◆ reset() [1/2]

void DockHandler::reset ( bool  initial = false)

◆ reset() [2/2]

void DockHandler::reset ( const QString &  name)

◆ resizeDocksOnShow()

void DockHandler::resizeDocksOnShow ( bool  resizeDocks)
inline

◆ restoreDockSizes()

void DockHandler::restoreDockSizes ( )

◆ restoreState()

void DockHandler::restoreState ( QSettings &  settings,
const QString &  windowStateName 
)

◆ saveDockSizes()

void DockHandler::saveDockSizes ( bool  nullFrame = false)

◆ saveState()

void DockHandler::saveState ( QSettings &  settings,
const QString &  windowStateName 
)

◆ setVisible()

void DockHandler::setVisible ( const QString &  name,
bool  visible 
)

◆ shouldResizeDocks()

bool DockHandler::shouldResizeDocks ( )

◆ topLevelChanged

void DockHandler::topLevelChanged ( bool  topLevel)
slot

◆ updateFonts()

void DockHandler::updateFonts ( )

◆ updateTheme()

void DockHandler::updateTheme ( )

◆ updateViewLocation()

void DockHandler::updateViewLocation ( View view,
const ViewLocation viewLocation 
)

◆ viewChanged

void DockHandler::viewChanged ( ViewFrame frame)
slot

◆ visibilityChanged

void DockHandler::visibilityChanged ( bool  visible)
slot

Friends And Related Function Documentation

◆ DockContextHandler

friend class DockContextHandler
friend

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