PaneStack Class Reference

#include <PaneStack.h>

Collaboration diagram for PaneStack:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 36 of file PaneStack.h.

Public Types

enum  LayoutStyle { NoPropertyStacks = 0, SinglePropertyStackLayout = 1, PropertyStackPerPaneLayout = 2 }

Public Slots

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

Signals

void currentPaneChanged (Pane *pane)
void currentLayerChanged (Pane *pane, Layer *layer)
void rightButtonMenuRequested (Pane *pane, QPoint position)
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)

Public Member Functions

 PaneStack (QWidget *parent, ViewManager *viewManager)
PaneaddPane (bool suppressPropertyBox=false)
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 ()

Protected Attributes

Panem_currentPane
std::vector< PaneRecm_panes
std::vector< PaneRecm_hiddenPanes
std::map< QWidget *, Pane * > m_xButtonMap
QSplitter * m_splitter
QStackedWidget * m_propertyStackStack
ViewManagerm_viewManager
int m_propertyStackMinWidth
LayoutStyle m_layoutStyle

Classes

struct  PaneRec


Member Enumeration Documentation

enum PaneStack::LayoutStyle

Enumerator:
NoPropertyStacks 
SinglePropertyStackLayout 
PropertyStackPerPaneLayout 

Definition at line 60 of file PaneStack.h.


Constructor & Destructor Documentation

PaneStack::PaneStack ( QWidget *  parent,
ViewManager viewManager 
)

Definition at line 39 of file PaneStack.cpp.

References m_propertyStackStack, and m_splitter.


Member Function Documentation

Pane * PaneStack::addPane ( bool  suppressPropertyBox = false  ) 

Definition at line 63 of file PaneStack.cpp.

References contextHelpChanged(), PaneStack::PaneRec::currentIndicator, dropAccepted(), PaneStack::PaneRec::frame, PaneStack::PaneRec::layout, m_currentPane, m_layoutStyle, m_panes, m_propertyStackStack, m_splitter, m_viewManager, m_xButtonMap, PaneStack::PaneRec::pane, paneAdded(), paneDeleteButtonClicked(), paneDropAccepted(), paneInteractedWith(), propertyContainerAdded(), propertyContainerRemoved(), propertyContainerSelected(), PaneStack::PaneRec::propertyStack, PropertyStackPerPaneLayout, rightButtonMenuRequested(), setCurrentPane(), View::setViewManager(), and viewSelected().

Referenced by MainWindowBase::AddPaneCommand::execute(), and MainWindow::newSession().

void PaneStack::deletePane ( Pane pane  ) 

Definition at line 220 of file PaneStack.cpp.

References m_currentPane, m_hiddenPanes, m_panes, m_xButtonMap, paneAboutToBeDeleted(), paneDeleted(), and setCurrentPane().

Referenced by MainWindow::closeSession(), MainWindowBase::AddPaneCommand::~AddPaneCommand(), and MainWindowBase::RemovePaneCommand::~RemovePaneCommand().

int PaneStack::getPaneCount (  )  const

Definition at line 274 of file PaneStack.cpp.

References m_panes.

Referenced by MainWindow::alignToggled(), MainWindow::closeSession(), getPaneIndex(), LayerTreeModel::index(), MainWindowBase::layerInAView(), LayerTreeModel::LayerTreeModel(), ModelDataModel::ModelDataModel(), MainWindowBase::nextPane(), MainWindowBase::paneDeleteButtonClicked(), LayerTreeModel::playParametersAudibilityChanged(), MainWindowBase::previousPane(), LayerTreeModel::propertyContainerPropertyChanged(), ModelDataModel::rebuildModelSet(), LayerTreeModel::rowCount(), MainWindow::setupExistingLayersMenus(), MainWindowBase::toXml(), and MainWindowBase::updateMenuStates().

Pane * PaneStack::getPane ( int  n  ) 

Definition at line 193 of file PaneStack.cpp.

References m_panes.

Referenced by MainWindow::alignToggled(), MainWindow::closeSession(), getPaneIndex(), MainWindow::handleOSCMessage(), LayerTreeModel::index(), MainWindowBase::layerInAView(), LayerTreeModel::LayerTreeModel(), ModelDataModel::ModelDataModel(), MainWindowBase::nextPane(), MainWindowBase::paneDeleteButtonClicked(), LayerTreeModel::playParametersAudibilityChanged(), MainWindowBase::previousPane(), LayerTreeModel::propertyContainerPropertyChanged(), ModelDataModel::rebuildModelSet(), LayerTreeModel::rowCount(), MainWindow::setupExistingLayersMenus(), MainWindowBase::toXml(), and MainWindowBase::updateMenuStates().

int PaneStack::getPaneIndex ( Pane pane  ) 

Definition at line 203 of file PaneStack.cpp.

References getPane(), and getPaneCount().

Referenced by LayerTreeModel::parent().

void PaneStack::hidePane ( Pane pane  ) 

Definition at line 286 of file PaneStack.cpp.

References m_currentPane, m_hiddenPanes, m_panes, paneHidden(), and setCurrentPane().

