cmd_minimize.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * cmd_minimize.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id: 429631244c94b7bd55095abc22c946fcbb6d94cd $
00006  *
00007  * Authors: Mohammed Adnène Trojette     <adn@via.ecp.fr>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License along
00020  * with this program; if not, write to the Free Software Foundation, Inc.,
00021  * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef CMD_MINIMIZE_HPP
00025 #define CMD_MINIMIZE_HPP
00026 
00027 #include "cmd_generic.hpp"
00028 
00029 class WindowManager;
00030 class TopWindow;
00031 
00032 
00033 DEFINE_COMMAND(Minimize, "minimize" )
00034 DEFINE_COMMAND(Restore, "restore" )
00035 
00036 /// Command to maximize a window
00037 class CmdMaximize: public CmdGeneric
00038 {
00039 public:
00040     /// Maximize the given layout
00041     CmdMaximize( intf_thread_t *pIntf, WindowManager &rWindowManager,
00042                  TopWindow &rWindow );
00043     virtual ~CmdMaximize() { }
00044     virtual void execute();
00045     virtual string getType() const { return "maximize"; }
00046 
00047 private:
00048     WindowManager &m_rWindowManager;
00049     TopWindow &m_rWindow;
00050 };
00051 
00052 
00053 /// Command to unmaximize a window
00054 class CmdUnmaximize: public CmdGeneric
00055 {
00056 public:
00057     /// Unmaximize the given layout
00058     CmdUnmaximize( intf_thread_t *pIntf, WindowManager &rWindowManager,
00059                  TopWindow &rWindow );
00060     virtual ~CmdUnmaximize() { }
00061     virtual void execute();
00062     virtual string getType() const { return "unmaximize"; }
00063 
00064 private:
00065     WindowManager &m_rWindowManager;
00066     TopWindow &m_rWindow;
00067 };
00068 
00069 
00070 DEFINE_COMMAND( AddInTray,         "add in tray" )
00071 DEFINE_COMMAND( RemoveFromTray,    "remove from tray" )
00072 DEFINE_COMMAND( AddInTaskBar,      "add in taskbar" )
00073 DEFINE_COMMAND( RemoveFromTaskBar, "remove from taskbar" )
00074 
00075 #endif

Generated on Tue May 25 08:04:58 2010 for VLC by  doxygen 1.5.6