Version: 9.12.0
CurveCreator_TreeView Class Reference

#include <CurveCreator_TreeView.h>

Inheritance diagram for CurveCreator_TreeView:
Inheritance graph

Public Types

enum  SelectionType {
  ST_NOSEL , ST_POINTS , ST_POINTS_ONE_SECTION , ST_SECTIONS ,
  ST_MIXED
}
 

Signals

void selectionChanged ()
 
void sectionEntered (int)
 

Public Member Functions

 CurveCreator_TreeView (CurveCreator_ICurve *theCurve, QWidget *parent=0, bool toDrawColorIcon=true)
 
SelectionType getSelectionType () const
 
QList< int > getSelectedSections () const
 
void pointsAdded (int theSection, int thePoint, int thePointsCnt=1)
 
void pointDataChanged (int theSection, int thePoint)
 
void pointsRemoved (int theSection, int thePoint, int thePointsCnt=1)
 
void sectionAdded (int theSection)
 
void sectionChanged (int theSection, int aSectCnt=1)
 
void sectionsRemoved (int theSection, int theSectionCnt=1)
 
void sectionsSwapped (int theSection, int theOffset)
 
void setSelectedSections (const QList< int > &theList)
 
void setCurve (CurveCreator_ICurve *theCurve)
 
void reset ()
 

Protected Slots

void onActivated (QModelIndex theIndx)
 

Protected Member Functions

void setIndexState (const QModelIndex &theIndx, bool &isExpanded, bool &isSelected, bool &isCurrent)
 
void swapIndexes (const QModelIndex &theFirst, const QModelIndex &theSecond)
 
void getIndexInfo (const QModelIndex &theIndx, bool &isExpanded, bool &isSelected, bool &isCurrent)
 

Member Enumeration Documentation

◆ SelectionType

Enumerator
ST_NOSEL 
ST_POINTS 
ST_POINTS_ONE_SECTION 
ST_SECTIONS 
ST_MIXED 

Constructor & Destructor Documentation

◆ CurveCreator_TreeView()

CurveCreator_TreeView::CurveCreator_TreeView ( CurveCreator_ICurve theCurve,
QWidget parent = 0,
bool  toDrawColorIcon = true 
)
explicit

Member Function Documentation

◆ getIndexInfo()

void CurveCreator_TreeView::getIndexInfo ( const QModelIndex &  theIndx,
bool &  isExpanded,
bool &  isSelected,
bool &  isCurrent 
)
protected

◆ getSelectedSections()

QList< int > CurveCreator_TreeView::getSelectedSections ( ) const

◆ getSelectionType()

◆ onActivated

void CurveCreator_TreeView::onActivated ( QModelIndex  theIndx)
protectedslot

◆ pointDataChanged()

void CurveCreator_TreeView::pointDataChanged ( int  theSection,
int  thePoint 
)

◆ pointsAdded()

void CurveCreator_TreeView::pointsAdded ( int  theSection,
int  thePoint,
int  thePointsCnt = 1 
)

◆ pointsRemoved()

void CurveCreator_TreeView::pointsRemoved ( int  theSection,
int  thePoint,
int  thePointsCnt = 1 
)

◆ reset()

void CurveCreator_TreeView::reset ( )

◆ sectionAdded()

void CurveCreator_TreeView::sectionAdded ( int  theSection)

◆ sectionChanged()

void CurveCreator_TreeView::sectionChanged ( int  theSection,
int  aSectCnt = 1 
)

◆ sectionEntered

void CurveCreator_TreeView::sectionEntered ( int  )
signal

◆ sectionsRemoved()

void CurveCreator_TreeView::sectionsRemoved ( int  theSection,
int  theSectionCnt = 1 
)

◆ sectionsSwapped()

void CurveCreator_TreeView::sectionsSwapped ( int  theSection,
int  theOffset 
)

◆ selectionChanged

void CurveCreator_TreeView::selectionChanged ( )
signal

◆ setCurve()

void CurveCreator_TreeView::setCurve ( CurveCreator_ICurve theCurve)

◆ setIndexState()

void CurveCreator_TreeView::setIndexState ( const QModelIndex &  theIndx,
bool &  isExpanded,
bool &  isSelected,
bool &  isCurrent 
)
protected

◆ setSelectedSections()

void CurveCreator_TreeView::setSelectedSections ( const QList< int > &  theList)

◆ swapIndexes()

void CurveCreator_TreeView::swapIndexes ( const QModelIndex &  theFirst,
const QModelIndex &  theSecond 
)
protected

References getIndexInfo(), and setIndexState().


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