* skins2:
[vlc.git] / modules / gui / skins2 / commands / cmd_minimize.hpp
index 4748313..14a72c3 100644 (file)
 
 #include "cmd_generic.hpp"
 
 
 #include "cmd_generic.hpp"
 
+class WindowManager;
+class TopWindow;
+
 
 DEFINE_COMMAND(Minimize, "minimize" )
 DEFINE_COMMAND(Restore, "restore" )
 
 DEFINE_COMMAND(Minimize, "minimize" )
 DEFINE_COMMAND(Restore, "restore" )
+
+/// Command to maximize a window
+class CmdMaximize: public CmdGeneric
+{
+    public:
+        /// Maximize the given layout
+        CmdMaximize( intf_thread_t *pIntf, WindowManager &rWindowManager,
+                     TopWindow &rWindow );
+        virtual ~CmdMaximize() {}
+
+        /// This method does the real job of the command
+        virtual void execute();
+
+        /// Return the type of the command
+        virtual string getType() const { return "maximize"; }
+
+    private:
+        WindowManager &m_rWindowManager;
+        TopWindow &m_rWindow;
+};
+
+
+/// Command to unmaximize a window
+class CmdUnmaximize: public CmdGeneric
+{
+    public:
+        /// Unmaximize the given layout
+        CmdUnmaximize( intf_thread_t *pIntf, WindowManager &rWindowManager,
+                     TopWindow &rWindow );
+        virtual ~CmdUnmaximize() {}
+
+        /// This method does the real job of the command
+        virtual void execute();
+
+        /// Return the type of the command
+        virtual string getType() const { return "unmaximize"; }
+
+    private:
+        WindowManager &m_rWindowManager;
+        TopWindow &m_rWindow;
+};
+
+
 DEFINE_COMMAND(AddInTray, "add in tray" )
 DEFINE_COMMAND(RemoveFromTray, "remove from tray" )
 DEFINE_COMMAND(AddInTaskBar, "add in taskbar" )
 DEFINE_COMMAND(AddInTray, "add in tray" )
 DEFINE_COMMAND(RemoveFromTray, "remove from tray" )
 DEFINE_COMMAND(AddInTaskBar, "add in taskbar" )