1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2003 the VideoLAN team
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"
33 DEFINE_COMMAND(Minimize
, "minimize" )
34 DEFINE_COMMAND(Restore
, "restore" )
36 /// Command to maximize a window
37 class CmdMaximize
: public CmdGeneric
40 /// Maximize the given layout
41 CmdMaximize( intf_thread_t
*pIntf
, WindowManager
&rWindowManager
,
43 virtual ~CmdMaximize() { }
44 virtual void execute();
45 virtual string
getType() const { return "maximize"; }
48 WindowManager
&m_rWindowManager
;
53 /// Command to unmaximize a window
54 class CmdUnmaximize
: public CmdGeneric
57 /// Unmaximize the given layout
58 CmdUnmaximize( intf_thread_t
*pIntf
, WindowManager
&rWindowManager
,
60 virtual ~CmdUnmaximize() { }
61 virtual void execute();
62 virtual string
getType() const { return "unmaximize"; }
65 WindowManager
&m_rWindowManager
;
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" )