aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Resource.hh
AgeCommit message (Collapse)AuthorFilesLines
2011-07-13Emit the "modified" signal when a resource value is changed through C++ codePavel Labath1-2/+6
2011-07-12Add RangeTraits class which automatically clamps the value of resourcesPavel Labath1-0/+3
and start using it.
2011-07-12Enable the resource traits classes to hold non-static membersPavel Labath1-5/+7
ps: the Resource class inherits from the Traits class instead of holding it as a member because it's more size-efficient (base classes can have zero size, members cannot).
2011-07-10Add a "modified" signal to resourcesPavel Labath1-2/+12
This way, an object can be informed when a resource changes (e.g. by a lua function).
2011-06-16Replace ResourceManager with the lua versionPavel Labath1-0/+8
Loading of an init file with the new manager works ok. Saving and restarting is still not completed. This touches many files because i removed the alternative name of resources. Unlike Xrm, lua does not have native support for alt names. It should be fairly easy to add them, but I think that is unnecessary and would be confusing.
2011-06-15Add a function for converting from XResources to lua onesPavel Labath1-0/+4
2011-06-15Factor out "session." from resource namesPavel Labath1-1/+6
this reduces typing and it makes more sense in lua, since there the resources are implemented as hierarchical tables and the topmost table has to be handled a bit specially.
2011-06-15Move more common stuff of (L)ResourceManagers to their base classPavel Labath1-22/+10
2011-06-15Simplify FbTk::Resource template classPavel Labath1-24/+36
by outsourcing the conversion from string/lua to the specific type (and back) to a separate class. This change touches a lot of files because the interface of FbTk::Resource changed slightly. However, the changes are minor.
2011-06-15A rough version of resource implementation in luaPavel Labath1-19/+59
I added a new class, LResourceManager, which should handle loading and saving of resources like the old ResourceManager, only it does that with the help of lua. I moved the common features of the two managers (interface + a few functions) to a common base class ResourceManager_base. I augmented the Resource_base class with two new functions (setFromLua and pushToLua) which are used by the lua RM instead of getString and setFromString. Parts of the new RM are written in lua. To avoid loading scripts from a file at runtime I decided to link compiled lua code straight into the executable. For this purpose I created a small script which converts a binary file into a declaration of a C array of bytes.
2011-06-15convert ResourceManager::{add,remove}Resource from template to a regular ↵Pavel Labath1-34/+2
function
2009-10-01made code simplerMathias Gumz1-7/+2
2008-04-21some fixes for gcc 3.4Thomas Orgis1-0/+1
2008-01-04remove old svn $Id$ tagsMark Tiefenbruck1-2/+0
2007-12-30fix compatibility with older gcc versionsMark Tiefenbruck1-1/+1
2007-12-30remove some (hopefully) unneeded header includesMark Tiefenbruck1-4/+0
2007-12-29'inline' in class declaration is implicitly inlineMathias Gumz1-28/+28
2007-12-27architecture astronomyMark Tiefenbruck1-9/+10
2007-01-07per-window transparency, including apps and menu support, plus some simonb1-0/+1
infrastructure and related changes. Thanks for original patch from Julien Trolet, dmxen at sourceforge dot net
2006-05-13added commentsfluxgen1-0/+4
2006-03-18added Type typedef of T in Resourcefluxgen1-4/+4
2006-02-18Added template getResource(string) to ResourceManager.fluxgen1-0/+40
It finds and returns reference to resource on success, else throws ResourceException.
2005-11-22const fixfluxgen1-3/+4
2005-01-24copyright datemathias1-1/+1
2004-11-19svn propset svn:keywords "Id"mathias1-1/+1
2004-04-26oops, forgot to include filefluxgen1-1/+2
2003-12-19resourceValue and findResourcefluxgen1-1/+3
2003-12-19setResourceValue function and a dumpfluxgen1-2/+10
2003-12-16fixed some icc warningsfluxgen1-2/+2
2003-09-13minor fix for Solaris 2.xfluxgen1-1/+2
2003-08-08minor fixfluxgen1-4/+6
2003-07-18reorganise operation of ResourceManagerrathnor1-7/+58
plus fix initialisation of layer for slit and toolbar
2003-05-18moved Resource to FbTk and change name of DirHelper to FbTk Directoryfluxgen1-0/+147