skins2: remove all hardcoded hotkeys
[vlc.git] / modules / gui / skins2 / commands / cmd_minimize.hpp
blob429631244c94b7bd55095abc22c946fcbb6d94cd
1 /*****************************************************************************
2 * cmd_minimize.hpp
3 *****************************************************************************
4 * Copyright (C) 2003 the VideoLAN team
5 * $Id$
7 * Authors: Mohammed Adnène Trojette <adn@via.ecp.fr>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef CMD_MINIMIZE_HPP
25 #define CMD_MINIMIZE_HPP
27 #include "cmd_generic.hpp"
29 class WindowManager;
30 class TopWindow;
33 DEFINE_COMMAND(Minimize, "minimize" )
34 DEFINE_COMMAND(Restore, "restore" )
36 /// Command to maximize a window
37 class CmdMaximize: public CmdGeneric
39 public:
40 /// Maximize the given layout
41 CmdMaximize( intf_thread_t *pIntf, WindowManager &rWindowManager,
42 TopWindow &rWindow );
43 virtual ~CmdMaximize() { }
44 virtual void execute();
45 virtual string getType() const { return "maximize"; }
47 private:
48 WindowManager &m_rWindowManager;
49 TopWindow &m_rWindow;
53 /// Command to unmaximize a window
54 class CmdUnmaximize: public CmdGeneric
56 public:
57 /// Unmaximize the given layout
58 CmdUnmaximize( intf_thread_t *pIntf, WindowManager &rWindowManager,
59 TopWindow &rWindow );
60 virtual ~CmdUnmaximize() { }
61 virtual void execute();
62 virtual string getType() const { return "unmaximize"; }
64 private:
65 WindowManager &m_rWindowManager;
66 TopWindow &m_rWindow;
70 DEFINE_COMMAND( AddInTray, "add in tray" )
71 DEFINE_COMMAND( RemoveFromTray, "remove from tray" )
72 DEFINE_COMMAND( AddInTaskBar, "add in taskbar" )
73 DEFINE_COMMAND( RemoveFromTaskBar, "remove from taskbar" )
75 #endif