/***************************************************************************** * gta5sync GRAND THEFT AUTO V SYNC * Copyright (C) 2016 Syping * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . *****************************************************************************/ #ifndef SAVEGAMEWIDGET_H #define SAVEGAMEWIDGET_H #include #include "SavegameData.h" namespace Ui { class SavegameWidget; } class SavegameWidget : public QWidget { Q_OBJECT public: explicit SavegameWidget(QWidget *parent = 0); void setSavegameData(SavegameData *savegame, QString savegamePath); ~SavegameWidget(); private slots: void on_cmdDelete_clicked(); void on_cmdCopy_clicked(); protected: void mouseDoubleClickEvent(QMouseEvent *ev); private: Ui::SavegameWidget *ui; SavegameData *sgdata; QString sgdPath; QString sgdStr; signals: void savegameDeleted(); }; #endif // SAVEGAMEWIDGET_H