osm_frame_widget.h 876 字节
Newer Older
丁劲犇's avatar
丁劲犇 已提交
1
#ifndef OSM_FRAME_WIDGET_H
丁劲犇's avatar
丁劲犇 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
#define OSM_FRAME_WIDGET_H

#include <QWidget>
#include <QMap>
#include <QStandardItemModel>
#include "osmtiles/layer_interface.h"
namespace Ui {
	class osm_frame_widget;
}

class osm_frame_widget : public QWidget
{
	Q_OBJECT

public:
	explicit osm_frame_widget(QWidget *parent = 0);
	~osm_frame_widget();

private:
	Ui::osm_frame_widget *ui;
	QStandardItemModel *m_pLayerDispMod;
	QMap<layer_interface *, QWidget *> m_layerPropPages;
	void UpdateLayerTable();
	void AppendLayer(layer_interface * interface);
	void EnumPlugins();
public slots:
	void on_pushButton_visible_clicked();
	void on_pushButton_hide_clicked();
	void on_pushButton_moveUp_clicked();
	void on_pushButton_moveTop_clicked();
	void on_pushButton_moveDown_clicked();
	void on_pushButton_moveBtm_clicked();
	void on_pushButton_active_clicked();
};

#endif // OSM_FRAME_WIDGET_H