Mudlet  0
Mudclient
dlgMapper.h
Go to the documentation of this file.
1 #ifndef MUDLET_DLGMAPPER_H
2 #define MUDLET_DLGMAPPER_H
3 
4 /***************************************************************************
5  * Copyright (C) 2008-2012 by Heiko Koehn - KoehnHeiko@googlemail.com *
6  * Copyright (C) 2014 by Ahmed Charles - acharles@outlook.com *
7  * Copyright (C) 2016 by Stephen Lyons - slysven@virginmedia.com *
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  * This program is distributed in the hope that it will be useful, *
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
17  * GNU General Public License for more details. *
18  * *
19  * You should have received a copy of the GNU General Public License *
20  * along with this program; if not, write to the *
21  * Free Software Foundation, Inc., *
22  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
23  ***************************************************************************/
24 
25 
26 #include "pre_guard.h"
27 #include "ui_mapper.h"
28 #include <QDir>
29 #include <QMainWindow>
30 #include <QPointer>
31 #include "post_guard.h"
32 
33 
34 class Host;
35 class TMap;
36 
37 
38 class dlgMapper : public QWidget, public Ui::mapper
39 {
40  Q_OBJECT
41 
42 public:
43  Q_DISABLE_COPY(dlgMapper)
44  dlgMapper(QWidget*, Host*, TMap*);
45  void updateAreaComboBox();
46  void setDefaultAreaShown(bool);
49 
50 public slots:
51  void slot_bubbles();
52  void slot_info();
53  void slot_toggleShowRoomIDs(int s);
54  void slot_toggleStrongHighlight(int v);
55  void show2dView();
56  void slot_togglePanel();
57  void goRoom();
58  void choseRoom(QListWidgetItem*);
59  void slot_roomSize(int d);
60  void slot_lineSize(int d);
61 
62 private:
64  QPointer<Host> mpHost;
66 };
67 
68 #endif // MUDLET_DLGMAPPER_H
void show2dView()
Definition: dlgMapper.cpp:202
void slot_togglePanel()
Definition: dlgMapper.cpp:196
void slot_roomSize(int d)
Definition: dlgMapper.cpp:277
Definition: Host.h:62
void slot_toggleStrongHighlight(int v)
Definition: dlgMapper.cpp:190
void goRoom()
Definition: dlgMapper.cpp:239
void slot_bubbles()
Definition: dlgMapper.cpp:290
void choseRoom(QListWidgetItem *)
Definition: dlgMapper.cpp:213
bool mShowDefaultArea
Definition: dlgMapper.h:65
dlgMapper(QWidget *, Host *, TMap *)
Definition: dlgMapper.cpp:38
void slot_toggleShowRoomIDs(int s)
Definition: dlgMapper.cpp:179
QPointer< Host > mpHost
Definition: dlgMapper.h:64
void updateAreaComboBox()
Definition: dlgMapper.cpp:148
void setDefaultAreaShown(bool)
Definition: dlgMapper.cpp:304
Definition: TMap.h:79
void resetAreaComboBoxToPlayerRoomArea()
Definition: dlgMapper.cpp:312
TMap * mpMap
Definition: dlgMapper.h:63
bool getDefaultAreaShown()
Definition: dlgMapper.h:47
void slot_info()
Definition: dlgMapper.cpp:297
void slot_lineSize(int d)
Definition: dlgMapper.cpp:284