Guitar
Classes | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
FileDiffSliderWidget Class Reference

#include <FileDiffSliderWidget.h>

Inheritance diagram for FileDiffSliderWidget:
Inheritance graph
[legend]
Collaboration diagram for FileDiffSliderWidget:
Collaboration graph
[legend]

Classes

struct  Private
 

Signals

void valueChanged (int value)
 
void scrollByWheel (int lines)
 

Public Member Functions

 FileDiffSliderWidget (QWidget *parent=nullptr)
 
 ~FileDiffSliderWidget () override
 
void clear (bool v)
 
void setScrollPos (int total, int value, int size)
 
void init (fn_pixmap_maker_t const &pixmap_maker, const ThemePtr &theme)
 
void updatePixmap ()
 

Static Public Member Functions

static QPixmap makeDiffPixmap (int width, int height, TextDiffLineList const &lines, ThemePtr theme)
 

Protected Member Functions

void paintEvent (QPaintEvent *) override
 
void resizeEvent (QResizeEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void wheelEvent (QWheelEvent *event) override
 

Private Member Functions

void scroll_ (int pos)
 
QPixmap makeDiffPixmap (DiffPane pane, int width, int height)
 
void setValue (int v)
 
void internalSetValue (int v)
 

Private Attributes

Privatem
 

Constructor & Destructor Documentation

◆ FileDiffSliderWidget()

FileDiffSliderWidget::FileDiffSliderWidget ( QWidget *  parent = nullptr)
explicit

◆ ~FileDiffSliderWidget()

FileDiffSliderWidget::~FileDiffSliderWidget ( )
override

Member Function Documentation

◆ clear()

void FileDiffSliderWidget::clear ( bool  v)

◆ init()

void FileDiffSliderWidget::init ( fn_pixmap_maker_t const &  pixmap_maker,
const ThemePtr theme 
)

◆ internalSetValue()

void FileDiffSliderWidget::internalSetValue ( int  v)
private

◆ makeDiffPixmap() [1/2]

QPixmap FileDiffSliderWidget::makeDiffPixmap ( DiffPane  pane,
int  width,
int  height 
)
private

◆ makeDiffPixmap() [2/2]

QPixmap FileDiffSliderWidget::makeDiffPixmap ( int  width,
int  height,
TextDiffLineList const &  lines,
ThemePtr  theme 
)
static

◆ mouseMoveEvent()

void FileDiffSliderWidget::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected
Here is the call graph for this function:

◆ mousePressEvent()

void FileDiffSliderWidget::mousePressEvent ( QMouseEvent *  e)
overrideprotected
Here is the call graph for this function:

◆ paintEvent()

void FileDiffSliderWidget::paintEvent ( QPaintEvent *  )
overrideprotected
Here is the call graph for this function:

◆ resizeEvent()

void FileDiffSliderWidget::resizeEvent ( QResizeEvent *  )
overrideprotected
Here is the call graph for this function:

◆ scroll_()

void FileDiffSliderWidget::scroll_ ( int  pos)
private
Here is the call graph for this function:

◆ scrollByWheel

void FileDiffSliderWidget::scrollByWheel ( int  lines)
signal

◆ setScrollPos()

void FileDiffSliderWidget::setScrollPos ( int  total,
int  value,
int  size 
)
Here is the call graph for this function:

◆ setValue()

void FileDiffSliderWidget::setValue ( int  v)
private
Here is the call graph for this function:

◆ updatePixmap()

void FileDiffSliderWidget::updatePixmap ( )
Here is the call graph for this function:

◆ valueChanged

void FileDiffSliderWidget::valueChanged ( int  value)
signal

◆ wheelEvent()

void FileDiffSliderWidget::wheelEvent ( QWheelEvent *  event)
overrideprotected
Here is the call graph for this function:

Member Data Documentation

◆ m

Private* FileDiffSliderWidget::m
private

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