virtual bool clearInternal();
//! For internal use only! Undo/Redo are not used here.
- virtual bool joinInternal( const int theISectionTo = -1,
- const int theISectionFrom = -1 );
+ virtual bool joinInternal( const std::list<int>& theSections );
//! For internal use only! Undo/Redo are not used here.
virtual bool moveSectionInternal( const int theISection,
//! Move section to new position in list
virtual bool moveSection( const int theISection,
const int theNewIndex );
-
- //! Join range of sections to one section (join all sections if -1 is passed in one of arguments)
- virtual bool join( const int theISectionTo = -1,
- const int theISectionFrom = -1 );
+ //! Join list of sections to one section (join all if the list is empty)
+ // The first section in the list is a leader, another sections are joined to it
+ virtual bool join( const std::list<int>& theSections );
//! For internal use only! Undo/Redo are not used here.
virtual int addSectionInternal( const std::string &theName,