MacOS: fixes memory management issue. closes #3807
[vlc/solaris.git] / modules / gui / macosx / about.h
blobb04355f7eda1742f9053111e6708c9a12e0bfc63
1 /*****************************************************************************
2 * about.h: MacOS X About Panel
3 *****************************************************************************
4 * Copyright (C) 2001-2007 the VideoLAN team
5 * $Id$
7 * Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
8 * Felix Paul Kühne <fkuehne -at- videolan.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 #import <WebKit/WebKit.h> //we need to be here, because we're using a WebView object below
27 /*****************************************************************************
28 * VLAboutBox interface
29 *****************************************************************************/
30 @interface VLAboutBox : NSObject
32 /* main about panel and stuff related to its views */
33 IBOutlet id o_about_window;
34 IBOutlet id o_name_version_field;
35 IBOutlet id o_revision_field;
36 IBOutlet id o_copyright_field;
37 IBOutlet id o_credits_textview;
38 IBOutlet id o_credits_scrollview;
39 IBOutlet id o_gpl_btn;
40 IBOutlet id o_name_field;
42 NSTimer *o_scroll_timer;
43 float f_current;
44 float f_end;
45 NSTimeInterval i_start;
46 BOOL b_restart;
47 BOOL b_isSetUp;
49 /* generic help window */
50 IBOutlet id o_help_window;
51 IBOutlet WebView *o_help_web_view; //we may _not_ use id here because of method name collisions
52 IBOutlet id o_help_bwd_btn;
53 IBOutlet id o_help_fwd_btn;
54 IBOutlet id o_help_home_btn;
56 /* licence window */
57 IBOutlet id o_gpl_window;
58 IBOutlet id o_gpl_field;
61 + (VLAboutBox *)sharedInstance;
62 - (void)showAbout;
63 - (void)VLCWillTerminate;
64 - (void)showHelp;
65 - (IBAction)showGPL:(id)sender;
66 - (IBAction)helpGoHome:(id)sender;
68 @end