mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 09:33:11 +02:00
Introduced ModelPackager
This commit is contained in:
parent
f55e9b6c1c
commit
d0d9d4bbac
2 changed files with 64 additions and 0 deletions
36
interface/src/ModelPackager.cpp
Normal file
36
interface/src/ModelPackager.cpp
Normal 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() {
|
||||
|
||||
}
|
||||
|
||||
|
28
interface/src/ModelPackager.h
Normal file
28
interface/src/ModelPackager.h
Normal 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
|
Loading…
Reference in a new issue