File: Qt_SliderPainter_proc.h

package info (click to toggle)
radium-compressor 0.5.1%2Bgit20190909-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,064 kB
  • sloc: cpp: 8,708; ansic: 1,636; makefile: 91; sh: 42
file content (40 lines) | stat: -rw-r--r-- 1,836 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* Copyright 2012 Kjetil S. Matheussen

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. */



#include <QGraphicsItem>

struct SliderPainter;

SliderPainter *SLIDERPAINTER_create(QSlider *qslider);
SliderPainter *SLIDERPAINTER_create(QGraphicsItem *graphics_item, int x1, int y1, int x2, int y2);
void SLIDERPAINTER_delete(SliderPainter *painter);
void SLIDERPAINTER_paint(SliderPainter *painter, QPainter *p);

void SLIDERPAINTER_set_num_channels(SliderPainter *painter, int num_channels);

void SLIDERPAINTER_setValue(SliderPainter *painter, int value); // only works with graphics item.

float *SLIDERPAINTER_obtain_peak_value_pointers(SliderPainter *painter, int num_channels);
void SLIDERPAINTER_set_peak_value_pointers(SliderPainter *painter, int num_channels, float *pointers);
float *SLIDERPAINTER_obtain_automation_value_pointer(SliderPainter *painter);
int *SLIDERPAINTER_obtain_automation_color_pointer(SliderPainter *painter);
void SLIDERPAINTER_release_automation_pointers(SliderPainter *painter);

void SLIDERPAINTER_set_alternative_color(SliderPainter *painter);
void SLIDERPAINTER_set_string(SliderPainter *painter,QString string);
QString SLIDERPAINTER_get_string(SliderPainter *painter);