4
* This file contains a number of general purpose functions which are
5
* always needed regardless of the GUI implementation. They will be implemented
6
* in one of the gnome_* files.
4
* Copyright (C) 1997 Rasca Gmelch, Berlin
5
* Copyright (C) 2003,04 Karl H. Beckers, Frankfurt
10
* Copyright (C) 2003-07 Karl H. Beckers, Frankfurt
11
* EMail: khb@jarre-de-the.net
7
13
* This program is free software; you can redistribute it and/or modify
8
14
* it under the terms of the GNU General Public License as published by
12
18
* This program is distributed in the hope that it will be useful,
13
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
21
* GNU General Public License for more details.
17
23
* You should have received a copy of the GNU General Public License
18
24
* along with this program; if not, write to the Free Software
19
25
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24
Boolean XVC_PreInit( int argc, char **argv, AppData *app );
25
Boolean XVC_CreateGUI ( AppData *app );
26
Boolean XVC_CreateFrame ( AppData *app );
27
Boolean XVC_InitGUI ( AppData *app );
28
int XVC_RunGUI (void);
30
void XVC_AddTimeout(int ms, void *, Job *job);
31
void XVC_ChangeGUILabel(int pic_no);
32
void XVC_ChangeFrame(int x, int y, int width, int height, Boolean reposition_control);
33
void XVC_StopCapture(Job *job);
34
void XVC_StartCapture(Job *job);
36
Boolean XVC_ReadOptionsFile( AppData *app );
37
Boolean XVC_WriteOptionsFile( Job *job );
38
void XVC_FrameMonitor(Job *job, int measured_time);
28
#ifndef __XVC_CONTROL_H__
29
#define __XVC_CONTROL_H__
31
#ifndef DOXYGEN_SHOULD_SKIP_THIS
32
#include <X11/Intrinsic.h>
33
#include "xv_error_item.h"
34
#endif // DOXYGEN_SHOULD_SKIP_THIS
36
// the following defines the xvc interface for UIs
37
// they need to be implemented by any GUI anybody wants to add in the
38
// future. Look at gnome_ui.[c|h] for how to do that
40
Boolean xvc_init_pre (int argc, char **argv);
41
Boolean xvc_ui_create ();
42
Boolean xvc_frame_create ();
43
void xvc_check_start_options ();
44
Boolean xvc_ui_init (XVC_ErrorListItem * errors);
45
int xvc_ui_run (void);
47
void xvc_idle_add (void *, void *);
48
Boolean xvc_change_filename_display ();
49
void xvc_capture_stop_signal (Boolean wait_for_termination);
50
Boolean xvc_capture_stop ();
51
void xvc_capture_start ();
52
Boolean xvc_frame_monitor ();
54
// these are defined in options.c
55
Boolean xvc_read_options_file ();
56
Boolean xvc_write_options_file ();
58
#endif // __XVC_CONTROL_H__