#ifndef NETWORKSELECTOR_H #define NETWORKSELECTOR_H #include #include #include #include class QStandardItemModel; QT_BEGIN_NAMESPACE namespace Ui { class NetworkSelector; } QT_END_NAMESPACE class NetworkSelector : public QMainWindow { Q_OBJECT public: NetworkSelector(QWidget *parent = nullptr); ~NetworkSelector(); private slots: void onTreeSingleClicked(QModelIndex index); void onTreeDoubleClicked(QModelIndex index); void onCreateClicked(); void onDeleteClicked(); void onModifyClicked(); private: QStandardItem *connGroupItem(QString itemName); void regenConnTree(); void modifyConnection(QModelIndex index); Ui::NetworkSelector *ui; QStandardItemModel *connTreeModel; QList connTreeList; NetworkManager::Connection::List connList; QDialog *dialogWindow; }; #endif // NETWORKSELECTOR_H