22 #ifndef NANCY_UI_CELLPHONEPOPUP_H 23 #define NANCY_UI_CELLPHONEPOPUP_H 25 #include "engines/nancy/commontypes.h" 26 #include "engines/nancy/enginedata.h" 27 #include "engines/nancy/renderobject.h" 43 void registerGraphics()
override;
44 void updateGraphics()
override;
49 void toggle() {
if (_isVisible) close();
else open(); }
53 void setNoSignal(
bool noSignal);
56 void setBatteryLow(
bool low);
66 int16 flag, int16 eventFlag);
81 enum ScreenState :
int {
85 kWaitOutgoingRing = 3,
99 void drawScreenContent();
100 void drawStatusIcons();
101 void drawWebDirLabels();
102 void drawDialLabel();
103 void drawTypeMessage();
104 void drawConnectedLabel();
105 void drawConnectingSprite();
106 void drawDialedNumber();
107 void drawHelpButton(uint state);
108 void drawCloseButton(uint state);
109 void drawStatusLabels();
110 void drawDirectoryList();
111 void drawDirectoryArrows();
112 void drawWelcomeScreen();
113 void drawBackLabel();
121 void drawContentView();
125 void openBrowserHome();
135 bool isZoomedChromeState()
const {
136 return _screenState == kWebList ||
137 _screenState == kEmailList ||
138 _screenState == kContentView;
143 bool isSubScreenState()
const {
144 return _screenState == kDirectory ||
145 _screenState == kOnlineHub ||
146 isZoomedChromeState();
150 void enterScreenState(ScreenState newState);
151 void appendDigit(byte slotIndex);
153 bool callSoundIsStillPlaying()
const;
154 void triggerContactCallSceneChange(uint contactIndex);
155 int findContactByDialBuffer()
const;
157 uint maxDirectoryRows()
const;
161 int rowPitch()
const;
162 int rowTopScreen()
const;
163 bool isLinkListMode()
const {
return _screenState == kWebList || _screenState == kEmailList; }
164 bool isOnlineMode()
const {
return _screenState == kOnlineHub || isLinkListMode(); }
169 uint listTitleRows()
const {
return 0; }
174 void startCallToContact(uint contactIndex);
176 int contactIndexForVisibleRow(uint visibleRow)
const;
177 uint deduplicatedContactCount()
const;
179 uint currentListEntryCount()
const;
189 void moveDirectorySelection(
int delta);
193 const UICL *_uiclData;
203 bool _closeButtonHovered =
false;
204 bool _scrollUpHovered =
false;
205 bool _scrollDownHovered =
false;
207 ScreenState _screenState = kWelcome;
216 int _resolvedContact = -1;
218 int _hoveredSlot = -1;
221 uint _directoryScroll = 0;
222 uint _directorySelection = 0;
225 ScreenState _contentReturnState = kOnlineHub;
228 uint _contentScroll = 0;
235 bool _noSignal =
false;
236 bool _batteryLow =
false;
241 bool _hasPendingCallScene =
false;
244 bool _hasReturnScene =
false;
250 #endif // NANCY_UI_CELLPHONEPOPUP_H Definition: managed_surface.h:51
Definition: commontypes.h:152
Definition: enginedata.h:577
Definition: soundequalizerpuzzle.h:27
Definition: renderobject.h:36
Definition: enginedata.h:604
Definition: commontypes.h:255
Definition: actionmanager.h:32