all repos — fluxbox @ 4cc810b0d39917d37fa08034ac7dd509292c9ce3

custom fork of the fluxbox windowmanager

remove some (hopefully) unneeded header includes
Mark Tiefenbruck mark@fluxbox.org
commit

4cc810b0d39917d37fa08034ac7dd509292c9ce3

parent

de6d340ba3a1a64ee46e6562d0bdab062cb92a1e

M src/ButtonTool.hhsrc/ButtonTool.hh

@@ -25,7 +25,8 @@ #ifndef BUTTONTOOL_HH

#define BUTTONTOOL_HH #include "GenericTool.hh" -#include "FbTk/Observer.hh" + +#include <X11/Xlib.h> class ButtonTheme;
M src/ClientMenu.hhsrc/ClientMenu.hh

@@ -24,8 +24,6 @@

#ifndef CLIENTMENU_HH #define CLIENTMENU_HH -#include <list> - #include "FbMenu.hh" class BScreen;
M src/CommandDialog.hhsrc/CommandDialog.hh

@@ -27,12 +27,11 @@ #define RUNCOMMANDDIALOG_HH

#include "FbTk/TextBox.hh" #include "FbTk/TextButton.hh" -#include "FbTk/Font.hh" #include "FbTk/GContext.hh" -#include "FbTk/Command.hh" #include "FbTk/RefCount.hh" class BScreen; +class Command; /** * Displays a fluxbox command dialog which executes fluxbox
M src/Ewmh.ccsrc/Ewmh.cc

@@ -38,6 +38,7 @@ #include "FbTk/I18n.hh"

#include "FbTk/XLayerItem.hh" #include "FbTk/XLayer.hh" +#include <X11/Xatom.h> #include <iostream> #include <algorithm> #include <new>
M src/Ewmh.hhsrc/Ewmh.hh

@@ -23,11 +23,6 @@ // $Id$

#include "AtomHandler.hh" #include "FbTk/FbString.hh" -#include "AttentionNoticeHandler.hh" - -#include <X11/Xatom.h> -#include <vector> -#include <map> /// Implementes Extended Window Manager Hints ( http://www.freedesktop.org/Standards/wm-spec ) class Ewmh:public AtomHandler {
M src/FbAtoms.hhsrc/FbAtoms.hh

@@ -24,7 +24,6 @@ #ifndef FBATOMS_HH

#define FBATOMS_HH #include <X11/Xlib.h> -#include <X11/Xatom.h> /// atom handler for basic X atoms class FbAtoms {
M src/FbMenu.hhsrc/FbMenu.hh

@@ -26,7 +26,6 @@ #define FBMENU_HH

#include "Menu.hh" #include "XLayerItem.hh" -#include <memory> namespace FbTk { class MenuTheme;
M src/FbTk/BoolMenuItem.hhsrc/FbTk/BoolMenuItem.hh

@@ -23,9 +23,10 @@ #ifndef FBTK_BOOLMENUITEM_HH

#define FBTK_BOOLMENUITEM_HH #include "MenuItem.hh" -#include "Accessor.hh" namespace FbTk { + +class Accessor<class T>; /// a bool menu item class BoolMenuItem: public FbTk::MenuItem {
M src/FbTk/Button.hhsrc/FbTk/Button.hh

@@ -33,7 +33,6 @@ #include "Color.hh"

#include "Text.hh" #include <X11/Xlib.h> -#include <memory> namespace FbTk {
M src/FbTk/Color.hhsrc/FbTk/Color.hh

@@ -27,8 +27,6 @@

#ifndef FBTK_COLOR_HH #define FBTK_COLOR_HH -#include "NotCopyable.hh" - namespace FbTk { /// Allocates rgb color and pixel value
M src/FbTk/Container.hhsrc/FbTk/Container.hh

@@ -29,7 +29,6 @@ #include "NotCopyable.hh"

