]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormForks.h
xforms clean-up, described in detail in my mail of 31 May. See
[lyx.git] / src / frontends / xforms / FormForks.h
1 // -*- C++ -*-
2 /**
3  * \file FormForks.h
4  * Copyright 2002 the LyX Team
5  * Read the file COPYING
6  *
7  * \author Angus Leeming, a.leeming@ic.ac.uk
8  */
9
10 #ifndef FORMFORKS_H
11 #define FORMFORKS_H
12
13 #ifdef __GNUG__
14 #pragma interface
15 #endif
16
17 #include "FormBase.h"
18
19 class ControlForks;
20 struct FD_forks;
21
22 class FormForks : public FormCB<ControlForks, FormDB<FD_forks> > {
23 public:
24         ///
25         FormForks(ControlForks &);
26
27         /// preemptive handler for feedback messages
28         void feedbackCB(FL_OBJECT *, int);
29
30 private:
31         /// Return the list of PIDs to kill to the controller.
32         virtual void apply();
33         /// Build the dialog.
34         virtual void build();
35         /// Update the dialog.
36         virtual void update();
37         /// Filter the inputs on callback from xforms
38         virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
39
40         ButtonPolicy::SMInput input_browser_children();
41         ButtonPolicy::SMInput input_browser_kill();
42         ButtonPolicy::SMInput input_button_all();
43         ButtonPolicy::SMInput input_button_add();
44         ButtonPolicy::SMInput input_button_remove();
45 };
46
47 #endif // FORMFORKS_H