Logo Search packages:      
Sourcecode: kdenlive version File versions

Gui::KFixedRuler Class Reference

#include <kfixedruler.h>

Inheritance diagram for Gui::KFixedRuler:

List of all members.


Detailed Description

This class provides a simplified version of KRuler. Instead of the "start position and zoom" functionality, this class provides "start and end values", allowing you to set up a non-panning ruler. Examples of uses for this class could be a media player, where the position indicator ticks from the start to the end.
Author:
Jason Wood

Definition at line 31 of file kfixedruler.h.


Public Types

enum  KRulerSliderType {
  Diamond, TopMark, BottomMark, StartMark,
  EndMark, HorizontalMark
}

Public Slots

void clearGuides ()
int currentGuideIndex (double currentpos=0)
int guideChapter (int ix)
QString guideComment (int ix)
int guidePosition (int ix)
void guidesFromXml (QDomElement xml)
void setSliderValue (int id, int value)
void slotActivateSlider (int slider)
void slotAddGuide (int time, QString comment, int chapterNum=-1)
void slotDeleteGuide (double currentpos=0)
void slotEditGuide (int localTime, QString comment, int chapter)
void slotSetVZone (QValueList< QPoint > zones)
QValueList< int > timelineGuides ()
QStringList timelineRulerComments ()
QDomDocument xmlGuides ()

Signals

void activatedSlider (int)
void endValueChanged (int)
void moveBackward (bool)
void moveForward (bool)
void requestScrollLeft ()
void requestScrollRight ()
void resized ()
void rightButtonPressed ()
void scaleChanged (double)
void sliderValueChanged (int, int)
void sliderValueMoved (int, int)
void startValueChanged (int)

Public Member Functions

int activeSliderID ()
int addSlider (const KRulerSliderType type, int value)
void deleteSlider (int id)
void doCommonCtor ()
void drawToBackBuffer (int start, int end)
int getSliderValue (int id)
void invalidateBackBuffer (int start, int end)
void invalidateBackBuffer ()
 KFixedRuler (QWidget *parent=0, const char *name=0)
 KFixedRuler (KRulerModel *model, QWidget *parent=0, const char *name=0)
 KFixedRuler (int startValue, int endValue, int margin=20, KRulerModel *model=0, QWidget *parent=0, const char *name=0)
double mapLocalToValue (double x) const
double mapValueToLocal (double value) const
int margin () const
int maxValue () const
int minValue () const
void paintEvent (QPaintEvent *event)
void setAutoClickSlider (int ID)
void setMargin (const int margin)
void setMaxValue (const int end)
void setMinValue (const int start)
void setNumFrames (double fps)
void setRange (const int min, const int max)
void setRulerModel (KRulerModel *model)
QSize sizeHint ()
void tip (const QPoint &pos, QRect &rect, QString &tipText)
double valueScale ()

Protected Slots

void setStartPixel (int value)
void setValueScale (double size)
void slotTimerScrollEvent ()

Protected Member Functions

void mouseDoubleClickEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void mousePressEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
void resizeEvent (QResizeEvent *)
void wheelEvent (QWheelEvent *e)

Private Slots

void calculateViewport ()

Private Attributes

int m_margin

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

Generated by  Doxygen 1.6.0   Back to index