#include "Text.hh" // for Orientation #include <list> -#include <functional> namespace FbTk {
M src/FbTk/EventManager.ccsrc/FbTk/EventManager.cc

@@ -22,6 +22,7 @@

// $Id$ #include "EventManager.hh" +#include "EventHandler.hh" #include "FbWindow.hh" #include "App.hh"
M src/FbTk/EventManager.hhsrc/FbTk/EventManager.hh

@@ -21,12 +21,13 @@ // DEALINGS IN THE SOFTWARE.

// $Id$ -#include "EventHandler.hh" #include <map> +#include <X11/Xlib.h> namespace FbTk { class FbWindow; +class EventHandler; /** singleton mediator for EventHandlers
M src/FbTk/Font.hhsrc/FbTk/Font.hh

@@ -25,7 +25,6 @@ #ifndef FBTK_FONT_HH

#define FBTK_FONT_HH #include <X11/Xlib.h> -#include <X11/Xresource.h> #ifdef HAVE_CONFIG_H #include "config.h"
M src/FbTk/FontImp.hhsrc/FbTk/FontImp.hh

@@ -24,12 +24,10 @@

#ifndef FBTK_FONTIMP_HH #define FBTK_FONTIMP_HH -#include "Color.hh" -#include "Font.hh" +#include "Text.hh" +#include "FbString.hh" #include <X11/Xlib.h> - -#include <string> namespace FbTk {
M src/FbTk/ImageControl.hhsrc/FbTk/ImageControl.hh

@@ -34,9 +34,7 @@ #include "Timer.hh"

#include "NotCopyable.hh" #include <X11/Xlib.h> -#include <X11/Xutil.h> #include <list> -#include <set> namespace FbTk {
M src/FbTk/IntMenuItem.hhsrc/FbTk/IntMenuItem.hh

@@ -23,11 +23,12 @@ #ifndef FBTK_INTMENUITEM_HH

#define FBTK_INTMENUITEM_HH #include "MenuItem.hh" -#include "Accessor.hh" #include <string> namespace FbTk { + +class Accessor<class T>; /// Changes an resource integer value between min and max class IntMenuItem: public FbTk::MenuItem {
M src/FbTk/KeyUtil.ccsrc/FbTk/KeyUtil.cc

@@ -24,6 +24,8 @@

#include "KeyUtil.hh" #include "App.hh" +#include <X11/keysym.h> + #include <string> #ifdef HAVE_CSTRING #include <cstring>
M src/FbTk/KeyUtil.hhsrc/FbTk/KeyUtil.hh

@@ -25,7 +25,6 @@ #ifndef FBTK_KEYUTIL_HH

#define FBTK_KEYUTIL_HH #include <X11/Xlib.h> -#include <X11/keysym.h> #include <memory>
M src/FbTk/Menu.ccsrc/FbTk/Menu.cc

@@ -45,6 +45,7 @@ #include "Transparent.hh"

#include "SimpleCommand.hh" #include "FbPixmap.hh" +#include <X11/Xutil.h> #include <X11/Xatom.h> #include <X11/keysym.h>
M src/FbTk/Menu.hhsrc/FbTk/Menu.hh

@@ -34,10 +34,7 @@ #include <memory>

#include "FbWindow.hh" #include "EventHandler.hh" -#include "RefCount.hh" -#include "Command.hh" #include "Observer.hh" -#include "FbPixmap.hh" #include "MenuTheme.hh" #include "Timer.hh" #include "FbString.hh"

@@ -45,8 +42,10 @@ #include "TypeAhead.hh"

