v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
59
source/mod_uploader/StarModUploader.hpp
Normal file
59
source/mod_uploader/StarModUploader.hpp
Normal file
|
@ -0,0 +1,59 @@
|
|||
#ifndef STAR_MOD_UPLOADER
|
||||
#define STAR_MOD_UPLOADER
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QLabel>
|
||||
#include <QListWidget>
|
||||
#include <QLineEdit>
|
||||
#include <QPlainTextEdit>
|
||||
#include <QPushButton>
|
||||
#include <QCheckBox>
|
||||
|
||||
#include "steam/steam_api.h"
|
||||
|
||||
#include "StarDirectoryAssetSource.hpp"
|
||||
#include "StarSPlainTextEdit.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
class ModUploader : public QMainWindow {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ModUploader();
|
||||
|
||||
private slots:
|
||||
void selectDirectory();
|
||||
void loadDirectory();
|
||||
void selectPreview();
|
||||
void writeMetadata();
|
||||
void writePreview();
|
||||
void resetModId();
|
||||
void uploadToSteam();
|
||||
|
||||
private:
|
||||
void onSteamCreateItem(CreateItemResult_t* result, bool ioFailure);
|
||||
void onSteamSubmitItem(SubmitItemUpdateResult_t* result, bool ioFailure);
|
||||
|
||||
QPushButton* m_reloadButton;
|
||||
QLabel* m_directoryLabel;
|
||||
QLineEdit* m_nameEditor;
|
||||
QLineEdit* m_titleEditor;
|
||||
QLineEdit* m_authorEditor;
|
||||
QLineEdit* m_versionEditor;
|
||||
SPlainTextEdit* m_descriptionEditor;
|
||||
QLabel* m_previewImageLabel;
|
||||
QLabel* m_modIdLabel;
|
||||
QWidget* m_editorSection;
|
||||
HashMap<String, QCheckBox*> m_categorySelectors;
|
||||
|
||||
Maybe<String> m_modDirectory;
|
||||
Maybe<DirectoryAssetSource> m_assetSource;
|
||||
QImage m_modPreview;
|
||||
|
||||
Maybe<pair<CreateItemResult_t, bool>> m_steamItemCreateResult;
|
||||
Maybe<pair<SubmitItemUpdateResult_t, bool>> m_steamItemSubmitResult;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue