2014-01-29 19:09:30 -08:00
|
|
|
/*
|
2016-07-21 13:49:22 -07:00
|
|
|
Copyright (c) 2016, Lars Brubaker, Kevin Pope
|
2014-01-29 19:09:30 -08:00
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
2015-04-08 15:20:10 -07:00
|
|
|
modification, are permitted provided that the following conditions are met:
|
2014-01-29 19:09:30 -08:00
|
|
|
|
|
|
|
|
1. Redistributions of source code must retain the above copyright notice, this
|
2015-04-08 15:20:10 -07:00
|
|
|
list of conditions and the following disclaimer.
|
2014-01-29 19:09:30 -08:00
|
|
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
|
|
|
this list of conditions and the following disclaimer in the documentation
|
2015-04-08 15:20:10 -07:00
|
|
|
and/or other materials provided with the distribution.
|
2014-01-29 19:09:30 -08:00
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
|
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
|
|
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
|
|
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
|
|
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
|
|
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
|
|
The views and conclusions contained in the software and documentation are those
|
2015-04-08 15:20:10 -07:00
|
|
|
of the authors and should not be interpreted as representing official policies,
|
2014-01-29 19:09:30 -08:00
|
|
|
either expressed or implied, of the FreeBSD Project.
|
|
|
|
|
*/
|
|
|
|
|
|
2016-09-23 16:34:52 -07:00
|
|
|
using System;
|
2018-01-05 12:44:57 -08:00
|
|
|
using MatterControl.Printing;
|
2014-01-29 19:09:30 -08:00
|
|
|
|
|
|
|
|
namespace MatterHackers.MatterControl
|
|
|
|
|
{
|
2017-12-16 20:06:03 -08:00
|
|
|
public static class MatterControlApplication
|
2015-04-08 15:20:10 -07:00
|
|
|
{
|
2018-10-31 14:07:36 -07:00
|
|
|
public static string MCWSBaseUri { get; }
|
2017-12-18 17:22:50 -08:00
|
|
|
|
2018-10-31 14:07:36 -07:00
|
|
|
static MatterControlApplication()
|
|
|
|
|
{
|
2021-02-04 13:15:04 -08:00
|
|
|
if (AppContext.Options.McwsTestEnvironment)
|
2018-10-31 14:07:36 -07:00
|
|
|
{
|
|
|
|
|
MCWSBaseUri = "https://mattercontrol-test.appspot.com"; // http://192.168.2.129:9206
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MCWSBaseUri = "https://mattercontrol.appspot.com";
|
|
|
|
|
}
|
|
|
|
|
}
|
2018-10-31 16:23:44 -07:00
|
|
|
}
|
2016-08-26 18:30:21 -07:00
|
|
|
|
2018-10-31 16:23:44 -07:00
|
|
|
public static class BuildValidationTests
|
|
|
|
|
{
|
2015-05-05 07:25:47 -07:00
|
|
|
private static void AssertDebugNotDefined()
|
|
|
|
|
{
|
|
|
|
|
#if DEBUG
|
|
|
|
|
throw new Exception("DEBUG is defined and should not be!");
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void CheckKnownAssemblyConditionalCompSymbols()
|
|
|
|
|
{
|
2018-10-31 16:23:44 -07:00
|
|
|
BuildValidationTests.AssertDebugNotDefined();
|
2018-01-05 12:44:57 -08:00
|
|
|
GCodeFile.AssertDebugNotDefined();
|
2015-05-05 07:25:47 -07:00
|
|
|
MatterHackers.Agg.Graphics2D.AssertDebugNotDefined();
|
|
|
|
|
MatterHackers.Agg.UI.SystemWindow.AssertDebugNotDefined();
|
|
|
|
|
MatterHackers.Agg.ImageProcessing.InvertLightness.AssertDebugNotDefined();
|
|
|
|
|
MatterHackers.Localizations.TranslationMap.AssertDebugNotDefined();
|
|
|
|
|
MatterHackers.MarchingSquares.MarchingSquaresByte.AssertDebugNotDefined();
|
|
|
|
|
MatterHackers.MatterSlice.MatterSlice.AssertDebugNotDefined();
|
|
|
|
|
MatterHackers.RenderOpenGl.GLMeshTrianglePlugin.AssertDebugNotDefined();
|
|
|
|
|
}
|
2015-02-19 10:56:54 -08:00
|
|
|
}
|
Move to new library model and view
- Add new listview control for library content
- Migrate library providers to containers
- Cloud, Sqlite, Directories, Queue, History
- Migrate SideBar components to containers
- Primatives, Text, Braille, ImageConverter
- Create new library container types
- Zip files, Calibration parts, Printer SDCards
- Reduce leftnav to Library, Settings, Controls, Options
- Add DragDrop support for image content
2017-05-19 22:33:55 -07:00
|
|
|
}
|