remove some (hopefully) unneeded header includes
jump to
@@ -25,7 +25,8 @@ #ifndef BUTTONTOOL_HH
#define BUTTONTOOL_HH #include "GenericTool.hh" -#include "FbTk/Observer.hh" + +#include <X11/Xlib.h> class ButtonTheme;
@@ -24,8 +24,6 @@
#ifndef CLIENTMENU_HH #define CLIENTMENU_HH -#include <list> - #include "FbMenu.hh" class BScreen;
@@ -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
@@ -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>
@@ -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 {
@@ -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 {
@@ -26,7 +26,6 @@ #define FBMENU_HH
#include "Menu.hh" #include "XLayerItem.hh" -#include <memory> namespace FbTk { class MenuTheme;
@@ -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 {
@@ -33,7 +33,6 @@ #include "Color.hh"
#include "Text.hh" #include <X11/Xlib.h> -#include <memory> namespace FbTk {
@@ -27,8 +27,6 @@
#ifndef FBTK_COLOR_HH #define FBTK_COLOR_HH -#include "NotCopyable.hh" - namespace FbTk { /// Allocates rgb color and pixel value
@@ -29,7 +29,6 @@ #include "NotCopyable.hh"
#include "Text.hh" // for Orientation #include <list> -#include <functional> namespace FbTk {
@@ -22,6 +22,7 @@
// $Id$ #include "EventManager.hh" +#include "EventHandler.hh" #include "FbWindow.hh" #include "App.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
@@ -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"
@@ -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 {
@@ -34,9 +34,7 @@ #include "Timer.hh"
#include "NotCopyable.hh" #include <X11/Xlib.h> -#include <X11/Xutil.h> #include <list> -#include <set> namespace FbTk {
@@ -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 {
@@ -24,6 +24,8 @@
#include "KeyUtil.hh" #include "App.hh" +#include <X11/keysym.h> + #include <string> #ifdef HAVE_CSTRING #include <cstring>
@@ -25,7 +25,6 @@ #ifndef FBTK_KEYUTIL_HH
#define FBTK_KEYUTIL_HH #include <X11/Xlib.h> -#include <X11/keysym.h> #include <memory>
@@ -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>
@@ -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,
@@ -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"
@@ -26,6 +26,7 @@ #include "MultLayers.hh"
#include "XLayer.hh" #include "XLayerItem.hh" #include "App.hh" +#include "FbWindow.hh" using namespace FbTk;
@@ -24,6 +24,7 @@ // $Id$
#include "MultiButtonMenuItem.hh" #include "PixmapWithMask.hh" +#include "Command.hh" namespace FbTk {
@@ -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:
@@ -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 {
@@ -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:
@@ -25,7 +25,6 @@
#include "FbPixmap.hh" #include <X11/Xlib.h> -#include <memory> #include <vector> namespace FbTk {
@@ -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>
@@ -26,7 +26,6 @@ #define FBTK_TEXTBUTTON_HH
#include "Button.hh" #include "Text.hh" -#include "FbPixmap.hh" #include <string>
@@ -32,6 +32,8 @@ #include "FbPixmap.hh"
#include "GContext.hh" #include "I18n.hh" +#include <X11/Xutil.h> + #include <iostream> #include <string> #ifdef HAVE_CSTDIO
@@ -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 /**
@@ -25,6 +25,8 @@
#include "XLayer.hh" #include "XLayerItem.hh" #include "App.hh" +#include "FbWindow.hh" +#include "MultLayers.hh" #include <iostream>
@@ -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 *> > {
@@ -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:
@@ -25,7 +25,6 @@
#ifndef FBTK_XRMDATABASEHELPER_HH #define FBTK_XRMDATABASEHELPER_HH -#include <X11/Xlib.h> #include <X11/Xresource.h> /**
@@ -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; }
@@ -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"
@@ -28,7 +28,10 @@
#include "FbTk/MenuItem.hh" #include "FbTk/RefCount.hh" -#include "FbTk/Command.hh" + +namespace FbTk { +class Command; +} #include "FocusControl.hh"
@@ -23,6 +23,7 @@ // $Id$
#include "GenericTool.hh" #include "FbTk/FbWindow.hh" +#include "ToolTheme.hh" #include <string>
@@ -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;
@@ -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:
@@ -25,7 +25,6 @@ #define MENUCREATOR_HH
#include "FbTk/FbString.hh" -#include <string> #include <list> namespace FbTk {
@@ -24,9 +24,7 @@
#ifndef PLACEMENTSTRATEGY_HH #define PLACEMENTSTRATEGY_HH -#include <list> - -#include "Window.hh" +class FluxboxWindow; struct PlacementStrategy { /**
@@ -26,7 +26,6 @@ #define ROOTTHEME_HH
#include "FbTk/Theme.hh" #include "FbTk/GContext.hh" -#include "FbTk/Texture.hh" #include <X11/Xlib.h>
@@ -27,8 +27,6 @@ #define SENDTOMENU_HH
#include "FbMenu.hh" -#include "FbTk/Observer.hh" - class BScreen; class SendToMenu:public FbMenu {
@@ -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>
@@ -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;
@@ -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
@@ -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
@@ -24,7 +24,7 @@
#ifndef WINBUTTONTHEME_HH #define WINBUTTONTHEME_HH -#include "Theme.hh" +#include "FbTk/Theme.hh" #include "FbTk/PixmapWithMask.hh" class FbWinFrameTheme;
@@ -38,6 +38,7 @@ #include <iostream>
#include <algorithm> #include <iterator> #include <memory> +#include <X11/Xatom.h> #ifdef HAVE_CASSERT #include <cassert>
@@ -38,7 +38,6 @@ #include "Focusable.hh"
#include "WinButton.hh" #include <X11/Xlib.h> -#include <X11/Xutil.h> #include <sys/time.h> #include <vector>
@@ -27,7 +27,6 @@ #define WORKSPACECMD_HH
#include "Command.hh" #include "ClientPattern.hh" -#include "CurrentWindowCmd.hh" #include "FocusControl.hh" #include "FbTk/RefCount.hh"
@@ -26,7 +26,6 @@ #ifndef WORKSPACENAMETHEME_HH
#define WORKSPACENAMETHEME_HH #include "ToolTheme.hh" -#include "FbTk/Theme.hh" class WorkspaceNameTheme:public ToolTheme { public: