23 #ifndef BAGEL_BAGLIB_LOG_MSG_H 24 #define BAGEL_BAGLIB_LOG_MSG_H 26 #include "bagel/baglib/text_object.h" 27 #include "bagel/baglib/storage_dev_bmp.h" 39 void setSize(
const CBofSize &size)
override;
44 #define MSG_TIME_MASK 0x3FFF 45 #define MSG_PLAYED_MASK 0x4000 65 void setSize(
const CBofSize &size)
override;
67 void setProperty(
const CBofString &prop,
int val)
override;
68 int getProperty(
const CBofString &prop)
override;
77 void setMsgTime(
int &msgTime) {
78 const int state = getState();
79 setState((state & MSG_PLAYED_MASK) | (msgTime & MSG_TIME_MASK));
83 return getState() & MSG_TIME_MASK;
86 void setMsgPlayed(
bool playedFl) {
87 const int state = getState();
88 setState((state & MSG_TIME_MASK) | (playedFl ==
true ? MSG_PLAYED_MASK : 0));
91 return (getState() & MSG_PLAYED_MASK) != 0;
95 #define mSusChecked 0x0001 96 #define mSusVoicePrinted 0x0002 97 #define mSusResiduePrinted 0x0004 113 void setSize(
const CBofSize &size)
override;
117 void setProperty(
const CBofString &prop,
int val)
override;
118 int getProperty(
const CBofString &prop)
override;
123 void setSusSpecies(
const CBofString &susSpecies) {
124 _susSpecies = susSpecies;
130 void setSusVoicePrinted(
bool bVal) {
131 bVal ==
false ? setState(getState() & ~mSusVoicePrinted) : setState(getState() | mSusVoicePrinted);
133 bool getSusVoicePrinted() {
134 return (getState() & mSusVoicePrinted) != 0;
137 void setSusResiduePrinted(
bool bVal) {
138 bVal ==
false ? setState(getState() & ~mSusResiduePrinted) : setState(getState() | mSusResiduePrinted);
140 bool getSusResiduePrinted() {
141 return (getState() & mSusResiduePrinted) != 0;
144 void setSusChecked(
bool bVal) {
145 bVal ==
false ? setState(getState() & ~mSusChecked) : setState(getState() | mSusChecked);
147 bool getSusChecked() {
148 return (getState() & mSusChecked) != 0;
157 static CBagLog *_lastFloatPage;
162 static void initialize() {
163 _lastFloatPage =
nullptr;
174 ErrorCode activateLocalObject(
CBagObject *bagObj)
override;
179 ErrorCode releaseMsg();
181 ErrorCode playMsgQueue();
198 void setCurFltPage(
int fltPage);
200 static void arrangePages();
201 static void initArrangePages() {
202 _lastFloatPage =
nullptr;
216 ErrorCode attach()
override;
218 void setMsgTime(
int &nVal) {
230 bool _textInitializedFl;
246 ErrorCode attach()
override;
Definition: log_msg.h:234
Definition: text_object.h:37
ParseCodes setInfo(CBagIfstream &istr) override
Definition: ifstream.h:31
Definition: log_msg.h:152
Definition: log_msg.h:206
Definition: storage_dev_bmp.h:31