Selection Class Reference

#include <Selection.h>

List of all members.


Detailed Description

Definition at line 24 of file Selection.h.

Public Member Functions

 Selection ()
 Selection (size_t startFrame, size_t endFrame)
 Selection (const Selection &)
Selectionoperator= (const Selection &)
virtual ~Selection ()
bool isEmpty () const
size_t getStartFrame () const
size_t getEndFrame () const
bool contains (size_t frame) const
bool operator< (const Selection &) const
bool operator== (const Selection &) const

Protected Attributes

size_t m_startFrame
size_t m_endFrame


Constructor & Destructor Documentation

Selection::Selection (  ) 

Definition at line 19 of file Selection.cpp.

Selection::Selection ( size_t  startFrame,
size_t  endFrame 
)

Definition at line 25 of file Selection.cpp.

References m_endFrame, and m_startFrame.

Selection::Selection ( const Selection  ) 

Definition at line 36 of file Selection.cpp.

Selection::~Selection (  )  [virtual]

Definition at line 52 of file Selection.cpp.


Member Function Documentation

Selection & Selection::operator= ( const Selection  ) 

Definition at line 43 of file Selection.cpp.

References m_endFrame, and m_startFrame.

bool Selection::isEmpty (  )  const

Definition at line 57 of file Selection.cpp.

References m_endFrame, and m_startFrame.

Referenced by Pane::editSelectionDrag(), Pane::editSelectionEnd(), Pane::editSelectionStart(), Pane::getSelectionAt(), ViewManager::haveInProgressSelection(), AudioCallbackPlaySource::mixModels(), operator<(), operator==(), Pane::selectionIsBeingEdited(), Pane::updateContextHelp(), and MainWindow::updateVisibleRangeDisplay().

size_t Selection::getStartFrame (  )  const

Definition at line 63 of file Selection.cpp.

References m_startFrame.

Referenced by TimeValueLayer::copy(), TimeInstantLayer::copy(), TextLayer::copy(), NoteLayer::copy(), ImageLayer::copy(), TimeValueLayer::deleteSelection(), TimeInstantLayer::deleteSelection(), TextLayer::deleteSelection(), NoteLayer::deleteSelection(), ImageLayer::deleteSelection(), Pane::drawEditingSelection(), Pane::editSelectionEnd(), Pane::getSelectionAt(), AudioCallbackPlaySource::mixModels(), Pane::mouseReleaseEvent(), TimeValueLayer::moveSelection(), TimeInstantLayer::moveSelection(), TextLayer::moveSelection(), NoteLayer::moveSelection(), ImageLayer::moveSelection(), TimeValueLayer::resizeSelection(), TimeInstantLayer::resizeSelection(), TextLayer::resizeSelection(), NoteLayer::resizeSelection(), ImageLayer::resizeSelection(), and MainWindow::updateVisibleRangeDisplay().

size_t Selection::getEndFrame (  )  const

Definition at line 69 of file Selection.cpp.

References m_endFrame.

Referenced by TimeValueLayer::copy(), TimeInstantLayer::copy(), TextLayer::copy(), NoteLayer::copy(), ImageLayer::copy(), TimeValueLayer::deleteSelection(), TimeInstantLayer::deleteSelection(), TextLayer::deleteSelection(), NoteLayer::deleteSelection(), ImageLayer::deleteSelection(), Pane::drawEditingSelection(), Pane::editSelectionEnd(), Pane::getSelectionAt(), AudioCallbackPlaySource::mixModels(), Pane::mouseReleaseEvent(), TimeValueLayer::moveSelection(), TimeInstantLayer::moveSelection(), TextLayer::moveSelection(), NoteLayer::moveSelection(), ImageLayer::moveSelection(), TimeValueLayer::resizeSelection(), TimeInstantLayer::resizeSelection(), TextLayer::resizeSelection(), NoteLayer::resizeSelection(), ImageLayer::resizeSelection(), and MainWindow::updateVisibleRangeDisplay().

bool Selection::contains ( size_t  frame  )  const

Definition at line 75 of file Selection.cpp.

References m_endFrame, and m_startFrame.

Referenced by TimeValueLayer::copy(), TimeInstantLayer::copy(), TextLayer::copy(), NoteLayer::copy(), ImageLayer::copy(), TimeValueLayer::deleteSelection(), TimeInstantLayer::deleteSelection(), TextLayer::deleteSelection(), NoteLayer::deleteSelection(), ImageLayer::deleteSelection(), TimeValueLayer::moveSelection(), TimeInstantLayer::moveSelection(), TextLayer::moveSelection(), NoteLayer::moveSelection(), ImageLayer::moveSelection(), TimeValueLayer::resizeSelection(), TimeInstantLayer::resizeSelection(), TextLayer::resizeSelection(), NoteLayer::resizeSelection(), and ImageLayer::resizeSelection().

bool Selection::operator< ( const Selection  )  const

Definition at line 81 of file Selection.cpp.

References isEmpty(), and m_startFrame.

bool Selection::operator== ( const Selection  )  const

Definition at line 93 of file Selection.cpp.

References isEmpty(), m_endFrame, and m_startFrame.


Member Data Documentation

size_t Selection::m_startFrame [protected]

Definition at line 42 of file Selection.h.

Referenced by contains(), getStartFrame(), isEmpty(), operator<(), operator=(), operator==(), and Selection().

size_t Selection::m_endFrame [protected]

Definition at line 43 of file Selection.h.

Referenced by contains(), getEndFrame(), isEmpty(), operator=(), operator==(), and Selection().


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