ScummVM API documentation
dossier_object.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef BAGEL_BAGLIB_DOSSIER_OBJECT_H
24 #define BAGEL_BAGLIB_DOSSIER_OBJECT_H
25 
26 #include "bagel/baglib/text_object.h"
27 #include "bagel/baglib/log_msg.h"
28 
29 namespace Bagel {
30 
32 private:
33  CBofString _indexLine;
34  CBofRect _indexRect;
35  CBofRect _dossierRect;
36  CBagObject *_residuePrintedObject;
37 
38  bool _dossierSetFl : 1;
39  bool _notActiveFl : 1;
40  bool _showIndexFl : 1;
41  bool _dosRectInitFl : 1;
42 
43 public:
44  CBofString _sSuspectVar;
45 
46 public:
48  virtual ~CBagDossierObject();
49 
54  ParseCodes setInfo(CBagIfstream &istr) override;
55 
56  ErrorCode attach() override;
57  ErrorCode detach() override;
58 
59  ErrorCode update(CBofBitmap *, CBofPoint, CBofRect * = nullptr, int = -1) override;
60 
61  void onLButtonUp(uint32 /*nFlags*/, CBofPoint * /*xPoint*/, void * = nullptr) override; // run menu if available
62 
63  CBofRect getRect() override;
64 
65  void setNotActive(bool b) {
66  _notActiveFl = b;
67  }
68  bool getNotActive() const {
69  return _notActiveFl;
70  }
71 
72  void activateDossierObject(CBagLog *logWld);
73  void deactivateDossierObject(CBagLog *logWld);
74 
75  void setResiduePrintedObject(CBagObject *p) {
76  _residuePrintedObject = p;
77  };
78 
79  static void deactivateCurDossier();
80  void showDossierText();
81 
82  static void initialize();
83  static CBagDossierObject *_curDossier;
84 };
85 
86 } // namespace Bagel
87 
88 #endif
Definition: bitmap.h:55
Definition: text_object.h:37
Definition: rect.h:36
ParseCodes setInfo(CBagIfstream &istr) override
Definition: object.h:85
Definition: ifstream.h:31
Definition: log_msg.h:152
Definition: string.h:38
Definition: bagel.h:31
Definition: point.h:34
Definition: dossier_object.h:31