Olive
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
GraphView Class Reference

#include <graphview.h>

Inheritance diagram for GraphView:

Signals

void x_scroll_changed (int)
 
void y_scroll_changed (int)
 
void zoom_changed (double, double)
 
void selection_changed (bool, int)
 

Public Member Functions

 GraphView (QWidget *parent=nullptr)
 
void paintEvent (QPaintEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void wheelEvent (QWheelEvent *event)
 
void set_row (EffectRow *r)
 
void set_selected_keyframe_type (int type)
 
void set_field_visibility (int field, bool b)
 
void delete_selected_keys ()
 
void select_all ()
 

Private Slots

void show_context_menu (const QPoint &pos)
 
void reset_view ()
 
void set_view_to_selection ()
 
void set_view_to_all ()
 
void set_view_to_rect (int x1, double y1, int x2, double y2)
 

Private Member Functions

void set_scroll_x (int s)
 
void set_scroll_y (int s)
 
void set_zoom (double xz, double yz)
 
int get_screen_x (double)
 
int get_screen_y (double)
 
long get_value_x (int)
 
double get_value_y (int)
 
void selection_update ()
 
void draw_lines (QPainter &p, bool vert)
 
void draw_line_text (QPainter &p, bool vert, int line_no, int line_pos, int next_line_pos)
 

Private Attributes

int x_scroll
 
int y_scroll
 
bool mousedown
 
int start_x
 
int start_y
 
double x_zoom
 
double y_zoom
 
QVector< bool > field_visibility
 
QVector< int > selected_keys
 
QVector< int > selected_keys_fields
 
QVector< long > selected_keys_old_vals
 
QVector< double > selected_keys_old_doubles
 
double old_pre_handle_x
 
double old_pre_handle_y
 
double old_post_handle_x
 
double old_post_handle_y
 
int handle_field
 
int handle_index
 
bool moved_keys
 
int current_handle
 
EffectRowrow
 
bool rect_select
 
int rect_select_x
 
int rect_select_y
 
int rect_select_w
 
int rect_select_h
 
int rect_select_offset
 
long visible_in
 
bool click_add
 
bool click_add_proc
 
EffectFieldclick_add_field
 
int click_add_key
 
int click_add_type
 

Constructor & Destructor Documentation

◆ GraphView()

GraphView::GraphView ( QWidget *  parent = nullptr)

Member Function Documentation

◆ delete_selected_keys()

void GraphView::delete_selected_keys ( )

◆ draw_line_text()

void GraphView::draw_line_text ( QPainter &  p,
bool  vert,
int  line_no,
int  line_pos,
int  next_line_pos 
)
private

◆ draw_lines()

void GraphView::draw_lines ( QPainter &  p,
bool  vert 
)
private

◆ get_screen_x()

int GraphView::get_screen_x ( double  d)
private

◆ get_screen_y()

int GraphView::get_screen_y ( double  d)
private

◆ get_value_x()

long GraphView::get_value_x ( int  i)
private

◆ get_value_y()

double GraphView::get_value_y ( int  i)
private

◆ mouseMoveEvent()

void GraphView::mouseMoveEvent ( QMouseEvent *  event)

◆ mousePressEvent()

void GraphView::mousePressEvent ( QMouseEvent *  event)

◆ mouseReleaseEvent()

void GraphView::mouseReleaseEvent ( QMouseEvent *  event)

◆ paintEvent()

void GraphView::paintEvent ( QPaintEvent *  event)

◆ reset_view

void GraphView::reset_view ( )
privateslot

◆ select_all()

void GraphView::select_all ( )

◆ selection_changed

void GraphView::selection_changed ( bool  ,
int   
)
signal

◆ selection_update()

void GraphView::selection_update ( )
private

◆ set_field_visibility()

void GraphView::set_field_visibility ( int  field,
bool  b 
)

◆ set_row()

void GraphView::set_row ( EffectRow r)

◆ set_scroll_x()

void GraphView::set_scroll_x ( int  s)
private

◆ set_scroll_y()

void GraphView::set_scroll_y ( int  s)
private

◆ set_selected_keyframe_type()

void GraphView::set_selected_keyframe_type ( int  type)

◆ set_view_to_all

void GraphView::set_view_to_all ( )
privateslot

◆ set_view_to_rect

void GraphView::set_view_to_rect ( int  x1,
double  y1,
int  x2,
double  y2 
)
privateslot

◆ set_view_to_selection

void GraphView::set_view_to_selection ( )
privateslot

◆ set_zoom()

void GraphView::set_zoom ( double  xz,
double  yz 
)
private

◆ show_context_menu

void GraphView::show_context_menu ( const QPoint &  pos)
privateslot

◆ wheelEvent()

void GraphView::wheelEvent ( QWheelEvent *  event)

◆ x_scroll_changed

void GraphView::x_scroll_changed ( int  )
signal

◆ y_scroll_changed

void GraphView::y_scroll_changed ( int  )
signal

◆ zoom_changed

void GraphView::zoom_changed ( double  ,
double   
)
signal

Member Data Documentation

◆ click_add

bool GraphView::click_add
private

◆ click_add_field

EffectField* GraphView::click_add_field
private

◆ click_add_key

int GraphView::click_add_key
private

◆ click_add_proc

bool GraphView::click_add_proc
private

◆ click_add_type

int GraphView::click_add_type
private

◆ current_handle

int GraphView::current_handle
private

◆ field_visibility

QVector<bool> GraphView::field_visibility
private

◆ handle_field

int GraphView::handle_field
private

◆ handle_index

int GraphView::handle_index
private

◆ mousedown

bool GraphView::mousedown
private

◆ moved_keys

bool GraphView::moved_keys
private

◆ old_post_handle_x

double GraphView::old_post_handle_x
private

◆ old_post_handle_y

double GraphView::old_post_handle_y
private

◆ old_pre_handle_x

double GraphView::old_pre_handle_x
private

◆ old_pre_handle_y

double GraphView::old_pre_handle_y
private

◆ rect_select

bool GraphView::rect_select
private

◆ rect_select_h

int GraphView::rect_select_h
private

◆ rect_select_offset

int GraphView::rect_select_offset
private

◆ rect_select_w

int GraphView::rect_select_w
private

◆ rect_select_x

int GraphView::rect_select_x
private

◆ rect_select_y

int GraphView::rect_select_y
private

◆ row

EffectRow* GraphView::row
private

◆ selected_keys

QVector<int> GraphView::selected_keys
private

◆ selected_keys_fields

QVector<int> GraphView::selected_keys_fields
private

◆ selected_keys_old_doubles

QVector<double> GraphView::selected_keys_old_doubles
private

◆ selected_keys_old_vals

QVector<long> GraphView::selected_keys_old_vals
private

◆ start_x

int GraphView::start_x
private

◆ start_y

int GraphView::start_y
private

◆ visible_in

long GraphView::visible_in
private

◆ x_scroll

int GraphView::x_scroll
private

◆ x_zoom

double GraphView::x_zoom
private

◆ y_scroll

int GraphView::y_scroll
private

◆ y_zoom

double GraphView::y_zoom
private

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