Add Russian translation provided by Валерий Крувялис <valkru@mail.ru>
[xiph-mirror.git] / sushivision / panel.h
blob4e36b035234e60f014da4b0ea156af13556141d8
1 /*
3 * sushivision copyright (C) 2006-2007 Monty <monty@xiph.org>
5 * sushivision is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * sushivision is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with sushivision; see the file COPYING. If not, write to the
17 * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 #define STATUS_IDLE 0
23 #define STATUS_BUSY 1
24 #define STATUS_WORKING 2
26 struct sv_panel {
27 pthread_rwlock_t panel_m;
28 pthread_mutex_t status_m;
30 int number;
31 char *name;
32 char *legend;
34 int dimensions;
35 int *dimension_list;
37 // axis 0 == X
38 // axis 1 == Y
39 // axis 2 == Z
40 // >2 == auxiliary axes
41 char **axis_names;
42 int *axis_dims;
43 int axes;
45 // mem and data locked by status_m
46 int recompute_pending;
47 int dims;
48 int w;
49 int h;
50 sv_dim_data_t *dim_data;
52 // locked by panel_m
53 sv_plane_bg_t *bg; // composite background plane
54 int planes;
55 sv_plane_t **plane_list;
56 int next_plane;
58 // UI objects
59 sv_plot_t *plot;
60 GtkWidget *obj_table;
61 GtkWidget *dim_table;
62 sv_spinner_t *spinner;
64 //sv_dimwidget_t *dw;
65 //sv_objwidget_t *ow;
67 double selectbox[4]; // x1,y1,x2,y2
69 } sv_panel_t;