~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Plugins/Cocoa/aqua_other_widgets.h

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA, Kamaraju Kusumanchi, kohda
  • Date: 2008-04-06 15:11:41 UTC
  • mfrom: (1.1.7 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080406151141-w0sg20jnv86mlt6f
Tags: 1:1.0.6.14-1
[Kamaraju Kusumanchi <kamaraju@gmail.com>]
* New upstream release
* 01_american.dpatch is updated
* Since thread support in guile-1.8 is now disabled, the segmentation faults
  should not arise anymore. More info at #439923. (Closes: #450499, #458685)
[kohda]
* This version fixed menu problem.  (Closes: #447083)
* Reverted orig.tar.gz to the upstream tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
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
******************************************************************************/
 
12
 
 
13
#ifndef AQUA_OTHER_WIDGETS_H
 
14
#define AQUA_OTHER_WIDGETS_H
 
15
 
 
16
 
 
17
#include "aqua_widget.h"
 
18
 
 
19
 
 
20
@class TMWidgetHelper;
 
21
@class TMButtonsController;
 
22
 
 
23
class aqua_tm_widget_rep: public aqua_view_widget_rep {
 
24
public: 
 
25
  NSScrollView *sv;
 
26
        NSTextField *leftField, *rightField;
 
27
        TMButtonsController *bc;
 
28
        TMWidgetHelper *wh;
 
29
        NSToolbar *toolbar;
 
30
        
 
31
  
 
32
  aqua_widget int_prompt;
 
33
  aqua_widget int_input;
 
34
 
 
35
public:
 
36
  aqua_tm_widget_rep ();
 
37
  ~aqua_tm_widget_rep ();
 
38
        
 
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);
 
44
        
 
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);
 
48
        
 
49
        void layout();
 
50
  void do_interactive_prompt();
 
51
};
 
52
 
 
53
 
 
54
@class TMWindowController;
 
55
 
 
56
class aqua_window_widget_rep: public widget_rep {
 
57
public: 
 
58
        TMWindowController *wc;
 
59
        
 
60
public:
 
61
  aqua_window_widget_rep (NSWindow *win);
 
62
  ~aqua_window_widget_rep ();
 
63
        
 
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);
 
71
        
 
72
        TMWindowController *get_windowcontroller();
 
73
};
 
74
 
 
75
 
 
76
#endif // defined AQUA_OTHER_WIDGETS_H