* cosmetics to Workspace.hh CurrentWindowCmd.cc

* added first draft of new docs in asciidoc format, needs to be converted
  properly to roff-format, right now its just a temporary "home"
* rename of Coding_style to CODESTYLE
This commit is contained in:
mathias 2006-04-22 07:03:58 +00:00
parent edafa987be
commit dc53283060
6 changed files with 1635 additions and 26 deletions

View file

@ -1,5 +1,8 @@
(Format: Year/Month/Day) (Format: Year/Month/Day)
Changes for 0.9.16: Changes for 0.9.16:
*06/04/22:
* First draft of new docs in docs/asciidoc (Mathias)
* Cosmetics to Workspace.hh CurrentWindowCmd.cc
*06/04/21: *06/04/21:
* Minor fixes to slit transparency (esp if autohidden) (Simon) * Minor fixes to slit transparency (esp if autohidden) (Simon)
Slit.cc Slit.cc
@ -213,6 +216,7 @@ Changes for 0.9.16:
fluxbox.cc Screen.hh/cc Window.hh/cc FbWinFrame.hh/cc Remember.cc fluxbox.cc Screen.hh/cc Window.hh/cc FbWinFrame.hh/cc Remember.cc
Container.hh/cc FbTk/XLayer.hh/cc XLayerItem.cc fluxbox-nls.hh Container.hh/cc FbTk/XLayer.hh/cc XLayerItem.cc fluxbox-nls.hh
RowSmart/ColSmart/UnderMousePlacement.cc WinButton.cc RowSmart/ColSmart/UnderMousePlacement.cc WinButton.cc
------------------------------------------------------------- -------------------------------------------------------------
Changes for 0.9.15: Changes for 0.9.15:
*06/03/19: *06/03/19:
@ -377,6 +381,8 @@ Changes for 0.9.15:
src/ScreenResources.cc src/ScreenResources.cc
* Use fbsetroot in Default-Styles (Mathias) * Use fbsetroot in Default-Styles (Mathias)
data/styles/* data/styles/*
-------------------------------------------------------------
Changes for 0.9.14: Changes for 0.9.14:
*05/09/12: *05/09/12:
* Fixes #1281708, MenuIcon doesnt scale properly (thanx Erik-Jan) * Fixes #1281708, MenuIcon doesnt scale properly (thanx Erik-Jan)

31
doc/asciidoc/README.txt Normal file
View file

@ -0,0 +1,31 @@
whats this? this is the attempt to write the documentation for
fluxbox in ascii-doc format. how does it work?
well, we just edit fluxbox.txt from this directory. save it.
then we can produce pretty much any format we like:
man:
$> asciidoc -b docbook -d manpage fluxbox.txt
$> xmlto man fluxbox.xml
pdf:
$> asciidoc -b docbook -d manpage fluxbox.txt
$> docbook2pdf fluxbox.xml
docbook:
$> asciidoc -b docbook-sgml -d manpage fluxbox.txt
html:
$> asciidoc -b xhtml -d manpage fluxbox.txt
and many many more ways to do it.
what do we need? well, at least:
http://www.methods.co.nz/asciidoc/
http://cyberelk.net/tim/xmlto/
and the rest of the docbook-family + maybe pdftex.

1572
doc/asciidoc/fluxbox.txt Normal file

File diff suppressed because it is too large Load diff

View file

@ -53,15 +53,15 @@ void SendToWorkspaceCmd::real_execute() {
} }
void SendToNextWorkspaceCmd::real_execute() { void SendToNextWorkspaceCmd::real_execute() {
const int ws_nr = const int ws_nr =
( fbwindow().screen().currentWorkspaceID() + m_workspace_num ) % ( fbwindow().screen().currentWorkspaceID() + m_workspace_num ) %
fbwindow().screen().numberOfWorkspaces(); fbwindow().screen().numberOfWorkspaces();
fbwindow().screen().sendToWorkspace(ws_nr, &fbwindow(), false); fbwindow().screen().sendToWorkspace(ws_nr, &fbwindow(), false);
} }
void SendToPrevWorkspaceCmd::real_execute() { void SendToPrevWorkspaceCmd::real_execute() {
int ws_nr = fbwindow().screen().currentWorkspaceID() - m_workspace_num; int ws_nr = fbwindow().screen().currentWorkspaceID() - m_workspace_num;
if ( ws_nr < 0 ) if ( ws_nr < 0 )
ws_nr += fbwindow().screen().numberOfWorkspaces(); ws_nr += fbwindow().screen().numberOfWorkspaces();
fbwindow().screen().sendToWorkspace(ws_nr, &fbwindow(), false); fbwindow().screen().sendToWorkspace(ws_nr, &fbwindow(), false);
} }
@ -71,15 +71,15 @@ void TakeToWorkspaceCmd::real_execute() {
} }
void TakeToNextWorkspaceCmd::real_execute() { void TakeToNextWorkspaceCmd::real_execute() {
unsigned int workspace_num= unsigned int workspace_num=
( fbwindow().screen().currentWorkspaceID() + m_workspace_num ) % ( fbwindow().screen().currentWorkspaceID() + m_workspace_num ) %
fbwindow().screen().numberOfWorkspaces(); fbwindow().screen().numberOfWorkspaces();
fbwindow().screen().sendToWorkspace(workspace_num, &fbwindow()); fbwindow().screen().sendToWorkspace(workspace_num, &fbwindow());
} }
void TakeToPrevWorkspaceCmd::real_execute() { void TakeToPrevWorkspaceCmd::real_execute() {
int workspace_num= fbwindow().screen().currentWorkspaceID() - m_workspace_num; int workspace_num= fbwindow().screen().currentWorkspaceID() - m_workspace_num;
if ( workspace_num < 0 ) if ( workspace_num < 0 )
workspace_num += fbwindow().screen().numberOfWorkspaces(); workspace_num += fbwindow().screen().numberOfWorkspaces();
fbwindow().screen().sendToWorkspace(workspace_num, &fbwindow()); fbwindow().screen().sendToWorkspace(workspace_num, &fbwindow());
} }
@ -125,12 +125,12 @@ ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) :
m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } m_step_size_x(step_size_x), m_step_size_y(step_size_y) { }
void ResizeCmd::real_execute() { void ResizeCmd::real_execute() {
int w = std::max<int>(static_cast<int>(fbwindow().width() + int w = std::max<int>(static_cast<int>(fbwindow().width() +
m_step_size_x * fbwindow().winClient().width_inc), m_step_size_x * fbwindow().winClient().width_inc),
fbwindow().frame().titlebarHeight() * 2 + 10); fbwindow().frame().titlebarHeight() * 2 + 10);
int h = std::max<int>(static_cast<int>(fbwindow().height() + int h = std::max<int>(static_cast<int>(fbwindow().height() +
m_step_size_y * fbwindow().winClient().height_inc), m_step_size_y * fbwindow().winClient().height_inc),
fbwindow().frame().titlebarHeight() + 10); fbwindow().frame().titlebarHeight() + 10);
fbwindow().resize(w, h); fbwindow().resize(w, h);
} }
@ -143,7 +143,7 @@ void MoveToCmd::real_execute() {
int y = 0; int y = 0;
const int head = fbwindow().screen().getHead(fbwindow().fbWindow()); const int head = fbwindow().screen().getHead(fbwindow().fbWindow());
if (m_refc & MoveToCmd::LOWER) if (m_refc & MoveToCmd::LOWER)
y = fbwindow().screen().maxBottom(head) - fbwindow().height() - 2 * fbwindow().frame().window().borderWidth() - m_step_size_y; y = fbwindow().screen().maxBottom(head) - fbwindow().height() - 2 * fbwindow().frame().window().borderWidth() - m_step_size_y;
if (m_refc & MoveToCmd::UPPER) if (m_refc & MoveToCmd::UPPER)
@ -157,7 +157,7 @@ void MoveToCmd::real_execute() {
x = fbwindow().x(); x = fbwindow().x();
if (m_refc & MoveToCmd::IGNORE_Y) if (m_refc & MoveToCmd::IGNORE_Y)
y = fbwindow().y(); y = fbwindow().y();
fbwindow().move(x, y); fbwindow().move(x, y);
} }

View file

@ -22,8 +22,8 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
#ifndef WORKSPACE_HH #ifndef WORKSPACE_HH
#define WORKSPACE_HH #define WORKSPACE_HH
@ -42,7 +42,7 @@ class FluxboxWindow;
class WinClient; class WinClient;
/** /**
Handles a single workspace Handles a single workspace
*/ */
class Workspace:private FbTk::NotCopyable, private FbTk::Observer { class Workspace:private FbTk::NotCopyable, private FbTk::Observer {
public: public:
@ -51,7 +51,7 @@ public:
Workspace(BScreen &screen, FbTk::MultLayers &layermanager, const std::string &name, Workspace(BScreen &screen, FbTk::MultLayers &layermanager, const std::string &name,
unsigned int workspaceid = 0); unsigned int workspaceid = 0);
~Workspace(); ~Workspace();
void setLastFocusedWindow(FluxboxWindow *w); void setLastFocusedWindow(FluxboxWindow *w);
/// Set workspace name /// Set workspace name
@ -66,19 +66,19 @@ public:
void updateClientmenu(); void updateClientmenu();
BScreen &screen() { return m_screen; } BScreen &screen() { return m_screen; }
const BScreen &screen() const { return m_screen; } const BScreen &screen() const { return m_screen; }
FluxboxWindow *lastFocusedWindow() { return m_lastfocus; } FluxboxWindow *lastFocusedWindow() { return m_lastfocus; }
const FluxboxWindow *lastFocusedWindow() const { return m_lastfocus; } const FluxboxWindow *lastFocusedWindow() const { return m_lastfocus; }
inline FbTk::Menu &menu() { return m_clientmenu; } FbTk::Menu &menu() { return m_clientmenu; }
inline const FbTk::Menu &menu() const { return m_clientmenu; } const FbTk::Menu &menu() const { return m_clientmenu; }
/// name of this workspace /// name of this workspace
inline const std::string &name() const { return m_name; } const std::string &name() const { return m_name; }
/** /**
@return the number of this workspace, note: obsolete, should be in BScreen @return the number of this workspace, note: obsolete, should be in BScreen
*/ */
inline unsigned int workspaceID() const { return m_id; } unsigned int workspaceID() const { return m_id; }
const Windows &windowList() const { return m_windowlist; } const Windows &windowList() const { return m_windowlist; }
Windows &windowList() { return m_windowlist; } Windows &windowList() { return m_windowlist; }
@ -98,14 +98,14 @@ private:
typedef std::vector<std::string> Group; typedef std::vector<std::string> Group;
typedef std::vector<Group> GroupList; typedef std::vector<Group> GroupList;
static GroupList m_groups; ///< handle auto groupings static GroupList m_groups; ///< handle auto groupings
FbTk::MultLayers &m_layermanager; FbTk::MultLayers &m_layermanager;
Windows m_windowlist; Windows m_windowlist;
std::string m_name; ///< name of this workspace std::string m_name; ///< name of this workspace
unsigned int m_id; ///< id, obsolete, this should be in BScreen unsigned int m_id; ///< id, obsolete, this should be in BScreen
}; };