Referenced by MainWindowBase::RemovePaneCommand::execute(), and MainWindowBase::AddPaneCommand::unexecute().

void PaneStack::showPane ( Pane pane  ) 

Definition at line 318 of file PaneStack.cpp.

References m_hiddenPanes, and m_panes.

Referenced by MainWindowBase::AddPaneCommand::execute(), and MainWindowBase::RemovePaneCommand::unexecute().

int PaneStack::getHiddenPaneCount (  )  const

Definition at line 280 of file PaneStack.cpp.

References m_hiddenPanes.

Referenced by MainWindow::closeSession().

Pane * PaneStack::getHiddenPane ( int  n  ) 

Definition at line 214 of file PaneStack.cpp.

References m_hiddenPanes.

Referenced by MainWindow::closeSession().

void PaneStack::setCurrentPane ( Pane pane  ) 

Definition at line 340 of file PaneStack.cpp.

References currentPaneChanged(), m_currentPane, m_layoutStyle, m_panes, m_propertyStackStack, and PropertyStackPerPaneLayout.

Referenced by addPane(), MainWindow::addPane(), deletePane(), MainWindowBase::AddPaneCommand::execute(), MainWindow::handleOSCMessage(), hidePane(), MainWindowBase::nextPane(), MainWindow::paneDropAccepted(), paneInteractedWith(), MainWindowBase::previousPane(), propertyContainerSelected(), MainWindow::rightButtonMenuRequested(), setCurrentLayer(), MainWindowBase::RemovePaneCommand::unexecute(), MainWindowBase::AddPaneCommand::unexecute(), and viewSelected().

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

Definition at line 380 of file PaneStack.cpp.

References PropertyStack::containsContainer(), currentLayerChanged(), PropertyStack::getContainerIndex(), View::getPropertyContainer(), m_currentPane, m_panes, and setCurrentPane().

Referenced by MainWindow::addLayer(), MainWindow::addPane(), MainWindow::handleOSCMessage(), MainWindowBase::insertInstantAt(), MainWindowBase::nextLayer(), MainWindowBase::openImage(), MainWindowBase::openLayer(), MainWindowBase::paste(), and MainWindowBase::previousLayer().

Pane * PaneStack::getCurrentPane (  ) 

Definition at line 412 of file PaneStack.cpp.

References m_currentPane.

Referenced by MainWindow::addLayer(), MainWindowBase::copy(), MainWindowBase::cut(), MainWindowBase::deleteCurrentLayer(), MainWindowBase::deleteCurrentPane(), MainWindowBase::deleteSelected(), MainWindowBase::RemovePaneCommand::execute(), MainWindowBase::AddPaneCommand::execute(), MainWindow::exportImage(), MainWindow::exportLayer(), MainWindowBase::ffwd(), MainWindowBase::getOpenFileName(), MainWindowBase::getSnapLayer(), MainWindowBase::globalCentreFrameChanged(), MainWindow::handleOSCMessage(), MainWindow::importLayer(), MainWindowBase::inProgressSelectionChanged(), MainWindowBase::insertInstantAt(), MainWindowBase::jumpLeft(), MainWindowBase::jumpRight(), MainWindowBase::nextLayer(), MainWindowBase::nextPane(), MainWindowBase::open(), MainWindowBase::openAudio(), MainWindowBase::openImage(), MainWindowBase::openLayer(), MainWindowBase::paste(), MainWindowBase::playSoloToggled(), MainWindowBase::previousLayer(), MainWindowBase::previousPane(), MainWindow::renameCurrentLayer(), MainWindowBase::renumberInstants(), MainWindowBase::rewind(), MainWindowBase::scrollLeft(), MainWindowBase::scrollRight(), MainWindowBase::selectVisible(), MainWindowBase::stop(), MainWindowBase::updateMenuStates(), MainWindow::updateMenuStates(), MainWindowBase::viewCentreFrameChanged(), MainWindowBase::viewZoomLevelChanged(), MainWindowBase::zoomDefault(), MainWindowBase::zoomIn(), MainWindowBase::zoomOut(), and MainWindowBase::zoomToFit().

LayoutStyle PaneStack::getLayoutStyle (  )  const [inline]

Definition at line 66 of file PaneStack.h.

References m_layoutStyle.

Referenced by MainWindow::handleOSCMessage(), MainWindowBase::preferenceChanged(), and MainWindowBase::togglePropertyBoxes().

void PaneStack::setLayoutStyle ( LayoutStyle  style  ) 

Definition at line 159 of file PaneStack.cpp.

References m_layoutStyle, m_panes, m_propertyStackStack, NoPropertyStacks, PropertyStackPerPaneLayout, and SinglePropertyStackLayout.

Referenced by MainWindowBase::preferenceChanged(), and MainWindowBase::togglePropertyBoxes().

void PaneStack::setPropertyStackMinWidth ( int  mw  ) 

Definition at line 149 of file PaneStack.cpp.

References m_panes, and m_propertyStackMinWidth.

Referenced by MainWindow::MainWindow().

void PaneStack::sizePanesEqually (  ) 

