remove some (hopefully) unneeded header includes

This commit is contained in:
Mark Tiefenbruck 2007-12-29 22:44:11 -08:00
parent de6d340ba3
commit 4cc810b0d3
55 changed files with 47 additions and 70 deletions

View file

@ -25,7 +25,8 @@
#define BUTTONTOOL_HH #define BUTTONTOOL_HH
#include "GenericTool.hh" #include "GenericTool.hh"
#include "FbTk/Observer.hh"
#include <X11/Xlib.h>
class ButtonTheme; class ButtonTheme;

View file

@ -24,8 +24,6 @@
#ifndef CLIENTMENU_HH #ifndef CLIENTMENU_HH
#define CLIENTMENU_HH #define CLIENTMENU_HH
#include <list>
#include "FbMenu.hh" #include "FbMenu.hh"
class BScreen; class BScreen;

View file

@ -27,12 +27,11 @@
#include "FbTk/TextBox.hh" #include "FbTk/TextBox.hh"
#include "FbTk/TextButton.hh" #include "FbTk/TextButton.hh"
#include "FbTk/Font.hh"
#include "FbTk/GContext.hh" #include "FbTk/GContext.hh"
#include "FbTk/Command.hh"
#include "FbTk/RefCount.hh" #include "FbTk/RefCount.hh"
class BScreen; class BScreen;
class Command;
/** /**
* Displays a fluxbox command dialog which executes fluxbox * Displays a fluxbox command dialog which executes fluxbox

View file

@ -38,6 +38,7 @@
#include "FbTk/XLayerItem.hh" #include "FbTk/XLayerItem.hh"
#include "FbTk/XLayer.hh" #include "FbTk/XLayer.hh"
#include <X11/Xatom.h>
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
#include <new> #include <new>

View file

@ -23,11 +23,6 @@
#include "AtomHandler.hh" #include "AtomHandler.hh"
#include "FbTk/FbString.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 ) /// Implementes Extended Window Manager Hints ( http://www.freedesktop.org/Standards/wm-spec )
class Ewmh:public AtomHandler { class Ewmh:public AtomHandler {

View file

@ -24,7 +24,6 @@
#define FBATOMS_HH #define FBATOMS_HH
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xatom.h>
/// atom handler for basic X atoms /// atom handler for basic X atoms
class FbAtoms { class FbAtoms {

View file

@ -26,7 +26,6 @@
#include "Menu.hh" #include "Menu.hh"
#include "XLayerItem.hh" #include "XLayerItem.hh"
#include <memory>
namespace FbTk { namespace FbTk {
class MenuTheme; class MenuTheme;

View file

@ -23,10 +23,11 @@
#define FBTK_BOOLMENUITEM_HH #define FBTK_BOOLMENUITEM_HH
#include "MenuItem.hh" #include "MenuItem.hh"
#include "Accessor.hh"
namespace FbTk { namespace FbTk {
class Accessor<class T>;
/// a bool menu item /// a bool menu item
class BoolMenuItem: public FbTk::MenuItem { class BoolMenuItem: public FbTk::MenuItem {
public: public:

View file

@ -33,7 +33,6 @@
#include "Text.hh" #include "Text.hh"
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <memory>
namespace FbTk { namespace FbTk {

View file

@ -27,8 +27,6 @@
#ifndef FBTK_COLOR_HH #ifndef FBTK_COLOR_HH
#define FBTK_COLOR_HH #define FBTK_COLOR_HH
#include "NotCopyable.hh"
namespace FbTk { namespace FbTk {
/// Allocates rgb color and pixel value /// Allocates rgb color and pixel value

View file

@ -29,7 +29,6 @@
#include "Text.hh" // for Orientation #include "Text.hh" // for Orientation
#include <list> #include <list>
#include <functional>
namespace FbTk { namespace FbTk {

View file

@ -22,6 +22,7 @@
// $Id$ // $Id$
#include "EventManager.hh" #include "EventManager.hh"
#include "EventHandler.hh"
#include "FbWindow.hh" #include "FbWindow.hh"
#include "App.hh" #include "App.hh"

View file

@ -21,12 +21,13 @@
// $Id$ // $Id$
#include "EventHandler.hh"
#include <map> #include <map>
#include <X11/Xlib.h>
namespace FbTk { namespace FbTk {
class FbWindow; class FbWindow;
class EventHandler;
/** /**
singleton mediator for EventHandlers singleton mediator for EventHandlers

View file

@ -25,7 +25,6 @@
#define FBTK_FONT_HH #define FBTK_FONT_HH
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xresource.h>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"

View file

@ -24,13 +24,11 @@
#ifndef FBTK_FONTIMP_HH #ifndef FBTK_FONTIMP_HH
#define FBTK_FONTIMP_HH #define FBTK_FONTIMP_HH
#include "Color.hh" #include "Text.hh"
#include "Font.hh" #include "FbString.hh"
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <string>
namespace FbTk { namespace FbTk {
class FbDrawable; class FbDrawable;

View file

@ -34,9 +34,7 @@
#include "NotCopyable.hh" #include "NotCopyable.hh"
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <list> #include <list>
#include <set>
namespace FbTk { namespace FbTk {

View file

@ -23,12 +23,13 @@
#define FBTK_INTMENUITEM_HH #define FBTK_INTMENUITEM_HH
#include "MenuItem.hh" #include "MenuItem.hh"
#include "Accessor.hh"
#include <string> #include <string>
namespace FbTk { namespace FbTk {
class Accessor<class T>;
/// Changes an resource integer value between min and max /// Changes an resource integer value between min and max
class IntMenuItem: public FbTk::MenuItem { class IntMenuItem: public FbTk::MenuItem {
public: public:

View file

@ -24,6 +24,8 @@
#include "KeyUtil.hh" #include "KeyUtil.hh"
#include "App.hh" #include "App.hh"
#include <X11/keysym.h>
#include <string> #include <string>
#ifdef HAVE_CSTRING #ifdef HAVE_CSTRING
#include <cstring> #include <cstring>

View file

@ -25,7 +25,6 @@
#define FBTK_KEYUTIL_HH #define FBTK_KEYUTIL_HH
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/keysym.h>
#include <memory> #include <memory>

View file

@ -45,6 +45,7 @@
#include "SimpleCommand.hh" #include "SimpleCommand.hh"
#include "FbPixmap.hh" #include "FbPixmap.hh"
#include <X11/Xutil.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/keysym.h> #include <X11/keysym.h>

View file

@ -34,10 +34,7 @@
#include "FbWindow.hh" #include "FbWindow.hh"
#include "EventHandler.hh" #include "EventHandler.hh"
#include "RefCount.hh"
#include "Command.hh"
#include "Observer.hh" #include "Observer.hh"
#include "FbPixmap.hh"
#include "MenuTheme.hh" #include "MenuTheme.hh"
#include "Timer.hh" #include "Timer.hh"
#include "FbString.hh" #include "FbString.hh"
@ -45,8 +42,10 @@
namespace FbTk { namespace FbTk {
class Command;
class MenuItem; class MenuItem;
class ImageControl; class ImageControl;
class RefCount<class T>;
/// Base class for menus /// Base class for menus
class Menu: public FbTk::EventHandler, FbTk::FbWindowRenderer, class Menu: public FbTk::EventHandler, FbTk::FbWindowRenderer,

View file

@ -30,7 +30,6 @@
#include "Shape.hh" #include "Shape.hh"
#include "Texture.hh" #include "Texture.hh"
#include "Text.hh" #include "Text.hh"
#include "Subject.hh"
#include "PixmapWithMask.hh" #include "PixmapWithMask.hh"
#include "GContext.hh" #include "GContext.hh"

View file

@ -26,6 +26,7 @@
#include "XLayer.hh" #include "XLayer.hh"
#include "XLayerItem.hh" #include "XLayerItem.hh"
#include "App.hh" #include "App.hh"
#include "FbWindow.hh"
using namespace FbTk; using namespace FbTk;

View file

@ -24,6 +24,7 @@
#include "MultiButtonMenuItem.hh" #include "MultiButtonMenuItem.hh"
#include "PixmapWithMask.hh" #include "PixmapWithMask.hh"
#include "Command.hh"
namespace FbTk { namespace FbTk {

View file

@ -31,16 +31,12 @@
#include <list> #include <list>
#include <iostream> #include <iostream>
#include <X11/Xlib.h>
#include <X11/Xresource.h>
#include <exception> #include <exception>
#include <typeinfo> #include <typeinfo>
#include "XrmDatabaseHelper.hh" #include "XrmDatabaseHelper.hh"
namespace FbTk { namespace FbTk {
class XrmDatabaseHelper;
class ResourceException: public std::exception { class ResourceException: public std::exception {
public: public:
ResourceException(const std::string &err): ResourceException(const std::string &err):

View file

@ -20,7 +20,7 @@
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
#include "SearchResult.hh" #include "SearchResult.hh"
#include <vector> #include "ITypeAheadable.hh"
namespace FbTk { namespace FbTk {

View file

@ -23,10 +23,12 @@
#define FBTK_SEARCHRESULT_HH #define FBTK_SEARCHRESULT_HH
#include <vector> #include <vector>
#include "ITypeAheadable.hh" #include <string>
namespace FbTk { namespace FbTk {
class ITypeAheadable;
class SearchResult { class SearchResult {
public: public:
typedef std::vector < ITypeAheadable* > BaseItems; typedef std::vector < ITypeAheadable* > BaseItems;

View file

@ -25,7 +25,6 @@
#include "FbPixmap.hh" #include "FbPixmap.hh"
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <memory>
#include <vector> #include <vector>
namespace FbTk { namespace FbTk {

View file

@ -25,8 +25,6 @@
#define FBTK_TEXTBOX_HH #define FBTK_TEXTBOX_HH
#include "FbWindow.hh" #include "FbWindow.hh"
#include "Color.hh"
#include "Text.hh"
#include "EventHandler.hh" #include "EventHandler.hh"
#include <string> #include <string>

View file

@ -26,7 +26,6 @@
#include "Button.hh" #include "Button.hh"
#include "Text.hh" #include "Text.hh"
#include "FbPixmap.hh"
#include <string> #include <string>

View file

@ -32,6 +32,8 @@
#include "GContext.hh" #include "GContext.hh"
#include "I18n.hh" #include "I18n.hh"
#include <X11/Xutil.h>
#include <iostream> #include <iostream>
#include <string> #include <string>
#ifdef HAVE_CSTDIO #ifdef HAVE_CSTDIO

View file

@ -27,15 +27,15 @@
#ifndef FBTK_TEXTURRENDER_HH #ifndef FBTK_TEXTURRENDER_HH
#define FBTK_TEXTURRENDER_HH #define FBTK_TEXTURRENDER_HH
#include "Texture.hh"
#include "Text.hh" #include "Text.hh"
#include <X11/Xlib.h> #include <X11/Xlib.h>
namespace FbTk { namespace FbTk {
class Color;
class ImageControl; class ImageControl;
class Texture;
/// Renders texture to pixmap /// Renders texture to pixmap
/** /**

View file

@ -25,6 +25,8 @@
#include "XLayer.hh" #include "XLayer.hh"
#include "XLayerItem.hh" #include "XLayerItem.hh"
#include "App.hh" #include "App.hh"
#include "FbWindow.hh"
#include "MultLayers.hh"
#include <iostream> #include <iostream>

View file

@ -28,10 +28,10 @@
#include <list> #include <list>
#include "Layer.hh" #include "Layer.hh"
#include "MultLayers.hh"
namespace FbTk { namespace FbTk {
class MultLayers;
class XLayerItem; class XLayerItem;
class XLayer : public FbTk::Layer<XLayerItem, std::list<XLayerItem *> > { class XLayer : public FbTk::Layer<XLayerItem, std::list<XLayerItem *> > {

View file

@ -28,10 +28,11 @@
#include "LayerItem.hh" #include "LayerItem.hh"
#include "XLayer.hh" #include "XLayer.hh"
#include "NotCopyable.hh" #include "NotCopyable.hh"
#include "FbWindow.hh"
namespace FbTk { namespace FbTk {
class FbWindow;
class XLayerItem : public LayerItem, private NotCopyable { class XLayerItem : public LayerItem, private NotCopyable {
public: public:
typedef std::list<FbWindow *> Windows; typedef std::list<FbWindow *> Windows;

View file

@ -25,7 +25,6 @@
#ifndef FBTK_XRMDATABASEHELPER_HH #ifndef FBTK_XRMDATABASEHELPER_HH
#define FBTK_XRMDATABASEHELPER_HH #define FBTK_XRMDATABASEHELPER_HH
#include <X11/Xlib.h>
#include <X11/Xresource.h> #include <X11/Xresource.h>
/** /**

View file

@ -29,7 +29,6 @@
#include "FbTk/RefCount.hh" #include "FbTk/RefCount.hh"
#include "FbTk/Observer.hh" #include "FbTk/Observer.hh"
#include "FbTk/Color.hh" #include "FbTk/Color.hh"
#include "FbTk/FbPixmap.hh"
#include "FbTk/XLayerItem.hh" #include "FbTk/XLayerItem.hh"
#include "FbTk/TextButton.hh" #include "FbTk/TextButton.hh"
#include "FbTk/DefaultValue.hh" #include "FbTk/DefaultValue.hh"
@ -47,10 +46,8 @@ class IconButton;
class Focusable; class Focusable;
namespace FbTk { namespace FbTk {
class TextButton;
class ImageControl; class ImageControl;
class Command; class Command;
class Button;
class Texture; class Texture;
class XLayer; class XLayer;
} }

View file

@ -26,11 +26,9 @@
#include "FbTk/Font.hh" #include "FbTk/Font.hh"
#include "FbTk/Texture.hh" #include "FbTk/Texture.hh"
#include "FbTk/Text.hh"
#include "FbTk/Color.hh" #include "FbTk/Color.hh"
#include "FbTk/Theme.hh" #include "FbTk/Theme.hh"
#include "FbTk/BorderTheme.hh" #include "FbTk/BorderTheme.hh"
#include "FbTk/Subject.hh"
#include "FbTk/GContext.hh" #include "FbTk/GContext.hh"
#include "FbTk/Shape.hh" #include "FbTk/Shape.hh"

View file

@ -28,7 +28,10 @@
#include "FbTk/MenuItem.hh" #include "FbTk/MenuItem.hh"
#include "FbTk/RefCount.hh" #include "FbTk/RefCount.hh"
#include "FbTk/Command.hh"
namespace FbTk {
class Command;
}
#include "FocusControl.hh" #include "FocusControl.hh"

View file

@ -23,6 +23,7 @@
#include "GenericTool.hh" #include "GenericTool.hh"
#include "FbTk/FbWindow.hh" #include "FbTk/FbWindow.hh"
#include "ToolTheme.hh"
#include <string> #include <string>

View file

@ -25,13 +25,14 @@
#define GENERICTOOL_HH #define GENERICTOOL_HH
#include "ToolbarItem.hh" #include "ToolbarItem.hh"
#include "ToolTheme.hh"
#include "FbTk/NotCopyable.hh" #include "FbTk/NotCopyable.hh"
#include "FbTk/Observer.hh" #include "FbTk/Observer.hh"
#include <memory> #include <memory>
class ToolTheme;
namespace FbTk { namespace FbTk {
class FbWindow; class FbWindow;
} }

View file

@ -27,13 +27,11 @@
#include "ToolbarItem.hh" #include "ToolbarItem.hh"
#include "FbMenu.hh" #include "FbMenu.hh"
#include "FocusableList.hh"
#include "FbTk/Container.hh" #include "FbTk/Container.hh"
#include "FbTk/CachedPixmap.hh" #include "FbTk/CachedPixmap.hh"
#include "FbTk/Observer.hh" #include "FbTk/Observer.hh"
#include "FbTk/Resource.hh" #include "FbTk/Resource.hh"
#include "FbTk/Menu.hh"
#include <X11/Xlib.h> #include <X11/Xlib.h>
@ -43,6 +41,7 @@ class IconbarTheme;
class BScreen; class BScreen;
class IconButton; class IconButton;
class Focusable; class Focusable;
class FocusableList;
class IconbarTool: public ToolbarItem, public FbTk::Observer { class IconbarTool: public ToolbarItem, public FbTk::Observer {
public: public:

View file

@ -25,7 +25,6 @@
#include "FbTk/FbString.hh" #include "FbTk/FbString.hh"
#include <string>
#include <list> #include <list>
namespace FbTk { namespace FbTk {

View file

@ -24,9 +24,7 @@
#ifndef PLACEMENTSTRATEGY_HH #ifndef PLACEMENTSTRATEGY_HH
#define PLACEMENTSTRATEGY_HH #define PLACEMENTSTRATEGY_HH
#include <list> class FluxboxWindow;
#include "Window.hh"
struct PlacementStrategy { struct PlacementStrategy {
/** /**

View file

@ -26,7 +26,6 @@
#include "FbTk/Theme.hh" #include "FbTk/Theme.hh"
#include "FbTk/GContext.hh" #include "FbTk/GContext.hh"
#include "FbTk/Texture.hh"
#include <X11/Xlib.h> #include <X11/Xlib.h>

View file

@ -27,8 +27,6 @@
#include "FbMenu.hh" #include "FbMenu.hh"
#include "FbTk/Observer.hh"
class BScreen; class BScreen;
class SendToMenu:public FbMenu { class SendToMenu:public FbMenu {

View file

@ -30,6 +30,7 @@
#include "fluxbox.hh" #include "fluxbox.hh"
#include "WinClient.hh" #include "WinClient.hh"
#include "Screen.hh" #include "Screen.hh"
#include "ButtonTheme.hh"
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>

View file

@ -30,13 +30,13 @@
#include "FbTk/Observer.hh" #include "FbTk/Observer.hh"
#include "ToolbarItem.hh" #include "ToolbarItem.hh"
#include "ButtonTheme.hh"
#include "Screen.hh"
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <list> #include <list>
class BScreen;
class ButtonTheme;
class TrayWindow; class TrayWindow;
class AtomHandler; class AtomHandler;

View file

@ -30,7 +30,6 @@
#include "FbTk/BorderTheme.hh" #include "FbTk/BorderTheme.hh"
#include "FbTk/Texture.hh" #include "FbTk/Texture.hh"
#include <X11/Xlib.h>
#include <string> #include <string>
/// Handles toolbar item theme for text and texture /// Handles toolbar item theme for text and texture

View file

@ -26,7 +26,6 @@
#include "FbTk/Theme.hh" #include "FbTk/Theme.hh"
#include "FbTk/Texture.hh" #include "FbTk/Texture.hh"
#include "FbTk/Color.hh"
#include "FbTk/BorderTheme.hh" #include "FbTk/BorderTheme.hh"
/// toolbar theme class container /// toolbar theme class container

View file

@ -24,7 +24,7 @@
#ifndef WINBUTTONTHEME_HH #ifndef WINBUTTONTHEME_HH
#define WINBUTTONTHEME_HH #define WINBUTTONTHEME_HH
#include "Theme.hh" #include "FbTk/Theme.hh"
#include "FbTk/PixmapWithMask.hh" #include "FbTk/PixmapWithMask.hh"
class FbWinFrameTheme; class FbWinFrameTheme;

View file

@ -38,6 +38,7 @@
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <memory> #include <memory>
#include <X11/Xatom.h>
#ifdef HAVE_CASSERT #ifdef HAVE_CASSERT
#include <cassert> #include <cassert>

View file

@ -38,7 +38,6 @@
#include "WinButton.hh" #include "WinButton.hh"
#include <X11/Xlib.h> #include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <sys/time.h> #include <sys/time.h>
#include <vector> #include <vector>

View file

@ -27,7 +27,6 @@
#include "Command.hh" #include "Command.hh"
#include "ClientPattern.hh" #include "ClientPattern.hh"
#include "CurrentWindowCmd.hh"
#include "FocusControl.hh" #include "FocusControl.hh"
#include "FbTk/RefCount.hh" #include "FbTk/RefCount.hh"

View file

@ -26,7 +26,6 @@
#define WORKSPACENAMETHEME_HH #define WORKSPACENAMETHEME_HH
#include "ToolTheme.hh" #include "ToolTheme.hh"
#include "FbTk/Theme.hh"
class WorkspaceNameTheme:public ToolTheme { class WorkspaceNameTheme:public ToolTheme {
public: public: