File indexing completed on 2024-04-21 04:03:11

0001 /***************************************************************************
0002                                cmapmudviewstatusbar.h
0003                              -------------------
0004     begin                : Thu May 10 2001
0005     copyright            : (C) 2001 by Kmud Developer 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 CMAPMUDVIEWSTATUSBAR_H
0019 #define CMAPMUDVIEWSTATUSBAR_H
0020 
0021 #include <QStatusBar>
0022 
0023 class QPushButton;
0024 
0025 class CMapZone;
0026 class CMapLevel;
0027 class CMapManager;
0028 
0029 /**
0030   *@author Kmud Developer Team
0031   */
0032 
0033 class CMapViewStatusbar : public QStatusBar
0034 {
0035    Q_OBJECT
0036 public: 
0037   CMapViewStatusbar(CMapManager *manager, QWidget *parent=nullptr);
0038   ~CMapViewStatusbar() override;
0039 
0040   void setLevel(CMapLevel *level);
0041   void setZone(CMapZone *zone);
0042   void setRoom(QString room);
0043 
0044   void addFollowButton(QPushButton *button);
0045 private slots:
0046   void changeLevel(int index);
0047   void renameLevel(const QString &name);
0048   void changeZone(int index);
0049   void renameZone(const QString &name);
0050 private:
0051   struct Private;
0052   Private *d;
0053 };
0054 
0055 #endif