Debian Codegraph @

Qt/Qt_SliderPainter_proc.h

raw symbols SCIP
1 /* Copyright 2012 Kjetil S. Matheussen
2
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU General Public License
5 as published by the Free Software Foundation; either version 2
6 of the License, or (at your option) any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
16
17
18
19 #include <QGraphicsItem>
20
21 struct SliderPainter;
22
23 SliderPainter *SLIDERPAINTER_create(QSlider *qslider);
24 SliderPainter *SLIDERPAINTER_create(QGraphicsItem *graphics_item, int x1, int y1, int x2, int y2);
25 void SLIDERPAINTER_delete(SliderPainter *painter);
26 void SLIDERPAINTER_paint(SliderPainter *painter, QPainter *p);
27
28 void SLIDERPAINTER_set_num_channels(SliderPainter *painter, int num_channels);
29
30 void SLIDERPAINTER_setValue(SliderPainter *painter, int value); // only works with graphics item.
31
32 float *SLIDERPAINTER_obtain_peak_value_pointers(SliderPainter *painter, int num_channels);
33 void SLIDERPAINTER_set_peak_value_pointers(SliderPainter *painter, int num_channels, float *pointers);
34 float *SLIDERPAINTER_obtain_automation_value_pointer(SliderPainter *painter);
35 int *SLIDERPAINTER_obtain_automation_color_pointer(SliderPainter *painter);
36 void SLIDERPAINTER_release_automation_pointers(SliderPainter *painter);
37
38 void SLIDERPAINTER_set_alternative_color(SliderPainter *painter);
39 void SLIDERPAINTER_set_string(SliderPainter *painter,QString string);
40 QString SLIDERPAINTER_get_string(SliderPainter *painter);