news download themes documentation links










ToolFactory.hh

00001 // ToolFactory.hh for Fluxbox
00002 // Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
00003 //
00004 // Permission is hereby granted, free of charge, to any person obtaining a
00005 // copy of this software and associated documentation files (the "Software"),
00006 // to deal in the Software without restriction, including without limitation
00007 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
00008 // and/or sell copies of the Software, and to permit persons to whom the
00009 // Software is furnished to do so, subject to the following conditions:
00010 //
00011 // The above copyright notice and this permission notice shall be included in
00012 // all copies or substantial portions of the Software.
00013 //
00014 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00015 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00016 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00017 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00018 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00019 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00020 // DEALINGS IN THE SOFTWARE.
00021 
00022 // $Id: ToolFactory.hh,v 1.1 2003/10/13 23:37:41 fluxgen Exp $
00023 
00024 #ifndef TOOLFACTORY_HH
00025 #define TOOLFACTORY_HH
00026 
00027 #include "ToolTheme.hh"
00028 #include "IconbarTheme.hh"
00029 
00030 #include "FbTk/NotCopyable.hh"
00031 
00032 class ToolbarItem;
00033 class BScreen;
00034 class Toolbar;
00035 
00036 namespace FbTk {
00037 class FbWindow;
00038 };
00039 
00041 class ToolFactory:private FbTk::NotCopyable {
00042 public:
00043     explicit ToolFactory(BScreen &screen);
00044     virtual ~ToolFactory() { }
00045 
00046     ToolbarItem *create(const std::string &name, const FbTk::FbWindow &parent, Toolbar &tbar);
00047     void updateThemes();
00048     int maxFontHeight() const;
00049     inline const BScreen &screen() const { return m_screen; }
00050     inline BScreen &screen() { return m_screen; }
00051 
00052 private:
00053     BScreen &m_screen;
00054     ToolTheme m_clock_theme;
00055     std::auto_ptr<ToolTheme> m_button_theme, m_workspace_theme;
00056     IconbarTheme m_iconbar_theme;
00057 };
00058 
00059 #endif // TOOLFACTORY_HH

Fluxbox CVS-Jan-2003




      



Got comments about the page? Send them to webmaster.
If you have general Fluxbox related questions ask them on our irc channel or mailing lists.

Show Source








Designed by aLEczapKA