~ubuntu-branches/ubuntu/intrepid/blender/intrepid-updates

« back to all changes in this revision

Viewing changes to intern/ghost/intern/GHOST_SystemCarbon.h

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-08-08 02:45:40 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080808024540-kkjp7ekfivzhuw3l
Tags: 2.46+dfsg-4
* Fix python syntax warning in import_dxf.py, which led to nasty output
  in installation/upgrade logs during byte-compilation, using a patch
  provided by the script author (Closes: #492280):
   - debian/patches/45_fix_python_syntax_warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * $Id: GHOST_SystemCarbon.h,v 1.8 2006/04/05 11:59:20 ton Exp $
3
 
 * ***** BEGIN GPL/BL DUAL LICENSE BLOCK *****
 
2
 * $Id: GHOST_SystemCarbon.h 14444 2008-04-16 22:40:48Z hos $
 
3
 * ***** BEGIN GPL LICENSE BLOCK *****
4
4
 *
5
5
 * This program is free software; you can redistribute it and/or
6
6
 * modify it under the terms of the GNU General Public License
7
7
 * as published by the Free Software Foundation; either version 2
8
 
 * of the License, or (at your option) any later version. The Blender
9
 
 * Foundation also sells licenses for use in proprietary software under
10
 
 * the Blender License.  See http://www.blender.org/BL/ for information
11
 
 * about this.
 
8
 * of the License, or (at your option) any later version.
12
9
 *
13
10
 * This program is distributed in the hope that it will be useful,
14
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26
23
 *
27
24
 * Contributor(s): none yet.
28
25
 *
29
 
 * ***** END GPL/BL DUAL LICENSE BLOCK *****
 
26
 * ***** END GPL LICENSE BLOCK *****
30
27
 */
31
28
/**
32
29
 * @file        GHOST_SystemCarbon.h
60
57
    /**
61
58
     * Constructor.
62
59
     */
63
 
    GHOST_SystemCarbon::GHOST_SystemCarbon();
 
60
    GHOST_SystemCarbon();
64
61
    
65
62
    /** 
66
63
     * Destructor.
67
64
     */
68
 
    GHOST_SystemCarbon::~GHOST_SystemCarbon();
 
65
    ~GHOST_SystemCarbon();
69
66
    
70
67
        /***************************************************************************************
71
68
         ** Time(r) functionality
168
165
         */
169
166
        virtual GHOST_TSuccess getButtons(GHOST_Buttons& buttons) const;
170
167
 
 
168
        /**
 
169
         * Returns Clipboard data
 
170
         * @param flag          Indicate which buffer to return
 
171
         * @return              Returns the selected buffer
 
172
         */
 
173
        virtual GHOST_TUns8* getClipboard(int flag) const;
 
174
        
 
175
        /**
 
176
         * Puts buffer to system clipboard
 
177
         * @param buffer        The buffer to be copied
 
178
         * @param flag          Indicates which buffer to copy too Only used on X11
 
179
         */
 
180
        virtual void putClipboard(GHOST_TInt8 *buffer, int flag) const;
 
181
 
171
182
protected:
172
183
        /**
173
184
         * Initializes the system.
182
193
         */
183
194
        virtual GHOST_TSuccess exit();
184
195
 
 
196
        
 
197
    /**
 
198
     * Handles a tablet event.
 
199
     * @param event     A Mac event.
 
200
     * @return Indication whether the event was handled. 
 
201
     */
 
202
    OSStatus handleTabletEvent(EventRef event);
185
203
    /**
186
204
     * Handles a mouse event.
187
205
     * @param event     A Mac event.
217
235
     */
218
236
    bool handleMenuCommand(GHOST_TInt32 menuResult);
219
237
    
 
238
    /* callback for blender generated events */
 
239
//      static OSStatus blendEventHandlerProc(EventHandlerCallRef handler, EventRef event, void* userData);
 
240
 
 
241
 
220
242
    /**
221
243
     * Callback for Carbon when it has events.
222
244
     */