news download themes documentation links










FbCommands.hh

00001 // FbCommands.hh for Fluxbox
00002 // Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
00003 //
00004 // Permission is hereby granted, free of charge, to any person obtaining a
00005 // copy of this software and associated documentation files (the "Software"),
00006 // to deal in the Software without restriction, including without limitation
00007 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
00008 // and/or sell copies of the Software, and to permit persons to whom the
00009 // Software is furnished to do so, subject to the following conditions:
00010 //
00011 // The above copyright notice and this permission notice shall be included in
00012 // all copies or substantial portions of the Software.
00013 //
00014 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00015 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00016 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00017 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00018 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00019 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00020 // DEALINGS IN THE SOFTWARE.
00021 
00022 // $Id: FbCommands.hh,v 1.17 2003/12/20 17:41:32 fluxgen Exp $
00023 
00024 // \file contains basic commands to restart, reconfigure, execute command and exit fluxbox
00025 
00026 #ifndef FBCOMMANDS_HH
00027 #define FBCOMMANDS_HH
00028 
00029 #include "Command.hh"
00030 
00031 #include <string>
00032 
00033 namespace FbCommands {
00034 
00036 class ExecuteCmd: public FbTk::Command {
00037 public:
00038     ExecuteCmd(const std::string &cmd, int screen_num = -1);
00039     void execute();
00040 private:
00041     std::string m_cmd;
00042     const int m_screen_num;
00043 };
00044 
00046 class ExitFluxboxCmd: public FbTk::Command {
00047 public:
00048     void execute();
00049 };
00050 
00052 class SaveResources: public FbTk::Command {
00053 public:
00054     void execute();
00055 };
00056 
00058 class RestartFluxboxCmd: public FbTk::Command {
00059 public:
00060     RestartFluxboxCmd(const std::string &cmd);
00061     void execute();
00062 private:
00063     std::string m_cmd;
00064     const int m_screen_num;
00065 };
00066 
00068 class ReconfigureFluxboxCmd: public FbTk::Command {
00069 public:
00070     void execute();
00071 };
00072 
00073 class ReloadStyleCmd: public FbTk::Command {
00074 public:
00075     void execute();
00076 };
00077 
00078 class SetStyleCmd: public FbTk::Command {
00079 public:
00080     explicit SetStyleCmd(const std::string &filename);
00081     void execute();
00082 private:
00083     std::string m_filename;
00084 };
00085 
00086 class ShowRootMenuCmd: public FbTk::Command {
00087 public:
00088     void execute();
00089 };
00090 
00091 class ShowWorkspaceMenuCmd: public FbTk::Command {
00092 public:
00093     void execute();
00094 };
00095 
00096 class SetWorkspaceNameCmd: public FbTk::Command {
00097 public:
00098     SetWorkspaceNameCmd(const std::string &name, int spaceid = -1);
00099     void execute();
00100 private:
00101     std::string m_name;
00102     int m_workspace;
00103 };
00104 
00105 class WorkspaceNameDialogCmd: public FbTk::Command {
00106 public:
00107     void execute();
00108 };
00109 
00110 class CommandDialogCmd: public FbTk::Command {
00111 public:
00112     void execute();
00113 };
00114 
00115 } // end namespace FbCommands
00116 
00117 class SetResourceValueCmd: public FbTk::Command {
00118 public:
00119     SetResourceValueCmd(const std::string &resourcename, const std::string &value);
00120     void execute();
00121 private:
00122     const std::string m_resname;
00123     const std::string m_value;
00124 };
00125 
00126 class SetResourceValueDialogCmd: public FbTk::Command {
00127 public:
00128     void execute();
00129 };
00130 
00131 class BindKeyCmd: public FbTk::Command {
00132 public:
00133     BindKeyCmd(const std::string &keybind);
00134     void execute();
00135 private:
00136     const std::string m_keybind;
00137 };
00138 
00139 #endif // FBCOMMANDS_HH

Fluxbox CVS-Jan-2003




      



Got comments about the page? Send them to webmaster.
If you have general Fluxbox related questions ask them on our irc channel or mailing lists.

Show Source








Designed by aLEczapKA