QTfrontend/util/platform/M3Panel.mm
changeset 8381 588a8e6e2041
parent 8064 202e2cce7077
child 9080 9b42757d7e71
equal deleted inserted replaced
8380:0b375a3ceaa0 8381:588a8e6e2041
       
     1 /*
       
     2  * Hedgewars, a free turn based strategy game
       
     3  * Copyright (c) 2004-2012 Andrey Korotaev <unC0Rr@gmail.com>
       
     4  *
       
     5  * This program is free software; you can redistribute it and/or modify
       
     6  * it under the terms of the GNU General Public License as published by
       
     7  * the Free Software Foundation; version 2 of the License
       
     8  *
       
     9  * This program is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    12  * GNU General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU General Public License
       
    15  * along with this program; if not, write to the Free Software
       
    16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
       
    17  */
       
    18 
       
    19 #include "M3Panel.h"
       
    20 #include "M3InstallController.h"
       
    21 
       
    22 #include <Cocoa/Cocoa.h>
       
    23 
       
    24 class M3Panel::Private
       
    25 {
       
    26     public:
       
    27         M3InstallController *install;
       
    28 };
       
    29 
       
    30 M3Panel::M3Panel(void)
       
    31 {
       
    32     m = new M3Panel::Private();
       
    33 
       
    34     m->install = [[M3InstallController alloc] init];
       
    35     [m->install retain];
       
    36 }
       
    37 
       
    38 M3Panel::~M3Panel()
       
    39 {
       
    40     [m->install release];
       
    41     delete m;
       
    42 }
       
    43 
       
    44 void M3Panel::showInstallController()
       
    45 {
       
    46     [m->install displayInstaller];
       
    47 }