1 #ifndef MWGUI_MAPWINDOW_H
2 #define MWGUI_MAPWINDOW_H
6 #include <boost/shared_ptr.hpp>
52 typedef std::pair<ContainerType::const_iterator, ContainerType::const_iterator>
RangeType;
54 ContainerType::const_iterator
begin()
const;
55 ContainerType::const_iterator
end()
const;
71 void init(MyGUI::ScrollView* widget, MyGUI::ImageBox* compass,
int mapWidgetSize,
int cellDistance);
74 void setActiveCell(
const int x,
const int y,
bool interior=
false);
77 void setPlayerPos(
int cellX,
int cellY,
const float nx,
const float ny);
174 void setText(
const std::string& text);
228 void onDragStart(MyGUI::Widget* _sender,
int _left,
int _top, MyGUI::MouseButton _id);
229 void onMouseDrag(MyGUI::Widget* _sender,
int _left,
int _top, MyGUI::MouseButton _id);
virtual void doorMarkerCreated(MyGUI::Widget *marker)
Definition: mapwindow.cpp:1045
bool mFogOfWarEnabled
Definition: mapwindow.hpp:115
std::vector< MyGUI::ImageBox * > mMapWidgets
Definition: mapwindow.hpp:125
std::auto_ptr< MyGUI::ITexture > mGlobalMapOverlayTexture
Definition: mapwindow.hpp:243
MapWindow(CustomMarkerCollection &customMarkers, DragAndDrop *drag, MWRender::LocalMap *localMapRender)
Definition: mapwindow.cpp:625
void setGlobalMapPlayerPosition(float worldX, float worldY)
Definition: mapwindow.cpp:963
void requestMapRender(const MWWorld::CellStore *cell)
Definition: mapwindow.cpp:404
std::map< std::pair< int, int >, MyGUI::Widget * > mGlobalMapMarkers
Definition: mapwindow.hpp:267
EventHandle_Void eventMarkersChanged
Definition: mapwindow.hpp:60
MyGUI::ImageBox * mGlobalMapImage
Definition: mapwindow.hpp:244
void globalMapUpdatePlayer()
Definition: mapwindow.cpp:946
void onDragStart(MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id)
Definition: mapwindow.cpp:897
RangeType getMarkers(const ESM::CellId &cellId) const
Definition: mapwindow.cpp:147
bool mFogOfWarToggled
Definition: mapwindow.hpp:114
MyGUI::ImageBox * mCompass
Definition: mapwindow.hpp:111
virtual void onPinToggled()
Definition: mapwindow.cpp:930
Definition: mapwindow.hpp:66
void write(ESM::ESMWriter &writer, Loading::Listener &progress)
Definition: mapwindow.cpp:999
Definition: mapwindow.hpp:39
MyGUI::ImageBox * mPlayerArrowGlobal
Definition: mapwindow.hpp:247
int cellX
Definition: mapwindow.hpp:97
Definition: esmreader.hpp:21
void setPlayerDir(const float x, const float y)
Definition: mapwindow.cpp:448
void onFrame(float dt)
Definition: mapwindow.cpp:842
int mMapWidgetSize
Definition: mapwindow.hpp:117
Definition: mapwindow.hpp:193
void updateDoorMarkers()
Definition: mapwindow.cpp:526
void onFrame(float dt)
Definition: mapwindow.cpp:509
virtual void notifyMapChanged()
Definition: mapwindow.hpp:144
MyGUI::IntCoord mLastScrollWindowCoordinates
Definition: mapwindow.hpp:252
std::multimap< ESM::CellId, ESM::CustomMarker > ContainerType
Definition: mapwindow.hpp:50
void clear()
Clear all savegame-specific data.
Definition: mapwindow.cpp:987
bool toggleFogOfWar()
Definition: mapwindow.cpp:228
void updateMagicMarkers()
Definition: mapwindow.cpp:589
virtual void onTitleDoubleClicked()
Definition: mapwindow.cpp:935
void readRecord(ESM::ESMReader &reader, uint32_t type)
Definition: mapwindow.cpp:1011
void onCustomMarkerDoubleClicked(MyGUI::Widget *sender)
Definition: mapwindow.cpp:714
virtual ~MapWindow()
Definition: mapwindow.cpp:792
std::string mPrefix
Definition: mapwindow.hpp:112
void clear()
Definition: mapwindow.cpp:131
void updateMarker(const ESM::CustomMarker &marker, const std::string &newNote)
Definition: mapwindow.cpp:115
int mCurX
Definition: mapwindow.hpp:108
virtual void open()
Notify that window has been made visible.
Definition: mapwindow.cpp:1086
MyGUI::TextBox * mTextEdit
Definition: mapwindow.hpp:187
std::pair< ContainerType::const_iterator, ContainerType::const_iterator > RangeType
Definition: mapwindow.hpp:52
Definition: loadinglistener.hpp:8
int mNumCells
Definition: mapwindow.hpp:119
std::vector< CellId > mQueuedToExplore
Definition: mapwindow.hpp:260
Definition: draganddrop.hpp:17
void onNoteEditOk()
Definition: mapwindow.cpp:685
void cellExplored(int x, int y)
Definition: mapwindow.cpp:837
int mCellDistance
Definition: mapwindow.hpp:120
void setPlayerPos(int cellX, int cellY, const float nx, const float ny)
Definition: mapwindow.cpp:430
std::vector< std::string > notes
Definition: mapwindow.hpp:101
MyGUI::ImageBox * mPlayerArrowLocal
Definition: mapwindow.hpp:246
int cellY
Definition: mapwindow.hpp:98
EditNoteDialog mEditNoteDialog
Definition: mapwindow.hpp:269
virtual void setAlpha(float alpha)
Definition: mapwindow.cpp:1029
TextureVector mMapTextures
Definition: mapwindow.hpp:129
void renderGlobalMap(Loading::Listener *loadingListener)
Definition: mapwindow.cpp:777
ContainerType mMarkers
Definition: mapwindow.hpp:63
MyGUI::ImageBox * mGlobalMapOverlay
Definition: mapwindow.hpp:245
Definition: esmwriter.hpp:17
float mLastDirectionY
Definition: mapwindow.hpp:157
std::set< CellId > mMarkers
Definition: mapwindow.hpp:256
ESM::CustomMarker mEditingMarker
Definition: mapwindow.hpp:270
TextureVector mFogTextures
Definition: mapwindow.hpp:130
std::string getText()
Definition: mapwindow.cpp:1081
MyGUI::Button * mEventBoxLocal
Definition: mapwindow.hpp:263
std::vector< MyGUI::Widget * > mDoorMarkerWidgets
Definition: mapwindow.hpp:133
EventHandle_Void eventOkClicked
Definition: mapwindow.hpp:180
void onNoteDoubleClicked(MyGUI::Widget *sender)
MyGUI::Button * mCancelButton
Definition: mapwindow.hpp:189
Definition: windowbase.hpp:52
void onCancelButtonClicked(MyGUI::Widget *sender)
Definition: mapwindow.cpp:1098
void addVisitedLocation(const std::string &name, int x, int y)
Definition: mapwindow.cpp:802
Definition: windowpinnablebase.hpp:10
virtual void updateCustomMarkers()
Definition: mapwindow.cpp:313
MyGUI::ScrollView * mLocalMap
Definition: mapwindow.hpp:110
MyGUI::IntPoint mLastDragPos
Definition: mapwindow.hpp:249
bool mChanged
Definition: mapwindow.hpp:113
bool getDeleteButtonShown()
Definition: mapwindow.cpp:1071
void onOkButtonClicked(MyGUI::Widget *sender)
Definition: mapwindow.cpp:1103
void init(MyGUI::ScrollView *widget, MyGUI::ImageBox *compass, int mapWidgetSize, int cellDistance)
Definition: mapwindow.cpp:186
virtual void notifyPlayerUpdate()
Definition: mapwindow.cpp:956
bool mNeedDoorMarkersUpdate
Definition: mapwindow.hpp:161
Local map rendering.
Definition: localmap.hpp:36
CustomMarkerCollection & mCustomMarkers
Definition: mapwindow.hpp:123
float mLastDirectionX
Definition: mapwindow.hpp:156
void onMapDoubleClicked(MyGUI::Widget *sender)
Definition: mapwindow.cpp:722
virtual void exit()
Gracefully exits the window.
Definition: mapwindow.cpp:1093
Definition: mapwindow.hpp:164
void deleteMarker(const ESM::CustomMarker &marker)
Definition: mapwindow.cpp:99
MyGUI::IntPoint getMarkerPosition(float worldX, float worldY, MarkerUserData &markerPos)
Definition: mapwindow.cpp:271
void addMarker(const ESM::CustomMarker &marker, bool triggerEvent=true)
Definition: mapwindow.cpp:92
Mutable state of a cell.
Definition: cellstore.hpp:53
void setGlobalMapMarkerTooltip(MyGUI::Widget *widget, int x, int y)
Definition: mapwindow.cpp:858
int mCurY
Definition: mapwindow.hpp:108
std::vector< MyGUI::Widget * > mMagicMarkerWidgets
Definition: mapwindow.hpp:134
MarkerUserData(MWRender::LocalMap *map)
Definition: mapwindow.hpp:85
MWRender::LocalMap * mLocalMapRender
Definition: mapwindow.hpp:96
void setCellPrefix(const std::string &prefix)
Definition: mapwindow.cpp:222
float mMarkerUpdateTimer
Definition: mapwindow.hpp:154
void setText(const std::string &text)
Definition: mapwindow.cpp:1076
MyGUI::delegates::CMultiDelegate0 EventHandle_Void
Definition: mapwindow.hpp:177
void setCellName(const std::string &cellName)
Definition: mapwindow.cpp:797
ContainerType::const_iterator begin() const
Definition: mapwindow.cpp:137
virtual void customMarkerCreated(MyGUI::Widget *marker)
Definition: mapwindow.hpp:146
void onDeleteButtonClicked(MyGUI::Widget *sender)
Definition: mapwindow.cpp:1108
MyGUI::delegates::CMultiDelegate0 EventHandle_Void
Definition: mapwindow.hpp:59
MyGUI::Button * mOkButton
Definition: mapwindow.hpp:188
Definition: custommarkerstate.hpp:10
ContainerType::const_iterator end() const
Definition: mapwindow.cpp:142
EditNoteDialog()
Definition: mapwindow.cpp:1053
void addDetectionMarkers(int type)
Definition: mapwindow.cpp:465
void onMouseDrag(MyGUI::Widget *_sender, int _left, int _top, MyGUI::MouseButton _id)
Definition: mapwindow.cpp:903
virtual void customMarkerCreated(MyGUI::Widget *marker)
Definition: mapwindow.cpp:1038
void onWorldButtonClicked(MyGUI::Widget *_sender)
Definition: mapwindow.cpp:917
MyGUI::Button * mButton
Definition: mapwindow.hpp:248
size_t size() const
Definition: mapwindow.cpp:152
bool mInterior
Definition: mapwindow.hpp:109
bool isPositionExplored() const
Definition: mapwindow.cpp:1113
virtual ~LocalMapBase()
Definition: mapwindow.cpp:181
void setActiveCell(const int x, const int y, bool interior=false)
Definition: mapwindow.cpp:359
float nX
Definition: mapwindow.hpp:99
void showDeleteButton(bool show)
Definition: mapwindow.cpp:1066
std::pair< int, int > CellId
Definition: mapwindow.hpp:255
MyGUI::Button * mDeleteButton
Definition: mapwindow.hpp:190
void redraw()
Definition: mapwindow.cpp:424
LocalMapBase(CustomMarkerCollection &markers, MWRender::LocalMap *localMapRender, bool fogOfWarEnabled=true)
Definition: mapwindow.cpp:159
std::string caption
Definition: mapwindow.hpp:102
MWRender::LocalMap * mLocalMapRender
Definition: mapwindow.hpp:106
float nY
Definition: mapwindow.hpp:100
virtual void doorMarkerCreated(MyGUI::Widget *marker)
Definition: mapwindow.hpp:147
Definition: cellid.hpp:11
void applyFogOfWar()
Definition: mapwindow.cpp:235
void onChangeScrollWindowCoord(MyGUI::Widget *sender)
Definition: mapwindow.cpp:763
Definition: mapwindow.hpp:83
MyGUI::Button * mEventBoxGlobal
Definition: mapwindow.hpp:262
virtual void notifyPlayerUpdate()
Definition: mapwindow.hpp:143
virtual void updateCustomMarkers()
Definition: mapwindow.cpp:884
std::vector< MyGUI::Widget * > mCustomMarkerWidgets
Definition: mapwindow.hpp:135
void setGlobalMapPlayerDir(const float x, const float y)
Definition: mapwindow.cpp:978
EventHandle_Void eventDeleteClicked
Definition: mapwindow.hpp:179
std::vector< boost::shared_ptr< MyGUI::ITexture > > TextureVector
Definition: mapwindow.hpp:128
MyGUI::ScrollView * mGlobalMap
Definition: mapwindow.hpp:241
std::auto_ptr< MyGUI::ITexture > mGlobalMapTexture
Definition: mapwindow.hpp:242
std::vector< MyGUI::ImageBox * > mFogWidgets
Definition: mapwindow.hpp:126
bool mGlobal
Definition: mapwindow.hpp:250
void onNoteEditDeleteConfirm()
Definition: mapwindow.cpp:707
void onNoteEditDelete()
Definition: mapwindow.cpp:698
virtual void open()
Notify that window has been made visible.
Definition: mapwindow.cpp:941
Definition: windowbase.hpp:41
MWRender::GlobalMap * mGlobalMapRender
Definition: mapwindow.hpp:265
const char * name
Definition: crashcatcher.cpp:59
Definition: globalmap.hpp:30