2
/******************************************************************************
3
* MODULE : aqua_other_widgets.h
4
* DESCRIPTION: some aqua widgets class declarations
5
* COPYRIGHT : (C) 2007 Massimiliano Gubinelli
6
*******************************************************************************
7
* This software falls under the GNU general public license and comes WITHOUT
8
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
9
* If you don't have this file, write to the Free Software Foundation, Inc.,
10
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11
******************************************************************************/
13
#ifndef AQUA_OTHER_WIDGETS_H
14
#define AQUA_OTHER_WIDGETS_H
17
#include "aqua_widget.h"
20
@class TMWidgetHelper;
21
@class TMButtonsController;
23
class aqua_tm_widget_rep: public aqua_view_widget_rep {
26
NSTextField *leftField, *rightField;
27
TMButtonsController *bc;
32
aqua_widget int_prompt;
33
aqua_widget int_input;
36
aqua_tm_widget_rep ();
37
~aqua_tm_widget_rep ();
39
virtual void send (slot s, blackbox val);
40
virtual blackbox query (slot s, int type_id);
41
virtual widget read (slot s, blackbox index);
42
virtual void write (slot s, blackbox index, widget w);
43
// virtual void notify (slot s, blackbox new_val);
45
// virtual void connect (slot s, widget w2, slot s2);
46
// virtual void deconnect (slot s, widget w2, slot s2);
47
virtual widget plain_window_widget (string s);
50
void do_interactive_prompt();
54
@class TMWindowController;
56
class aqua_window_widget_rep: public widget_rep {
58
TMWindowController *wc;
61
aqua_window_widget_rep (NSWindow *win);
62
~aqua_window_widget_rep ();
64
virtual void send (slot s, blackbox val);
65
virtual blackbox query (slot s, int type_id);
66
virtual widget read (slot s, blackbox index);
67
virtual void write (slot s, blackbox index, widget w);
68
virtual void notify (slot s, blackbox new_val);
69
// virtual void connect (slot s, widget w2, slot s2);
70
// virtual void deconnect (slot s, widget w2, slot s2);
72
TMWindowController *get_windowcontroller();
76
#endif // defined AQUA_OTHER_WIDGETS_H