Skip to content

Commit

Permalink
move stuff to ui and printer subdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
hurzl committed Sep 13, 2012
1 parent 6929e10 commit 025c818
Show file tree
Hide file tree
Showing 30 changed files with 110 additions and 36 deletions.
27 changes: 8 additions & 19 deletions src/Makefile.am
Expand Up @@ -32,24 +32,17 @@ repsnapper_CPPFLAGS = \
-g -O3 $(WARNING_FLAGS)

SHARED_SRC= \
src/platform.cpp \
src/objtree.cpp \
src/model.cpp \
src/model2.cpp \
src/view.cpp \
src/gllight.cpp \
src/arcball.cpp \
src/objtree.cpp \
src/shape.cpp \
src/triangle.cpp \
src/flatshape.cpp \
src/files.cpp \
src/filechooser.cpp \
src/platform.cpp \
src/triangle.cpp \
src/gllight.cpp \
src/arcball.cpp \
src/render.cpp \
src/reprap_serial.cpp \
src/printer.cpp \
src/printer2.cpp \
src/progress.cpp \
src/connectview.cpp \
src/files.cpp \
src/settings.cpp \
src/settings-ui.cpp

Expand All @@ -64,21 +57,17 @@ SHARED_INC= \
src/triangle.h \
src/flatshape.h \
src/files.h \
src/filechooser.h \
src/stdafx.h \
src/platform.h \
src/render.h \
src/reprap_serial.h \
src/printer.h \
src/progress.h \
src/connectview.h \
src/settings.h \
src/settings-ui.h \
src/view.h \
src/types.h

include src/ui/Makefile.am
include src/slicer/Makefile.am
include src/gcode/Makefile.am
include src/printer/Makefile.am

# TEST_SOURCES=unittest.cpp

Expand Down
2 changes: 1 addition & 1 deletion src/flatshape.cpp
Expand Up @@ -18,7 +18,7 @@
*/

#include "flatshape.h"
#include "progress.h"
#include "ui/progress.h"
// #include "settings.h"
#include "clipping.h"

Expand Down
8 changes: 8 additions & 0 deletions src/gcode/Makefile
@@ -0,0 +1,8 @@
# Delegate everything to the toplevel makefile
# this is only here so 'make' works in src/
all:
@$(MAKE) -C ../.. $@

# Catch all rule
%:
@$(MAKE) -C ../.. $@
20 changes: 20 additions & 0 deletions src/gcode/Makefile.am
@@ -0,0 +1,20 @@
#
# Combined Makefile for Linux and OS/X
#
#
# Copyright 2009+ Joachim Glauche
# Copyright 2011 Bas Wijnen <wijnen@debian.org>
#
# This file is part of RepSnapper and is made available under
# the terms of the GNU General Public License, version 2, or at your
# option, any later version, incorporated herein by reference.

SHARED_SRC += \
src/gcode/gcode.cpp \
src/gcode/gcodestate.cpp \
src/gcode/command.cpp

SHARED_INC += \
src/gcode/gcode.h \
src/gcode/gcodestate.h \
src/gcode/command.h
2 changes: 1 addition & 1 deletion src/gcode/command.cpp
Expand Up @@ -27,7 +27,7 @@
#include <sstream>

#include "model.h"
#include "progress.h"
#include "ui/progress.h"
#include "geometry.h"
#include "ctype.h"

Expand Down
2 changes: 1 addition & 1 deletion src/gcode/gcode.cpp
Expand Up @@ -26,7 +26,7 @@
#include <sstream>

#include "model.h"
#include "progress.h"
#include "ui/progress.h"
#include "geometry.h"
#include "ctype.h"
#include "settings.h"
Expand Down
3 changes: 1 addition & 2 deletions src/model.cpp
Expand Up @@ -30,10 +30,9 @@
#include "model.h"
#include "objtree.h"
#include "settings.h"
#include "connectview.h"
#include "layer.h"
#include "infill.h"
#include "progress.h"
#include "ui/progress.h"
#include "shape.h"
#include "flatshape.h"

Expand Down
4 changes: 1 addition & 3 deletions src/model2.cpp
Expand Up @@ -40,9 +40,7 @@
#include "model.h"
#include "objtree.h"
#include "settings.h"
#include "connectview.h"
#include "progress.h"

