Files
DataStructureProject/parkinglot.h
T
2017-12-14 16:34:48 +08:00

23 lines
487 B
C++

#ifndef PARKINGLOT_H
#define PARKINGLOT_H
#include <QWidget>
#include <QPainter>
#include <QDomDocument>
class ParkingLot
{
public:
explicit ParkingLot(const QString& fname, QWidget *parent = nullptr);
void creatMap();
QPixmap creatMap2() const;
QPixmap* getPixmap() const;
~ParkingLot();
private:
// bool vertical;
QPixmap* map;
QDomDocument* doc;
QWidget* parent;
QPixmap parseLayout(const QDomElement& layout) const;
};
#endif // PARKINGLOT_H