~ubuntu-branches/ubuntu/natty/vlc/natty

« back to all changes in this revision

Viewing changes to modules/gui/skins2/commands/cmd_minimize.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-06-25 01:09:16 UTC
  • mfrom: (1.1.30 upstream)
  • Revision ID: james.westby@ubuntu.com-20100625010916-asxhep2mutg6g6pd
Tags: 1.1.0-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - build and install the libx264 plugin
  - add Xb-Npp header to vlc package
  - Add apport hook to include more vlc dependencies in bug reports
* Drop xulrunner patches.
* Drop 502_xulrunner_191.diff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * cmd_minimize.cpp
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2003 the VideoLAN team
5
 
 * $Id: 043c440d087cff68b955a9cf2169393d431dd485 $
 
5
 * $Id: d9302b51936f3930ad5adfc79e52dc8b2367cf71 $
6
6
 *
7
7
 * Authors: Mohammed Adnène Trojette     <adn@via.ecp.fr>
8
8
 *          Olivier Teulière <ipkiss@via.ecp.fr>
17
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
18
 * GNU General Public License for more details.
19
19
 *
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.
 
20
 * You should have received a copy of the GNU General Public License along
 
21
 * with this program; if not, write to the Free Software Foundation, Inc.,
 
22
 * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23
23
 *****************************************************************************/
24
24
 
25
25
#include "cmd_minimize.hpp"
29
29
 
30
30
void CmdMinimize::execute()
31
31
{
32
 
    // Get the instance of OSFactory
33
 
    OSFactory *pOsFactory = OSFactory::instance( getIntf() );
34
 
    pOsFactory->minimize();
 
32
    OSFactory::instance( getIntf() )->minimize();
35
33
}
36
34
 
37
35
 
38
36
void CmdRestore::execute()
39
37
{
40
 
    // Get the instance of OSFactory
41
 
    OSFactory *pOsFactory = OSFactory::instance( getIntf() );
42
 
    pOsFactory->restore();
43
 
}
44
 
 
45
 
 
46
 
CmdMaximize::CmdMaximize( intf_thread_t *pIntf,
47
 
                          WindowManager &rWindowManager,
48
 
                          TopWindow &rWindow ):
49
 
    CmdGeneric( pIntf ), m_rWindowManager( rWindowManager ),
50
 
    m_rWindow( rWindow )
51
 
{
52
 
}
 
38
    OSFactory::instance( getIntf() )->restore();
 
39
}
 
40
 
 
41
 
 
42
CmdMaximize::CmdMaximize( intf_thread_t *pIntf, WindowManager &rWindowManager,
 
43
                          TopWindow &rWindow )
 
44
    : CmdGeneric( pIntf ), m_rWindowManager( rWindowManager ),
 
45
      m_rWindow( rWindow ) { }
53
46
 
54
47
 
55
48
void CmdMaximize::execute()
61
54
 
62
55
CmdUnmaximize::CmdUnmaximize( intf_thread_t *pIntf,
63
56
                              WindowManager &rWindowManager,
64
 
                              TopWindow &rWindow ):
65
 
    CmdGeneric( pIntf ), m_rWindowManager( rWindowManager ),
66
 
    m_rWindow( rWindow )
67
 
{
68
 
}
 
57
                              TopWindow &rWindow )
 
58
    : CmdGeneric( pIntf ), m_rWindowManager( rWindowManager ),
 
59
      m_rWindow( rWindow ) { }
69
60
 
70
61
 
71
62
void CmdUnmaximize::execute()
77
68
 
78
69
void CmdAddInTray::execute()
79
70
{
80
 
    // Get the instance of OSFactory
81
 
    OSFactory *pOsFactory = OSFactory::instance( getIntf() );
82
 
    pOsFactory->addInTray();
 
71
    OSFactory::instance( getIntf() )->addInTray();
83
72
}
84
73
 
85
74
 
86
75
void CmdRemoveFromTray::execute()
87
76
{
88
 
    // Get the instance of OSFactory
89
 
    OSFactory *pOsFactory = OSFactory::instance( getIntf() );
90
 
    pOsFactory->removeFromTray();
 
77
    OSFactory::instance( getIntf() )->removeFromTray();
91
78
}
92
79
 
93
80
 
94
81
void CmdAddInTaskBar::execute()
95
82
{
96
 
    // Get the instance of OSFactory
97
 
    OSFactory *pOsFactory = OSFactory::instance( getIntf() );
98
 
    pOsFactory->addInTaskBar();
 
83
    OSFactory::instance( getIntf() )->addInTaskBar();
99
84
}
100
85
 
101
86
 
102
87
void CmdRemoveFromTaskBar::execute()
103
88
{
104
 
    // Get the instance of OSFactory
105
 
    OSFactory *pOsFactory = OSFactory::instance( getIntf() );
106
 
    pOsFactory->removeFromTaskBar();
 
89
    OSFactory::instance( getIntf() )->removeFromTaskBar();
107
90
}
108
91