#include "ui/progress.h"
#include "slicer/layer.h"
#include "slicer/infill.h"
#include "slicer/clipping.h"
Expand Down
8 changes: 8 additions & 0 deletions src/printer/Makefile
@@ -0,0 +1,8 @@
# Delegate everything to the toplevel makefile
# this is only here so 'make' works in src/
all:
@$(MAKE) -C ../.. $@

# Catch all rule
%:
@$(MAKE) -C ../.. $@
20 changes: 20 additions & 0 deletions src/printer/Makefile.am
@@ -0,0 +1,20 @@
#
# Combined Makefile for Linux and OS/X
#
#
# Copyright 2009+ Joachim Glauche
# Copyright 2011 Bas Wijnen <wijnen@debian.org>
#
# This file is part of RepSnapper and is made available under
# the terms of the GNU General Public License, version 2, or at your
# option, any later version, incorporated herein by reference.

SHARED_SRC += \
src/printer/reprap_serial.cpp \
src/printer/printer.cpp \
src/printer/printer2.cpp

SHARED_INC += \
src/printer/reprap_serial.h \
src/printer/printer.h

4 changes: 2 additions & 2 deletions src/printer.cpp → src/printer/printer.cpp
Expand Up @@ -28,9 +28,9 @@
#include "config.h"

#include "printer.h"
#include "view.h"
#include "ui/view.h"

#include "progress.h"
#include "ui/progress.h"
#include "model.h"

#if IOCHANNEL
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/render.cpp
Expand Up @@ -23,7 +23,7 @@
#include "arcball.h"
#include "gllight.h"
#include "settings.h"
#include "view.h"
#include "ui/view.h"
#include "model.h"
#include "slicer/geometry.h"

Expand Down
6 changes: 3 additions & 3 deletions src/repsnapper.cpp
Expand Up @@ -25,10 +25,10 @@
#include <giomm/file.h>
#include <gtk/gtkgl.h>

#include "view.h"
#include "model.h"
#include "ui/view.h"
#include "ui/progress.h"
#include "gcode/gcode.h"
#include "progress.h"
#include "model.h"

using namespace std;

Expand Down
2 changes: 1 addition & 1 deletion src/shape.cpp
Expand Up @@ -20,7 +20,7 @@

#include "shape.h"
#include "files.h"
#include "progress.h"
#include "ui/progress.h"
#include "settings.h"
#include "clipping.h"

Expand Down
8 changes: 8 additions & 0 deletions src/ui/Makefile
@@ -0,0 +1,8 @@
# Delegate everything to the toplevel makefile
# this is only here so 'make' works in src/
all:
@$(MAKE) -C ../.. $@

# Catch all rule
%:
@$(MAKE) -C ../.. $@
24 changes: 24 additions & 0 deletions src/ui/Makefile.am
@@ -0,0 +1,24 @@
#
# Combined Makefile for Linux and OS/X
#
#
# Copyright 2009+ Joachim Glauche
# Copyright 2011 Bas Wijnen <wijnen@debian.org>
#
# This file is part of RepSnapper and is made available under
# the terms of the GNU General Public License, version 2, or at your
# option, any later version, incorporated herein by reference.

SHARED_SRC += \
src/ui/view.cpp \
src/ui/connectview.cpp \
src/ui/filechooser.cpp \
src/ui/progress.cpp

SHARED_INC += \
src/ui/view.h \
src/ui/connectview.h \
src/ui/filechooser.h \
src/ui/progress.h


File renamed without changes.
2 changes: 1 addition & 1 deletion src/connectview.h → src/ui/connectview.h
Expand Up @@ -22,7 +22,7 @@
#include <gtkmm.h>
#include "types.h"

#include "printer.h"
#include "printer/printer.h"

class ConnectView : public Gtk::VBox {
Gtk::HBox m_hbox;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/view.h → src/ui/view.h
Expand Up @@ -23,7 +23,7 @@
#include <gtkmm.h>

#include "stdafx.h"
#include "printer.h"
#include "printer/printer.h"

#include "filechooser.h"

Expand Down

0 comments on commit 025c818

Please sign in to comment.