#include <PaneStack.h>

Inheritance diagram for PaneStack:
Inheritance graph
Collaboration diagram for PaneStack:
Collaboration graph

Classes

struct  PaneRec
 

Public Types

enum  Option {
  Option::Default = 0x0, Option::NoUserResize = 0x1, Option::NoPropertyStacks = 0x2, Option::NoPaneAccessories = 0x4,
  Option::NoCloseOnFirstPane = 0x8, Option::ShowAlignmentViews = 0x10
}
 These options are for things that must be set on construction, and can't be changed afterwards. More...
 
enum  LayoutStyle { HiddenPropertyStacksLayout = 0, SinglePropertyStackLayout = 1, PropertyStackPerPaneLayout = 2 }
 Runtime-switchable layout style for property stacks. More...
 
typedef int Options
 

Public Slots

void propertyContainerAdded (PropertyContainer *)
 
void propertyContainerRemoved (PropertyContainer *)
 
void propertyContainerSelected (View *client, PropertyContainer *)
 
void propertyContainerContextMenuRequested (View *, PropertyContainer *, QPoint)
 
void viewSelected (View *v)
 
void paneInteractedWith ()
 
void rightButtonMenuRequested (QPoint)
 
void paneDropAccepted (QStringList)
 
void paneDropAccepted (QString)
 
void paneDeleteButtonClicked ()
 
void indicatorClicked ()
 

Signals

void currentPaneChanged (Pane *pane)
 
void currentLayerChanged (Pane *pane, Layer *layer)
 
void paneRightButtonMenuRequested (Pane *pane, QPoint position)
 
void panePropertiesRightButtonMenuRequested (Pane *, QPoint)
 
void layerPropertiesRightButtonMenuRequested (Pane *, Layer *, QPoint)
 
void propertyStacksResized (int width)
 
void propertyStacksResized ()
 
void contextHelpChanged (const QString &)
 
void paneAdded (Pane *pane)
 
void paneAdded ()
 
void paneHidden (Pane *pane)
 
void paneHidden ()
 
void paneAboutToBeDeleted (Pane *pane)
 
void paneDeleted ()
 
void dropAccepted (Pane *pane, QStringList uriList)
 
void dropAccepted (Pane *pane, QString text)
 
void paneDeleteButtonClicked (Pane *pane)
 
void doubleClickSelectInvoked (sv_frame_t frame)
 

Public Member Functions

 PaneStack (QWidget *parent, ViewManager *viewManager, Options options=0)
 
PaneaddPane ()
 
void deletePane (Pane *pane)
 
int getPaneCount () const
 
PanegetPane (int n)
 
int getPaneIndex (Pane *pane)
 
void hidePane (Pane *pane)
 
void showPane (Pane *pane)
 
int getHiddenPaneCount () const
 
PanegetHiddenPane (int n)
 
void setCurrentPane (Pane *pane)
 
void setCurrentLayer (Pane *pane, Layer *layer)
 
PanegetCurrentPane ()
 
LayoutStyle getLayoutStyle () const
 
void setLayoutStyle (LayoutStyle style)
 
void setPropertyStackMinWidth (int mw)
 
void sizePanesEqually ()
 

Protected Member Functions

void sizePropertyStacks ()
 
void showOrHidePaneAccessories ()
 
void unlinkAlignmentViews ()
 
void relinkAlignmentViews ()
 
void resizeEvent (QResizeEvent *) override
 
void adjustAlignmentViewHeights (int forMyHeight)
 

Protected Attributes

Panem_currentPane
 
std::vector< PaneRecm_panes
 
std::vector< PaneRecm_hiddenPanes
 
int m_options
 
QSplitter * m_splitter
 
QWidget * m_autoResizeStack
 
QVBoxLayout * m_autoResizeLayout
 
QStackedWidget * m_propertyStackStack
 
ViewManagerm_viewManager
 
int m_propertyStackMinWidth
 
LayoutStyle m_layoutStyle
 

Detailed Description

Definition at line 40 of file PaneStack.h.

Member Typedef Documentation

typedef int PaneStack::Options

Definition at line 55 of file PaneStack.h.

Member Enumeration Documentation

enum PaneStack::Option
strong

These options are for things that must be set on construction, and can't be changed afterwards.