Definition at line 539 of file PaneStack.cpp.

References m_splitter.

void PaneStack::currentPaneChanged ( Pane pane  )  [signal]

Referenced by setCurrentPane().

void PaneStack::currentLayerChanged ( Pane pane,
Layer layer 
) [signal]

Referenced by propertyContainerSelected(), and setCurrentLayer().

void PaneStack::rightButtonMenuRequested ( Pane pane,
QPoint  position 
) [signal]

Referenced by addPane(), and rightButtonMenuRequested().

void PaneStack::propertyStacksResized ( int  width  )  [signal]

void PaneStack::propertyStacksResized (  )  [signal]

Referenced by sizePropertyStacks().

void PaneStack::contextHelpChanged ( const QString &   )  [signal]

Referenced by addPane().

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

void PaneStack::paneAdded (  )  [signal]

Referenced by addPane().

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

void PaneStack::paneHidden (  )  [signal]

Referenced by hidePane().

void PaneStack::paneAboutToBeDeleted ( Pane pane  )  [signal]

Referenced by deletePane().

void PaneStack::paneDeleted (  )  [signal]

Referenced by deletePane().

void PaneStack::dropAccepted ( Pane pane,
QStringList  uriList 
) [signal]

Referenced by addPane(), and paneDropAccepted().

void PaneStack::dropAccepted ( Pane pane,
QString  text 
) [signal]

void PaneStack::paneDeleteButtonClicked ( Pane pane  )  [signal]

void PaneStack::propertyContainerAdded ( PropertyContainer  )  [slot]

Definition at line 418 of file PaneStack.cpp.

References sizePropertyStacks().

Referenced by addPane().

void PaneStack::propertyContainerRemoved ( PropertyContainer  )  [slot]

Definition at line 424 of file PaneStack.cpp.

References sizePropertyStacks().

Referenced by addPane().

void PaneStack::propertyContainerSelected ( View client,
PropertyContainer  
) [slot]

Definition at line 430 of file PaneStack.cpp.

References currentLayerChanged(), m_currentPane, m_panes, and setCurrentPane().

Referenced by addPane().

void PaneStack::viewSelected ( View v  )  [slot]

Definition at line 451 of file PaneStack.cpp.

References setCurrentPane().

Referenced by addPane().

void PaneStack::paneInteractedWith (  )  [slot]

Definition at line 458 of file PaneStack.cpp.

References setCurrentPane().

Referenced by addPane().

void PaneStack::rightButtonMenuRequested ( QPoint   )  [slot]

Definition at line 466 of file PaneStack.cpp.

References rightButtonMenuRequested().

void PaneStack::paneDropAccepted ( QStringList   )  [slot]

Definition at line 512 of file PaneStack.cpp.

References dropAccepted().

Referenced by addPane().

void PaneStack::paneDropAccepted ( QString   )  [slot]

Definition at line 519 of file PaneStack.cpp.

References dropAccepted().

void PaneStack::paneDeleteButtonClicked (  )  [slot]

Definition at line 526 of file PaneStack.cpp.

References m_xButtonMap.

Referenced by addPane().

void PaneStack::sizePropertyStacks (  )  [protected]

Definition at line 474 of file PaneStack.cpp.

References m_panes, m_propertyStackMinWidth, m_propertyStackStack, and propertyStacksResized().

Referenced by propertyContainerAdded(), and propertyContainerRemoved().


Member Data Documentation

Pane* PaneStack::m_currentPane [protected]

Definition at line 105 of file PaneStack.h.

Referenced by addPane(), deletePane(), getCurrentPane(), hidePane(), propertyContainerSelected(), setCurrentLayer(), and setCurrentPane().

std::vector<PaneRec> PaneStack::m_panes [protected]

Definition at line 116 of file PaneStack.h.

Referenced by addPane(), deletePane(), getPane(), getPaneCount(), hidePane(), propertyContainerSelected(), setCurrentLayer(), setCurrentPane(), setLayoutStyle(), setPropertyStackMinWidth(), showPane(), and sizePropertyStacks().

std::vector<PaneRec> PaneStack::m_hiddenPanes [protected]

Definition at line 117 of file PaneStack.h.

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

std::map<QWidget *, Pane *> PaneStack::m_xButtonMap [protected]

Definition at line 119 of file PaneStack.h.

Referenced by addPane(), deletePane(), and paneDeleteButtonClicked().

QSplitter* PaneStack::m_splitter [protected]

Definition at line 121 of file PaneStack.h.

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

QStackedWidget* PaneStack::m_propertyStackStack [protected]

Definition at line 122 of file PaneStack.h.

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

ViewManager* PaneStack::m_viewManager [protected]

Definition at line 124 of file PaneStack.h.

Referenced by addPane().

int PaneStack::m_propertyStackMinWidth [protected]

Definition at line 125 of file PaneStack.h.

Referenced by setPropertyStackMinWidth(), and sizePropertyStacks().

LayoutStyle PaneStack::m_layoutStyle [protected]

Definition at line 128 of file PaneStack.h.

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


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:35 2008 for SonicVisualiser by  doxygen 1.5.1