2
#ifndef RANGEMANAGER_P_H
3
#define RANGEMANAGER_P_H
5
#include <QtCore/QVector>
8
* @short A class that manages a list of ranges.
15
* Creates a new range manager.
20
* Destroys the range manager.
25
* Returns the number of ranges.
30
* Removes all ranges from the range manager.
35
* Inserts a new range of the given @p size before @p range.
37
void insertRange( int range, int size );
40
* Removes the given @p range.
42
void removeRange( int range );
45
* Increases the given range by @p elements.
47
void increaseRange( int range, int elements );
50
* Decreases the given range by @p elements.
52
void decreaseRange( int range, int elements );
55
* Returns the absolute start position of the given @p range.
57
int rangeStart( int range ) const;
60
* Returns the number of elements of the given @p range.
62
int rangeSize( int range ) const;
65
* Returns the range that contains the given absolute @p position.
67
int rangeForPosition( int position ) const;
70
* Dumps the current range layout to console. Usefull for debugging.
75
QVector<int> mRangeSizes;