diff --git a/bitmap2component/CMakeLists.txt b/bitmap2component/CMakeLists.txt index bf213fe87f..bbe2fefc61 100644 --- a/bitmap2component/CMakeLists.txt +++ b/bitmap2component/CMakeLists.txt @@ -2,7 +2,6 @@ include_directories( BEFORE ${INC_BEFORE} ) include_directories( ../potrace - ../common ../polygon ${INC_AFTER} ) diff --git a/bitmap2component/bitmap2cmp_gui.cpp b/bitmap2component/bitmap2cmp_gui.cpp index 2c4bda560f..67651ed128 100644 --- a/bitmap2component/bitmap2cmp_gui.cpp +++ b/bitmap2component/bitmap2cmp_gui.cpp @@ -30,19 +30,19 @@ #include #include #include - -#include -#include - -#include #include - #include #include #include #include #include +#include + +#include "bitmap2component.h" + +#include "bitmap2cmp_gui_base.h" + #define KEYWORD_FRAME_POSX wxT( "Bmconverter_Pos_x" ) #define KEYWORD_FRAME_POSY wxT( "Bmconverter_Pos_y" ) diff --git a/bitmap2component/bitmap2component.cpp b/bitmap2component/bitmap2component.cpp index 00d73d8574..32efdc59bc 100644 --- a/bitmap2component/bitmap2component.cpp +++ b/bitmap2component/bitmap2component.cpp @@ -21,28 +21,24 @@ * or you may write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ -#include + #include // std::max - -// For some unknown reasons, polygon.hpp should be included first -#include - -#include -#include -#include -#include -#include #include +#include +#include +#include +#include #include -#include + #include - -#include #include +#include -// include this after shape_poly_set.h to avoid redefinition of min, max ... #include +#include "bitmap2component.h" + + /* free a potrace bitmap */ static void bm_free( potrace_bitmap_t* bm ) { @@ -60,14 +56,14 @@ static void bm_free( potrace_bitmap_t* bm ) class BITMAPCONV_INFO { public: - enum OUTPUT_FMT_ID m_Format; // File format + enum OUTPUT_FMT_ID m_Format; // File format int m_PixmapWidth; int m_PixmapHeight; // the bitmap size in pixels double m_ScaleX; double m_ScaleY; // the conversion scale potrace_path_t* m_Paths; // the list of paths, from potrace (list of lines and bezier curves) FILE* m_Outfile; // File to create - const char * m_CmpName; // The string used as cmp/footprint name + const char * m_CmpName; // The string used as cmp/footprint name public: BITMAPCONV_INFO();