00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
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 }
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