Introduced ModelPackager

This commit is contained in:
Atlante45 2015-03-10 11:50:13 +01:00
parent f55e9b6c1c
commit d0d9d4bbac
2 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,36 @@
//
// ModelPackager.cpp
//
//
// Created by Clement on 3/9/15.
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "ModelSelector.h"
#include "ModelPackager.h"
void ModelPackager::package() {
ModelPackager packager;
if (packager.selectModel()) {
packager.editProperties();
packager.zipModel();
}
}
bool ModelPackager::selectModel() {
ModelSelector selector;
return selector.exec() == QDialog::Accepted;
}
void ModelPackager::editProperties() {
}
void ModelPackager::zipModel() {
}

View file

@ -0,0 +1,28 @@
//
// ModelPackager.h
//
//
// Created by Clement on 3/9/15.
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#ifndef hifi_ModelPackager_h
#define hifi_ModelPackager_h
class ModelPackager {
public:
static void package();
private:
bool selectModel();
void editProperties();
void zipModel();
};
#endif // hifi_ModelPackager_h