Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
50
qt/bookmark_dialog.hpp
Normal file
50
qt/bookmark_dialog.hpp
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
#pragma once
|
||||
|
||||
#include "kml/types.hpp"
|
||||
|
||||
#include <QtWidgets/QApplication>
|
||||
#include <QtWidgets/QDialog>
|
||||
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
class QTreeWidget;
|
||||
class QTreeWidgetItem;
|
||||
class QLabel;
|
||||
class QPushButton;
|
||||
|
||||
class Framework;
|
||||
|
||||
namespace qt
|
||||
{
|
||||
class BookmarkDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
BookmarkDialog(QWidget * parent, Framework & framework);
|
||||
|
||||
void ShowModal();
|
||||
|
||||
private slots:
|
||||
void OnItemClick(QTreeWidgetItem * item, int column);
|
||||
void OnCloseClick();
|
||||
void OnImportClick();
|
||||
void OnExportClick();
|
||||
void OnDeleteClick();
|
||||
|
||||
private:
|
||||
void FillTree();
|
||||
QTreeWidgetItem * CreateTreeItem(std::string const & title, QTreeWidgetItem * parent);
|
||||
void OnAsyncLoadingStarted();
|
||||
void OnAsyncLoadingFinished();
|
||||
void OnAsyncLoadingFileSuccess(std::string const & fileName, bool isTemporaryFile);
|
||||
void OnAsyncLoadingFileError(std::string const & fileName, bool isTemporaryFile);
|
||||
|
||||
QTreeWidget * m_tree;
|
||||
Framework & m_framework;
|
||||
std::unordered_map<QTreeWidgetItem *, kml::MarkGroupId> m_categories;
|
||||
std::unordered_map<QTreeWidgetItem *, kml::MarkId> m_bookmarks;
|
||||
std::unordered_map<QTreeWidgetItem *, kml::TrackId> m_tracks;
|
||||
};
|
||||
} // namespace qt
|
||||
Loading…
Add table
Add a link
Reference in a new issue