khanat-opennel-code/code/studio/src/plugins/gui_editor/project_files.h
2014-05-06 01:30:28 +02:00

61 lines
1.4 KiB
C++

// Object Viewer Qt GUI Editor plugin <http://dev.ryzom.com/projects/ryzom/>
// Copyright (C) 2010 Winch Gate Property Limited
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero 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 Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef PROJECT_FILES_H
#define PROJECT_FILES_H
#include <vector>
#include <string>
namespace GUIEditor
{
enum ProjectVersion
{
OLD = 0,
NEW = 1,
MAX_PROJECTFILE_VERSION
};
struct SProjectFiles
{
public:
std::string projectName;
unsigned long version;
std::string masterGroup;
std::string activeGroup;
std::vector< std::string > guiFiles;
std::vector< std::string > mapFiles;
void clearFiles()
{
guiFiles.clear();
mapFiles.clear();
}
void clearAll()
{
clearFiles();
projectName = "";
masterGroup = "";
activeGroup = "";
}
};
}
#endif