Continues the work of the material subsystem improvements. This merge covers the continued development of the material editor. The primary improvements are in the handling of 2D and 3D array properties. These properties are now fully editable, and can be saved and restored. The cards now separate the author and license. These were previously saved as a single item. Future support will be provided for standard open source licenses. Saving operations validate the cards to ensure UUIDs of materials are considered. Warnings are given when a save could potentially impact the models, such as saving over a material instead of creating a new instance. The editor is still not complete. There are a number of functional elements, such as drag/drop operations, folder creation, and deletion operations that need to be added to the main tree. State needs to be saved and restored to improve the user experience. The appearance preview also needs significant work. This will be handled in a future PR.
71 lines
2.4 KiB
C++
71 lines
2.4 KiB
C++
/***************************************************************************
|
|
* Copyright (c) 2023 David Carter <dcarter@david.carter.ca> *
|
|
* *
|
|
* This file is part of FreeCAD. *
|
|
* *
|
|
* FreeCAD is free software: you can redistribute it and/or modify it *
|
|
* under the terms of the GNU Lesser General Public License as *
|
|
* published by the Free Software Foundation, either version 2.1 of the *
|
|
* License, or (at your option) any later version. *
|
|
* *
|
|
* FreeCAD 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 *
|
|
* Lesser General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU Lesser General Public *
|
|
* License along with FreeCAD. If not, see *
|
|
* <https://www.gnu.org/licenses/>. *
|
|
* *
|
|
**************************************************************************/
|
|
|
|
#ifndef MATGUI_PRECOMPILED_H
|
|
#define MATGUI_PRECOMPILED_H
|
|
|
|
#include <FCConfig.h>
|
|
|
|
// point at which warnings of overly long specifiers disabled (needed for VC6)
|
|
#ifdef _MSC_VER
|
|
#pragma warning(disable : 4251)
|
|
#pragma warning(disable : 4503)
|
|
#pragma warning(disable : 4786) // specifier longer then 255 chars
|
|
#pragma warning(disable : 4273)
|
|
#endif
|
|
|
|
#ifdef FC_OS_WIN32
|
|
#ifndef NOMINMAX
|
|
#define NOMINMAX
|
|
#endif
|
|
#include <windows.h>
|
|
#endif
|
|
|
|
#ifdef _PreComp_
|
|
|
|
// standard
|
|
#include <cfloat>
|
|
#include <cmath>
|
|
|
|
// STL
|
|
#include <algorithm>
|
|
#include <map>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
// OpenCasCade
|
|
// #include <Mod/Part/App/OpenCascadeAll.h>
|
|
|
|
// Qt Toolkit
|
|
#ifndef __QtAll__
|
|
#include <Gui/QtAll.h>
|
|
#endif
|
|
|
|
// // Inventor includes OpenGL
|
|
// #ifndef __InventorAll__
|
|
// # include <Gui/InventorAll.h>
|
|
// #endif
|
|
|
|
#endif //_PreComp_
|
|
|
|
#endif // MATGUI_PRECOMPILED_H
|