Enumerator
Default 
NoUserResize 
NoPropertyStacks 
NoPaneAccessories 
NoCloseOnFirstPane 
ShowAlignmentViews 

Definition at line 47 of file PaneStack.h.

Runtime-switchable layout style for property stacks.

Enumerator
HiddenPropertyStacksLayout 
SinglePropertyStackLayout 
PropertyStackPerPaneLayout 

Definition at line 79 of file PaneStack.h.

Constructor & Destructor Documentation

PaneStack::PaneStack ( QWidget *  parent,
ViewManager viewManager,
Options  options = 0 
)

Member Function Documentation

int PaneStack::getPaneIndex ( Pane pane)

Definition at line 345 of file PaneStack.cpp.

References getPane(), and getPaneCount().

Referenced by LayerTreeModel::parent().

void PaneStack::hidePane ( Pane pane)
void PaneStack::showPane ( Pane pane)

!! update current pane

Definition at line 501 of file PaneStack.cpp.

References m_hiddenPanes, m_panes, relinkAlignmentViews(), and showOrHidePaneAccessories().

int PaneStack::getHiddenPaneCount ( ) const

Definition at line 461 of file PaneStack.cpp.

References m_hiddenPanes.

Pane * PaneStack::getHiddenPane ( int  n)

Definition at line 356 of file PaneStack.cpp.

References m_hiddenPanes.

void PaneStack::setCurrentLayer ( Pane pane,
Layer layer 
)
Pane * PaneStack::getCurrentPane ( )

Definition at line 598 of file PaneStack.cpp.

References m_currentPane.

void PaneStack::setPropertyStackMinWidth ( int  mw)

Definition at line 286 of file PaneStack.cpp.

References m_panes, and m_propertyStackMinWidth.

Referenced by getLayoutStyle().

void PaneStack::sizePanesEqually ( )

Definition at line 753 of file PaneStack.cpp.

References m_options, m_panes, m_splitter, and NoUserResize.

Referenced by getLayoutStyle().

void PaneStack::currentPaneChanged ( Pane pane)
signal

Referenced by getLayoutStyle(), and setCurrentPane().

void PaneStack::currentLayerChanged ( Pane pane,
Layer layer 
)
signal
void PaneStack::paneRightButtonMenuRequested ( Pane pane,
QPoint  position 
)
signal
void PaneStack::panePropertiesRightButtonMenuRequested ( Pane ,
QPoint   
)
signal
void PaneStack::layerPropertiesRightButtonMenuRequested ( Pane ,
Layer ,
QPoint   
)
signal
void PaneStack::propertyStacksResized ( int  width)
signal
void PaneStack::propertyStacksResized ( )
signal
void PaneStack::contextHelpChanged ( const QString &  )
signal

Referenced by addPane(), and getLayoutStyle().

void PaneStack::paneAdded ( Pane pane)
signal
void PaneStack::paneAdded ( )
signal

Referenced by addPane(), and getLayoutStyle().

void PaneStack::paneHidden ( Pane pane)
signal
void PaneStack::paneHidden ( )
signal

Referenced by getLayoutStyle(), and hidePane().

void PaneStack::paneAboutToBeDeleted ( Pane pane)
signal

Referenced by deletePane(), and getLayoutStyle().

void PaneStack::paneDeleted ( )
signal

Referenced by deletePane(), and getLayoutStyle().

void PaneStack::dropAccepted ( Pane pane,
QStringList  uriList 
)
signal
void PaneStack::dropAccepted ( Pane pane,
QString  text 
)
signal
void PaneStack::paneDeleteButtonClicked ( Pane pane)
signal
void PaneStack::doubleClickSelectInvoked ( sv_frame_t  frame)
signal

Referenced by addPane(), and getLayoutStyle().

void PaneStack::propertyContainerAdded ( PropertyContainer *  )
slot

Definition at line 604 of file PaneStack.cpp.

References sizePropertyStacks().

Referenced by addPane(), and getLayoutStyle().

void PaneStack::propertyContainerRemoved ( PropertyContainer *  )
slot

Definition at line 610 of file PaneStack.cpp.

References sizePropertyStacks().

Referenced by addPane(), and getLayoutStyle().