namespace FbTk { +class Command; class MenuItem; class ImageControl; +class RefCount<class T>; /// Base class for menus class Menu: public FbTk::EventHandler, FbTk::FbWindowRenderer,
M src/FbTk/MenuTheme.hhsrc/FbTk/MenuTheme.hh

@@ -30,7 +30,6 @@ #include "Font.hh"

#include "Shape.hh" #include "Texture.hh" #include "Text.hh" -#include "Subject.hh" #include "PixmapWithMask.hh" #include "GContext.hh"
M src/FbTk/MultLayers.ccsrc/FbTk/MultLayers.cc

@@ -26,6 +26,7 @@ #include "MultLayers.hh"

#include "XLayer.hh" #include "XLayerItem.hh" #include "App.hh" +#include "FbWindow.hh" using namespace FbTk;
M src/FbTk/MultiButtonMenuItem.ccsrc/FbTk/MultiButtonMenuItem.cc

@@ -24,6 +24,7 @@ // $Id$

#include "MultiButtonMenuItem.hh" #include "PixmapWithMask.hh" +#include "Command.hh" namespace FbTk {
M src/FbTk/Resource.hhsrc/FbTk/Resource.hh

@@ -31,15 +31,11 @@ #include <string>

#include <list> #include <iostream> -#include <X11/Xlib.h> -#include <X11/Xresource.h> #include <exception> #include <typeinfo> #include "XrmDatabaseHelper.hh" namespace FbTk { - -class XrmDatabaseHelper; class ResourceException: public std::exception { public:
M src/FbTk/SearchResult.ccsrc/FbTk/SearchResult.cc

@@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER

// DEALINGS IN THE SOFTWARE. #include "SearchResult.hh" -#include <vector> +#include "ITypeAheadable.hh" namespace FbTk {
M src/FbTk/SearchResult.hhsrc/FbTk/SearchResult.hh

@@ -23,9 +23,11 @@ #ifndef FBTK_SEARCHRESULT_HH

#define FBTK_SEARCHRESULT_HH #include <vector> -#include "ITypeAheadable.hh" +#include <string> namespace FbTk { + +class ITypeAheadable; class SearchResult { public:
M src/FbTk/Shape.hhsrc/FbTk/Shape.hh

@@ -25,7 +25,6 @@

#include "FbPixmap.hh" #include <X11/Xlib.h> -#include <memory> #include <vector> namespace FbTk {
M src/FbTk/TextBox.hhsrc/FbTk/TextBox.hh

@@ -25,8 +25,6 @@ #ifndef FBTK_TEXTBOX_HH

#define FBTK_TEXTBOX_HH #include "FbWindow.hh" -#include "Color.hh" -#include "Text.hh" #include "EventHandler.hh" #include <string>
M src/FbTk/TextButton.hhsrc/FbTk/TextButton.hh

@@ -26,7 +26,6 @@ #define FBTK_TEXTBUTTON_HH

#include "Button.hh" #include "Text.hh" -#include "FbPixmap.hh" #include <string>
M src/FbTk/TextureRender.ccsrc/FbTk/TextureRender.cc

@@ -32,6 +32,8 @@ #include "FbPixmap.hh"

#include "GContext.hh" #include "I18n.hh" +#include <X11/Xutil.h> + #include <iostream> #include <string> #ifdef HAVE_CSTDIO
M src/FbTk/TextureRender.hhsrc/FbTk/TextureRender.hh

@@ -27,15 +27,15 @@

#ifndef FBTK_TEXTURRENDER_HH #define FBTK_TEXTURRENDER_HH -#include "Texture.hh" #include "Text.hh" #include <X11/Xlib.h> namespace FbTk { +class Color; class ImageControl; - +class Texture; /// Renders texture to pixmap /**
M src/FbTk/XLayer.ccsrc/FbTk/XLayer.cc

@@ -25,6 +25,8 @@

#include "XLayer.hh" #include "XLayerItem.hh" #include "App.hh" +#include "FbWindow.hh" +#include "MultLayers.hh" #include <iostream>
M src/FbTk/XLayer.hhsrc/FbTk/XLayer.hh

@@ -28,10 +28,10 @@ #define FBTK_XLAYER_HH

#include <list> #include "Layer.hh" -#include "MultLayers.hh" namespace FbTk { +class MultLayers; class XLayerItem; class XLayer : public FbTk::Layer<XLayerItem, std::list<XLayerItem *> > {
M src/FbTk/XLayerItem.hhsrc/FbTk/XLayerItem.hh

@@ -28,9 +28,10 @@

#include "LayerItem.hh" #include "XLayer.hh" #include "NotCopyable.hh" -#include "FbWindow.hh" namespace FbTk { + +class FbWindow; class XLayerItem : public LayerItem, private NotCopyable { public:
M src/FbTk/XrmDatabaseHelper.hhsrc/FbTk/XrmDatabaseHelper.hh

@@ -25,7 +25,6 @@

#ifndef FBTK_XRMDATABASEHELPER_HH #define FBTK_XRMDATABASEHELPER_HH -#include <X11/Xlib.h> #include <X11/Xresource.h> /**
M src/FbWinFrame.hhsrc/FbWinFrame.hh

@@ -29,7 +29,6 @@ #include "FbTk/EventHandler.hh"

#include "FbTk/RefCount.hh" #include "FbTk/Observer.hh" #include "FbTk/Color.hh" -#include "FbTk/FbPixmap.hh" #include "FbTk/XLayerItem.hh" #include "FbTk/TextButton.hh" #include "FbTk/DefaultValue.hh"

@@ -47,10 +46,8 @@ class IconButton;

class Focusable; namespace FbTk { -class TextButton; class ImageControl; class Command; -class Button; class Texture; class XLayer; }
M src/FbWinFrameTheme.hhsrc/FbWinFrameTheme.hh

@@ -26,11 +26,9 @@ #define FBWINFRAMETHEME_HH

#include "FbTk/Font.hh" #include "FbTk/Texture.hh" -#include "FbTk/Text.hh" #include "FbTk/Color.hh" #include "FbTk/Theme.hh" #include "FbTk/BorderTheme.hh" -#include "FbTk/Subject.hh" #include "FbTk/GContext.hh" #include "FbTk/Shape.hh"
M src/FocusModelMenuItem.hhsrc/FocusModelMenuItem.hh

@@ -28,7 +28,10 @@

#include "FbTk/MenuItem.hh" #include "FbTk/RefCount.hh" -#include "FbTk/Command.hh" + +namespace FbTk { +class Command; +} #include "FocusControl.hh"
M src/GenericTool.ccsrc/GenericTool.cc

@@ -23,6 +23,7 @@ // $Id$

#include "GenericTool.hh" #include "FbTk/FbWindow.hh" +#include "ToolTheme.hh" #include <string>
M src/GenericTool.hhsrc/GenericTool.hh

@@ -25,12 +25,13 @@ #ifndef GENERICTOOL_HH

#define GENERICTOOL_HH #include "ToolbarItem.hh" -#include "ToolTheme.hh" #include "FbTk/NotCopyable.hh" #include "FbTk/Observer.hh" #include <memory> + +class ToolTheme; namespace FbTk { class FbWindow;
M src/IconbarTool.hhsrc/IconbarTool.hh

@@ -27,13 +27,11 @@ #define ICONBARTOOL_HH

#include "ToolbarItem.hh" #include "FbMenu.hh" -#include "FocusableList.hh" #include "FbTk/Container.hh" #include "FbTk/CachedPixmap.hh" #include "FbTk/Observer.hh" #include "FbTk/Resource.hh" -#include "FbTk/Menu.hh" #include <X11/Xlib.h>

@@ -43,6 +41,7 @@ class IconbarTheme;

class BScreen; class IconButton; class Focusable; +class FocusableList; class IconbarTool: public ToolbarItem, public FbTk::Observer { public:
M src/MenuCreator.hhsrc/MenuCreator.hh

@@ -25,7 +25,6 @@ #define MENUCREATOR_HH

#include "FbTk/FbString.hh" -#include <string> #include <list> namespace FbTk {
M src/PlacementStrategy.hhsrc/PlacementStrategy.hh

@@ -24,9 +24,7 @@

#ifndef PLACEMENTSTRATEGY_HH #define PLACEMENTSTRATEGY_HH -#include <list> - -#include "Window.hh" +class FluxboxWindow; struct PlacementStrategy { /**
M src/RootTheme.hhsrc/RootTheme.hh

@@ -26,7 +26,6 @@ #define ROOTTHEME_HH

#include "FbTk/Theme.hh" #include "FbTk/GContext.hh" -#include "FbTk/Texture.hh" #include <X11/Xlib.h>
M src/SendToMenu.hhsrc/SendToMenu.hh

@@ -27,8 +27,6 @@ #define SENDTOMENU_HH

#include "FbMenu.hh" -#include "FbTk/Observer.hh" - class BScreen; class SendToMenu:public FbMenu {
M src/SystemTray.ccsrc/SystemTray.cc

@@ -30,6 +30,7 @@ #include "AtomHandler.hh"

#include "fluxbox.hh" #include "WinClient.hh" #include "Screen.hh" +#include "ButtonTheme.hh" #include <X11/Xutil.h> #include <X11/Xatom.h>
M src/SystemTray.hhsrc/SystemTray.hh

@@ -30,13 +30,13 @@ #include "FbTk/EventHandler.hh"

#include "FbTk/Observer.hh" #include "ToolbarItem.hh" -#include "ButtonTheme.hh" -#include "Screen.hh" #include <X11/Xlib.h> #include <list> +class BScreen; +class ButtonTheme; class TrayWindow; class AtomHandler;
M src/ToolTheme.hhsrc/ToolTheme.hh

@@ -30,7 +30,6 @@ #include "FbTk/TextTheme.hh"

#include "FbTk/BorderTheme.hh" #include "FbTk/Texture.hh" -#include <X11/Xlib.h> #include <string> /// Handles toolbar item theme for text and texture
M src/ToolbarTheme.hhsrc/ToolbarTheme.hh

@@ -26,7 +26,6 @@ #define TOOLBARTHEME_HH

#include "FbTk/Theme.hh" #include "FbTk/Texture.hh" -#include "FbTk/Color.hh" #include "FbTk/BorderTheme.hh" /// toolbar theme class container
M src/WinButtonTheme.hhsrc/WinButtonTheme.hh

@@ -24,7 +24,7 @@

#ifndef WINBUTTONTHEME_HH #define WINBUTTONTHEME_HH -#include "Theme.hh" +#include "FbTk/Theme.hh" #include "FbTk/PixmapWithMask.hh" class FbWinFrameTheme;
M src/WinClient.ccsrc/WinClient.cc

@@ -38,6 +38,7 @@ #include <iostream>

#include <algorithm> #include <iterator> #include <memory> +#include <X11/Xatom.h> #ifdef HAVE_CASSERT #include <cassert>
M src/Window.hhsrc/Window.hh

@@ -38,7 +38,6 @@ #include "Focusable.hh"

#include "WinButton.hh" #include <X11/Xlib.h> -#include <X11/Xutil.h> #include <sys/time.h> #include <vector>
M src/WorkspaceCmd.hhsrc/WorkspaceCmd.hh

@@ -27,7 +27,6 @@ #define WORKSPACECMD_HH

#include "Command.hh" #include "ClientPattern.hh" -#include "CurrentWindowCmd.hh" #include "FocusControl.hh" #include "FbTk/RefCount.hh"
M src/WorkspaceNameTheme.hhsrc/WorkspaceNameTheme.hh

@@ -26,7 +26,6 @@ #ifndef WORKSPACENAMETHEME_HH

#define WORKSPACENAMETHEME_HH #include "ToolTheme.hh" -#include "FbTk/Theme.hh" class WorkspaceNameTheme:public ToolTheme { public: