fixes missing header to avoid missing declarations (mipspro)

This commit is contained in:
akir 2004-10-21 10:29:49 +00:00
parent d51d01cc49
commit 0d7f757c2c

View file

@ -19,7 +19,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE. // DEALINGS IN THE SOFTWARE.
// $Id: ThemeItems.hh,v 1.8 2004/08/31 15:26:39 rathnor Exp $ // $Id: ThemeItems.hh,v 1.9 2004/10/21 10:29:49 akir Exp $
/// @file implements common theme items /// @file implements common theme items
@ -32,6 +32,7 @@
#include "Font.hh" #include "Font.hh"
#include "PixmapWithMask.hh" #include "PixmapWithMask.hh"
#include "Image.hh" #include "Image.hh"
#include "StringUtil.hh"
#include <string> #include <string>
#ifdef HAVE_CSTDIO #ifdef HAVE_CSTDIO
@ -49,19 +50,19 @@ template <>
void FbTk::ThemeItem<std::string>::load(const std::string *name, const std::string *altname) { } void FbTk::ThemeItem<std::string>::load(const std::string *name, const std::string *altname) { }
template <> template <>
void FbTk::ThemeItem<std::string>::setDefaultValue() { void FbTk::ThemeItem<std::string>::setDefaultValue() {
*(*this) = ""; *(*this) = "";
} }
template <> template <>
void FbTk::ThemeItem<std::string>::setFromString(const char *str) { void FbTk::ThemeItem<std::string>::setFromString(const char *str) {
*(*this) = (str ? str : ""); *(*this) = (str ? str : "");
} }
template <> template <>
void FbTk::ThemeItem<int>::load(const std::string *name, const std::string *altname) { } void FbTk::ThemeItem<int>::load(const std::string *name, const std::string *altname) { }
template <> template<>
void FbTk::ThemeItem<int>::setDefaultValue() { void FbTk::ThemeItem<int>::setDefaultValue() {
*(*this) = 0; *(*this) = 0;
} }
@ -102,7 +103,7 @@ void ThemeItem<FbTk::Font>::setFromString(const char *str) {
} }
setDefaultValue(); setDefaultValue();
} }
} }
// do nothing // do nothing
@ -197,14 +198,15 @@ setFromString(const char *str) {
std::auto_ptr<FbTk::PixmapWithMask> pm(Image::load(filename, m_tm.screenNum())); std::auto_ptr<FbTk::PixmapWithMask> pm(Image::load(filename, m_tm.screenNum()));
if (pm.get() == 0) if (pm.get() == 0)
setDefaultValue(); setDefaultValue();
else { else {
(*this)->pixmap() = pm->pixmap().release(); (*this)->pixmap() = pm->pixmap().release();
(*this)->mask() = pm->mask().release(); (*this)->mask() = pm->mask().release();
} }
} }
} }
template <> template <>
void ThemeItem<FbTk::Color>::setDefaultValue() { void ThemeItem<FbTk::Color>::setDefaultValue() {
m_value.setFromString("white", m_tm.screenNum()); m_value.setFromString("white", m_tm.screenNum());