X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstate.cpp;h=368e69350156337f7e48d2c6a2aaaad8d4f2239a;hb=8ffcd589660022f05d8b3b1dbb36c0c0aa91954a;hp=bbff03dc9306ef8142935131aba760d75c1d80ee;hpb=c1f038acb91eb3bfaa34dfd4729d19ed3f871a42;p=libs%2Fgltk.git diff --git a/source/state.cpp b/source/state.cpp index bbff03d..368e693 100644 --- a/source/state.cpp +++ b/source/state.cpp @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of libmspgltk +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include "state.h" using namespace std; @@ -9,13 +16,13 @@ istream &operator>>(istream &is, State &state) { string str; is>>str; - if(str=="normal") + if(str=="NORMAL") state=NORMAL; - else if(str=="hover") + else if(str=="HOVER") state=HOVER; - else if(str=="active") + else if(str=="ACTIVE") state=ACTIVE; - else if(str=="disabled") + else if(str=="DISABLED") state=DISABLED; else is.setstate(ios_base::failbit);