1
// FbCommands.hh for Fluxbox
2
// Copyright (c) 2003 - 2005 Henrik Kinnunen (fluxgen at fluxbox dot org)
4
// Permission is hereby granted, free of charge, to any person obtaining a
5
// copy of this software and associated documentation files (the "Software"),
6
// to deal in the Software without restriction, including without limitation
7
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
// and/or sell copies of the Software, and to permit persons to whom the
9
// Software is furnished to do so, subject to the following conditions:
11
// The above copyright notice and this permission notice shall be included in
12
// all copies or substantial portions of the Software.
14
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20
// DEALINGS IN THE SOFTWARE.
22
// $Id: FbCommands.hh 3977 2005-04-30 10:29:06Z fluxgen $
24
// \file contains basic commands to restart, reconfigure, execute command and exit fluxbox
33
namespace FbCommands {
35
/// executes a system command
36
class ExecuteCmd: public FbTk::Command {
38
ExecuteCmd(const std::string &cmd, int screen_num = -1);
42
const int m_screen_num;
46
class ExportCmd : public FbTk::Command {
48
ExportCmd(const std::string& name, const std::string& value);
56
class ExitFluxboxCmd: public FbTk::Command {
62
class SaveResources: public FbTk::Command {
68
class RestartFluxboxCmd: public FbTk::Command {
70
RestartFluxboxCmd(const std::string &cmd);
76
/// reconfigures fluxbox
77
class ReconfigureFluxboxCmd: public FbTk::Command {
82
class ReloadStyleCmd: public FbTk::Command {
87
class SetStyleCmd: public FbTk::Command {
89
explicit SetStyleCmd(const std::string &filename);
92
std::string m_filename;
95
class ShowRootMenuCmd: public FbTk::Command {
100
class ShowWorkspaceMenuCmd: public FbTk::Command {
105
class SetWorkspaceNameCmd: public FbTk::Command {
107
SetWorkspaceNameCmd(const std::string &name, int spaceid = -1);
114
class WorkspaceNameDialogCmd: public FbTk::Command {
119
class CommandDialogCmd: public FbTk::Command {
125
class SetResourceValueCmd: public FbTk::Command {
127
SetResourceValueCmd(const std::string &resourcename, const std::string &value);
130
const std::string m_resname;
131
const std::string m_value;
134
class SetResourceValueDialogCmd: public FbTk::Command {
139
class BindKeyCmd: public FbTk::Command {
141
BindKeyCmd(const std::string &keybind);
144
const std::string m_keybind;
147
/// deiconifies iconified windows
148
class DeiconifyCmd: public FbTk::Command {
158
CURRENT, /// deiconification on current workspace
159
ORIGIN, /// deiconification on origin workspace, change to that ws
160
ORIGINQUIET /// deiconification on origin workspace, dont change ws
163
DeiconifyCmd(Mode mode= LASTWORKSPACE,
164
Destination dest= CURRENT);
171
} // end namespace FbCommands
173
#endif // FBCOMMANDS_HH