void PaneStack::propertyContainerSelected ( View client,
PropertyContainer *  pc 
)
slot
void PaneStack::propertyContainerContextMenuRequested ( View client,
PropertyContainer *  pc,
QPoint  pos 
)
slot
void PaneStack::viewSelected ( View v)
slot

Definition at line 654 of file PaneStack.cpp.

References setCurrentPane().

Referenced by addPane(), and getLayoutStyle().

void PaneStack::paneInteractedWith ( )
slot

Definition at line 661 of file PaneStack.cpp.

References setCurrentPane().

Referenced by addPane(), and getLayoutStyle().

void PaneStack::rightButtonMenuRequested ( QPoint  position)
slot

Definition at line 669 of file PaneStack.cpp.

References paneRightButtonMenuRequested().

Referenced by addPane(), and getLayoutStyle().

void PaneStack::paneDropAccepted ( QStringList  uriList)
slot

Definition at line 715 of file PaneStack.cpp.

References dropAccepted().

Referenced by addPane(), and getLayoutStyle().

void PaneStack::paneDropAccepted ( QString  text)
slot

Definition at line 722 of file PaneStack.cpp.

References dropAccepted().

void PaneStack::paneDeleteButtonClicked ( )
slot

Definition at line 729 of file PaneStack.cpp.

References m_panes.

Referenced by addPane(), and getLayoutStyle().

void PaneStack::indicatorClicked ( )
slot

Definition at line 740 of file PaneStack.cpp.

References m_panes, and setCurrentPane().

Referenced by addPane(), and getLayoutStyle().

void PaneStack::sizePropertyStacks ( )
protected
void PaneStack::showOrHidePaneAccessories ( )
protected

Definition at line 433 of file PaneStack.cpp.

References getPaneCount(), m_options, m_panes, NoCloseOnFirstPane, and NoPaneAccessories.

Referenced by addPane(), deletePane(), hidePane(), and showPane().

void PaneStack::unlinkAlignmentViews ( )
protected

Definition at line 235 of file PaneStack.cpp.

References m_panes.

Referenced by deletePane().

void PaneStack::relinkAlignmentViews ( )
protected

Definition at line 213 of file PaneStack.cpp.

References adjustAlignmentViewHeights(), m_options, m_panes, and ShowAlignmentViews.

Referenced by addPane(), deletePane(), hidePane(), and showPane().

void PaneStack::resizeEvent ( QResizeEvent *  ev)
overrideprotected

Definition at line 247 of file PaneStack.cpp.

References adjustAlignmentViewHeights().

void PaneStack::adjustAlignmentViewHeights ( int  forMyHeight)
protected

Member Data Documentation

Pane* PaneStack::m_currentPane
protected
std::vector<PaneRec> PaneStack::m_hiddenPanes
protected

Definition at line 145 of file PaneStack.h.

Referenced by deletePane(), getHiddenPane(), getHiddenPaneCount(), hidePane(), and showPane().

int PaneStack::m_options
protected
QSplitter* PaneStack::m_splitter
protected

Definition at line 148 of file PaneStack.h.

Referenced by addPane(), PaneStack(), and sizePanesEqually().

QWidget* PaneStack::m_autoResizeStack
protected

Definition at line 149 of file PaneStack.h.

Referenced by PaneStack().

QVBoxLayout* PaneStack::m_autoResizeLayout
protected

Definition at line 150 of file PaneStack.h.

Referenced by addPane(), and PaneStack().

QStackedWidget* PaneStack::m_propertyStackStack
protected

Definition at line 152 of file PaneStack.h.

Referenced by addPane(), PaneStack(), setCurrentPane(), setLayoutStyle(), and sizePropertyStacks().

ViewManager* PaneStack::m_viewManager
protected

Definition at line 154 of file PaneStack.h.

Referenced by addPane().

int PaneStack::m_propertyStackMinWidth
protected

Definition at line 155 of file PaneStack.h.

Referenced by setPropertyStackMinWidth(), and sizePropertyStacks().

LayoutStyle PaneStack::m_layoutStyle
protected

Definition at line 166 of file PaneStack.h.

Referenced by addPane(), getLayoutStyle(), PaneStack(), setCurrentPane(), and setLayoutStyle().


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