File indexing completed on 2024-04-28 04:02:52
0001 /*************************************************************************** 0002 dlgmaproomproperties.h - description 0003 ------------------- 0004 begin : Thu Mar 8 2001 0005 copyright : (C) 2001 by KMud Development Team 0006 email : kmud-devel@kmud.de 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either version 2 of the License, or * 0014 * (at your option) any later version. * 0015 * * 0016 ***************************************************************************/ 0017 0018 #ifndef DLGMAPROOMPROPERTIES_H 0019 #define DLGMAPROOMPROPERTIES_H 0020 0021 #include <QDialog> 0022 #include "ui_dlgmaproompropertiesbase.h" 0023 0024 #include "../cmaproom.h" 0025 0026 /**The map room properties dialog 0027 *@author KMud Development Team 0028 */ 0029 0030 class DlgMapRoomProperties : public QDialog, private Ui::DlgMapRoomPropertiesBase { 0031 Q_OBJECT 0032 public: 0033 DlgMapRoomProperties(CMapManager *manager,CMapRoom *roomElement,QWidget *parent=nullptr); 0034 ~DlgMapRoomProperties() override; 0035 0036 private slots: 0037 void slotAccept(); 0038 void slotUseDefaultColor(bool useDefaultColor); 0039 0040 void slotRemoveItem(); 0041 void slotAddItem(); 0042 void slotNewItemSelected(); 0043 void slotEditItemName(const QString & name); 0044 0045 void slotPathDelete(); 0046 void slotPathProperties(); 0047 0048 void slotE(); 0049 void slotHide(); 0050 void slotN(); 0051 void slotNE(); 0052 void slotNW(); 0053 void slotS(); 0054 void slotSE(); 0055 void slotSW(); 0056 void slotW(); 0057 void slotCustom(); 0058 0059 private: 0060 void setLabelPos(CMapRoom::labelPosTyp position); 0061 CMapRoom::labelPosTyp getLabelPos(void); 0062 void regenerateExits(void); 0063 0064 private: 0065 CMapRoom *room; 0066 CMapManager *mapManager; 0067 }; 0068 0069 #endif