* lazzara/igr/gui/segmentation/segmentation.pro,
* lazzara/igr/gui/segmentation/src/crop_widget.cc,
* lazzara/igr/gui/segmentation/src/edit_seg_widget.cc,
* lazzara/igr/gui/segmentation/src/edit_seg_widget.hh,
* lazzara/igr/gui/segmentation/src/load_widget.cc,
* lazzara/igr/gui/segmentation/src/main.cc,
* lazzara/igr/gui/segmentation/src/main_window.cc,
* lazzara/igr/gui/segmentation/src/mln_data.cc,
* lazzara/igr/gui/segmentation/src/mln_data.hh,
* lazzara/igr/gui/segmentation/src/save_widget.cc,
* lazzara/igr/gui/segmentation/src/seg_widget.cc,
* lazzara/igr/gui/segmentation/src/task_handler.hh,
* lazzara/igr/gui/segmentation/src/tools/crop.cc,
* lazzara/igr/gui/segmentation/src/tools/crop.hh,
* lazzara/igr/gui/segmentation/src/tools/edit_seg.cc,
* lazzara/igr/gui/segmentation/src/tools/edit_seg.hh,
* lazzara/igr/gui/segmentation/src/tools/load.cc,
* lazzara/igr/gui/segmentation/src/tools/load.hh,
* lazzara/igr/gui/segmentation/src/tools/save.cc,
* lazzara/igr/gui/segmentation/src/tools/save.hh,
* lazzara/igr/gui/segmentation/src/tools/seg.cc,
* lazzara/igr/gui/segmentation/src/tools/seg.hh,
* lazzara/igr/gui/segmentation2dt/segmentation2dt.pro,
* lazzara/igr/gui/segmentation2dt/src/crop_widget.cc,
* lazzara/igr/gui/segmentation2dt/src/load_widget.cc,
* lazzara/igr/gui/segmentation2dt/src/main.cc,
* lazzara/igr/gui/segmentation2dt/src/main_window.cc,
* lazzara/igr/gui/segmentation2dt/src/mln_data.cc,
* lazzara/igr/gui/segmentation2dt/src/mln_data.hh,
* lazzara/igr/gui/segmentation2dt/src/norm_smooth_widget.cc,
* lazzara/igr/gui/segmentation2dt/src/ref_mean_widget.cc,
* lazzara/igr/gui/segmentation2dt/src/save_widget.cc,
* lazzara/igr/gui/segmentation2dt/src/seg_widget.cc,
* lazzara/igr/gui/segmentation2dt/src/task_handler.hh,
* lazzara/igr/gui/segmentation2dt/src/tools/crop.cc,
* lazzara/igr/gui/segmentation2dt/src/tools/crop.hh,
* lazzara/igr/gui/segmentation2dt/src/tools/load.cc,
* lazzara/igr/gui/segmentation2dt/src/tools/load.hh,
* lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.cc,
* lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.hh,
* lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.cc,
* lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.hh,
* lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.cc,
* lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.hh,
* lazzara/igr/gui/segmentation2dt/src/tools/save.cc,
* lazzara/igr/gui/segmentation2dt/src/tools/save.hh,
* lazzara/igr/gui/segmentation2dt/src/tools/seg.cc,
* lazzara/igr/gui/segmentation2dt/src/tools/seg.hh,
* lazzara/igr/gui/shared/src/color.hh,
* lazzara/igr/gui/shared/src/igr_types.hh,
* lazzara/igr/gui/shared/src/image_viewer.hh,
* lazzara/igr/gui/viewer/src/main.cc,
* lazzara/igr/gui/viewer/src/mln_data.cc,
* lazzara/igr/gui/viewer/src/mln_data.hh,
* lazzara/igr/gui/viewer/src/mln_widgets.cc,
* lazzara/igr/gui/viewer/viewer.pro: Split compilation of files
including Milena's headers.
---
milena/sandbox/ChangeLog | 62 +++++++++++++++++
.../lazzara/igr/gui/segmentation/segmentation.pro | 55 +++++++++++++--
.../igr/gui/segmentation/src/crop_widget.cc | 1 -
.../igr/gui/segmentation/src/edit_seg_widget.cc | 1 -
.../igr/gui/segmentation/src/edit_seg_widget.hh | 4 -
.../igr/gui/segmentation/src/load_widget.cc | 1 -
.../lazzara/igr/gui/segmentation/src/main.cc | 1 +
.../igr/gui/segmentation/src/main_window.cc | 1 -
.../lazzara/igr/gui/segmentation/src/mln_data.cc | 3 +-
.../lazzara/igr/gui/segmentation/src/mln_data.hh | 4 -
.../igr/gui/segmentation/src/save_widget.cc | 1 -
.../lazzara/igr/gui/segmentation/src/seg_widget.cc | 1 -
.../igr/gui/segmentation/src/task_handler.hh | 4 -
.../lazzara/igr/gui/segmentation/src/tools/crop.cc | 4 -
.../lazzara/igr/gui/segmentation/src/tools/crop.hh | 4 -
.../igr/gui/segmentation/src/tools/edit_seg.cc | 6 +-
.../igr/gui/segmentation/src/tools/edit_seg.hh | 4 -
.../lazzara/igr/gui/segmentation/src/tools/load.cc | 4 -
.../lazzara/igr/gui/segmentation/src/tools/load.hh | 4 -
.../lazzara/igr/gui/segmentation/src/tools/save.cc | 6 +-
.../lazzara/igr/gui/segmentation/src/tools/save.hh | 4 -
.../lazzara/igr/gui/segmentation/src/tools/seg.cc | 6 +-
.../lazzara/igr/gui/segmentation/src/tools/seg.hh | 4 -
.../igr/gui/segmentation2dt/segmentation2dt.pro | 72 ++++++++++++++++++--
.../igr/gui/segmentation2dt/src/crop_widget.cc | 1 -
.../igr/gui/segmentation2dt/src/load_widget.cc | 1 -
.../lazzara/igr/gui/segmentation2dt/src/main.cc | 4 +-
.../igr/gui/segmentation2dt/src/main_window.cc | 1 -
.../igr/gui/segmentation2dt/src/mln_data.cc | 2 +-
.../igr/gui/segmentation2dt/src/mln_data.hh | 4 -
.../gui/segmentation2dt/src/norm_smooth_widget.cc | 2 +-
.../igr/gui/segmentation2dt/src/ref_mean_widget.cc | 1 -
.../igr/gui/segmentation2dt/src/save_widget.cc | 1 -
.../igr/gui/segmentation2dt/src/seg_widget.cc | 1 -
.../igr/gui/segmentation2dt/src/task_handler.hh | 4 -
.../igr/gui/segmentation2dt/src/tools/crop.cc | 4 -
.../igr/gui/segmentation2dt/src/tools/crop.hh | 4 -
.../igr/gui/segmentation2dt/src/tools/load.cc | 4 -
.../igr/gui/segmentation2dt/src/tools/load.hh | 4 -
.../gui/segmentation2dt/src/tools/mean_regions.cc | 4 -
.../gui/segmentation2dt/src/tools/mean_regions.hh | 4 -
.../gui/segmentation2dt/src/tools/norm_smooth.cc | 4 -
.../gui/segmentation2dt/src/tools/norm_smooth.hh | 4 -
.../igr/gui/segmentation2dt/src/tools/ref_mean.cc | 4 -
.../igr/gui/segmentation2dt/src/tools/ref_mean.hh | 4 -
.../igr/gui/segmentation2dt/src/tools/save.cc | 5 +-
.../igr/gui/segmentation2dt/src/tools/save.hh | 4 -
.../igr/gui/segmentation2dt/src/tools/seg.cc | 6 +-
.../igr/gui/segmentation2dt/src/tools/seg.hh | 5 +-
milena/sandbox/lazzara/igr/gui/shared/src/color.hh | 7 +--
.../lazzara/igr/gui/shared/src/igr_types.hh | 4 -
.../lazzara/igr/gui/shared/src/image_viewer.hh | 7 +--
milena/sandbox/lazzara/igr/gui/viewer/src/main.cc | 4 +-
.../sandbox/lazzara/igr/gui/viewer/src/mln_data.cc | 20 +++++-
.../sandbox/lazzara/igr/gui/viewer/src/mln_data.hh | 22 +++++-
.../lazzara/igr/gui/viewer/src/mln_widgets.cc | 2 -
milena/sandbox/lazzara/igr/gui/viewer/viewer.pro | 25 +++++--
57 files changed, 257 insertions(+), 173 deletions(-)
delete mode 100644 milena/sandbox/lazzara/igr/gui/viewer/src/mln_widgets.cc
diff --git a/milena/sandbox/ChangeLog b/milena/sandbox/ChangeLog
index 44c82e9..5477ab3 100644
--- a/milena/sandbox/ChangeLog
+++ b/milena/sandbox/ChangeLog
@@ -1,3 +1,65 @@
+2010-11-15 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ Split compilation of files including Milena's headers.
+
+ * lazzara/igr/gui/segmentation/segmentation.pro,
+ * lazzara/igr/gui/segmentation/src/crop_widget.cc,
+ * lazzara/igr/gui/segmentation/src/edit_seg_widget.cc,
+ * lazzara/igr/gui/segmentation/src/edit_seg_widget.hh,
+ * lazzara/igr/gui/segmentation/src/load_widget.cc,
+ * lazzara/igr/gui/segmentation/src/main.cc,
+ * lazzara/igr/gui/segmentation/src/main_window.cc,
+ * lazzara/igr/gui/segmentation/src/mln_data.cc,
+ * lazzara/igr/gui/segmentation/src/mln_data.hh,
+ * lazzara/igr/gui/segmentation/src/save_widget.cc,
+ * lazzara/igr/gui/segmentation/src/seg_widget.cc,
+ * lazzara/igr/gui/segmentation/src/task_handler.hh,
+ * lazzara/igr/gui/segmentation/src/tools/crop.cc,
+ * lazzara/igr/gui/segmentation/src/tools/crop.hh,
+ * lazzara/igr/gui/segmentation/src/tools/edit_seg.cc,
+ * lazzara/igr/gui/segmentation/src/tools/edit_seg.hh,
+ * lazzara/igr/gui/segmentation/src/tools/load.cc,
+ * lazzara/igr/gui/segmentation/src/tools/load.hh,
+ * lazzara/igr/gui/segmentation/src/tools/save.cc,
+ * lazzara/igr/gui/segmentation/src/tools/save.hh,
+ * lazzara/igr/gui/segmentation/src/tools/seg.cc,
+ * lazzara/igr/gui/segmentation/src/tools/seg.hh,
+ * lazzara/igr/gui/segmentation2dt/segmentation2dt.pro,
+ * lazzara/igr/gui/segmentation2dt/src/crop_widget.cc,
+ * lazzara/igr/gui/segmentation2dt/src/load_widget.cc,
+ * lazzara/igr/gui/segmentation2dt/src/main.cc,
+ * lazzara/igr/gui/segmentation2dt/src/main_window.cc,
+ * lazzara/igr/gui/segmentation2dt/src/mln_data.cc,
+ * lazzara/igr/gui/segmentation2dt/src/mln_data.hh,
+ * lazzara/igr/gui/segmentation2dt/src/norm_smooth_widget.cc,
+ * lazzara/igr/gui/segmentation2dt/src/ref_mean_widget.cc,
+ * lazzara/igr/gui/segmentation2dt/src/save_widget.cc,
+ * lazzara/igr/gui/segmentation2dt/src/seg_widget.cc,
+ * lazzara/igr/gui/segmentation2dt/src/task_handler.hh,
+ * lazzara/igr/gui/segmentation2dt/src/tools/crop.cc,
+ * lazzara/igr/gui/segmentation2dt/src/tools/crop.hh,
+ * lazzara/igr/gui/segmentation2dt/src/tools/load.cc,
+ * lazzara/igr/gui/segmentation2dt/src/tools/load.hh,
+ * lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.cc,
+ * lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.hh,
+ * lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.cc,
+ * lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.hh,
+ * lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.cc,
+ * lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.hh,
+ * lazzara/igr/gui/segmentation2dt/src/tools/save.cc,
+ * lazzara/igr/gui/segmentation2dt/src/tools/save.hh,
+ * lazzara/igr/gui/segmentation2dt/src/tools/seg.cc,
+ * lazzara/igr/gui/segmentation2dt/src/tools/seg.hh,
+ * lazzara/igr/gui/shared/src/color.hh,
+ * lazzara/igr/gui/shared/src/igr_types.hh,
+ * lazzara/igr/gui/shared/src/image_viewer.hh,
+ * lazzara/igr/gui/viewer/src/main.cc,
+ * lazzara/igr/gui/viewer/src/mln_data.cc,
+ * lazzara/igr/gui/viewer/src/mln_data.hh,
+ * lazzara/igr/gui/viewer/src/mln_widgets.cc,
+ * lazzara/igr/gui/viewer/viewer.pro: Split compilation of files
+ including Milena's headers.
+
2010-02-09 Guillaume Lazzara <z(a)lrde.epita.fr>
Add a tool for anapath filtering.
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/segmentation.pro
b/milena/sandbox/lazzara/igr/gui/segmentation/segmentation.pro
index ef8dd61..4a0f003 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/segmentation.pro
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/segmentation.pro
@@ -6,20 +6,61 @@ TEMPLATE = app
TARGET =
DEPENDPATH += . src ui
#INCLUDEPATH += . src $(PWD)/../../ $(PWD)/.. $(PWD)/../shared $(OLN)/milena
/home/inca/local/include
-INCLUDEPATH += . src $(PWD)/.. $(PWD)/../shared $(OLN)/milena
/lrde/dev/linux-x86/stable/gdcm/include
+INCLUDEPATH += . src $(PWD)/.. $(PWD)/../shared $(OLN)/milena
-DEFINES= NDEBUG
+DEFINES= NDEBUG MLN_WO_GLOBAL_VARS
QMAKE_CXX += -O2
#LIBS += -L/home/inca/local/lib -lgdcmCommon -lgdcmDICT -lgdcmDSED -lgdcmIOD -lgdcmMSFF
-lgdcmexpat -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmopenjpeg -lgdcmuuid -lgdcmzlib
-LIBS += -L/lrde/dev/linux-x86/stable/gdcm/lib -lgdcmCommon -lgdcmDICT -lgdcmDSED
-lgdcmIOD -lgdcmMSFF -lgdcmexpat -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmopenjpeg
-lgdcmuuid -lgdcmzlib
-
+LIBS += -lgdcmCommon -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmDICT -lgdcmDSED
-lgdcmIOD -lgdcmMSFF -lqwt-qt4
# Input
-HEADERS += src/main_window.hh ../shared/src/image_viewer.hh
../shared/src/internal/interactive_scene.hh src/mln_data.hh src/tools/crop.hh
src/task_handler.hh src/crop_widget.hh src/task_widget.hh src/load_widget.hh
src/seg_widget.hh src/tools/seg.hh src/tools/edit_seg.hh src/edit_seg_widget.hh
src/save_widget.hh src/tools/save.hh src/tools/load.hh
-FORMS += ui/main_window.ui ../shared/ui/image_viewer.ui ui/crop_widget.ui
ui/load_widget.ui ui/seg_widget.ui ui/edit_seg_widget.ui ui/save_widget.ui
-SOURCES += src/main.cc ../shared/src/internal/interactive_scene.cc src/mln_widgets.cc
src/task_handler.cc src/main_window.cc src/task_widget.cc
+HEADERS += \
+ src/main_window.hh \
+ ../shared/src/image_viewer.hh \
+ ../shared/src/internal/interactive_scene.hh \
+ src/mln_data.hh \
+ src/tools/crop.hh \
+ src/task_handler.hh \
+ src/crop_widget.hh \
+ src/task_widget.hh \
+ src/load_widget.hh \
+ src/seg_widget.hh \
+ src/tools/seg.hh \
+ src/tools/edit_seg.hh \
+ src/edit_seg_widget.hh \
+ src/save_widget.hh \
+ src/tools/save.hh \
+ src/tools/load.hh
+
+FORMS += \
+ ui/main_window.ui \
+ ../shared/ui/image_viewer.ui \
+ ui/crop_widget.ui \
+ ui/load_widget.ui \
+ ui/seg_widget.ui \
+ ui/edit_seg_widget.ui \
+ ui/save_widget.ui
+
+SOURCES += \
+ src/main.cc \
+ ../shared/src/internal/interactive_scene.cc \
+ ../shared/src/image_viewer.cc \
+ src/crop_widget.cc \
+ src/edit_seg_widget.cc \
+ src/save_widget.cc \
+ src/load_widget.cc \
+ src/seg_widget.cc \
+ src/tools/crop.cc \
+ src/tools/edit_seg.cc \
+ src/tools/load.cc \
+ src/tools/save.cc \
+ src/tools/seg.cc \
+ src/mln_data.cc \
+ src/task_handler.cc \
+ src/main_window.cc \
+ src/task_widget.cc
RESOURCES = ../shared/shared.qrc
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/crop_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/crop_widget.cc
index 4b0dafd..6b56a12 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/crop_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/crop_widget.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/crop_widget.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/edit_seg_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/edit_seg_widget.cc
index f662eda..523996f 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/edit_seg_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/edit_seg_widget.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/edit_seg_widget.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/edit_seg_widget.hh
b/milena/sandbox/lazzara/igr/gui/segmentation/src/edit_seg_widget.hh
index 9f988a1..fa62601 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/edit_seg_widget.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/edit_seg_widget.hh
@@ -31,10 +31,6 @@
# include <src/task_widget.hh>
# include <shared/src/igr_types.hh>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <mln/util/array.hh>
# include <mln/util/set.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/load_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/load_widget.cc
index 48d9b25..a9073f3 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/load_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/load_widget.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/load_widget.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/main.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/main.cc
index 59b332a..503c751 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/main.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/main.cc
@@ -26,6 +26,7 @@
#include <QApplication>
#include <QtGui>
+#undef MLN_WO_GLOBAL_VARS
#include <src/main_window.hh>
int main(int argc, char *argv[])
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/main_window.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/main_window.cc
index d36f608..a225daf 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/main_window.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/main_window.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/main_window.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/mln_data.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/mln_data.cc
index efba25b..6c8ea01 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/mln_data.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/mln_data.cc
@@ -1,4 +1,5 @@
-#define INCLUDE_MLN_FILES
+#include <QtCore>
+
#include <src/mln_data.hh>
#include <mln/core/image/dmorph/slice_image.hh>
#include <mln/core/image/image3d.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/mln_data.hh
b/milena/sandbox/lazzara/igr/gui/segmentation/src/mln_data.hh
index f295dd9..13995d5 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/mln_data.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/mln_data.hh
@@ -4,10 +4,6 @@
#include <QtCore/QObject>
#include <QtCore/QPointF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <mln/core/image/image3d.hh>
#include <shared/src/igr_types.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/save_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/save_widget.cc
index 3e4b5b8..75d34d4 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/save_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/save_widget.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/save_widget.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/seg_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/seg_widget.cc
index 88b7d92..0dcb5fc 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/seg_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/seg_widget.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/seg_widget.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/task_handler.hh
b/milena/sandbox/lazzara/igr/gui/segmentation/src/task_handler.hh
index 48d6bb5..d62a62c 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/task_handler.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/task_handler.hh
@@ -5,10 +5,6 @@
# include <QtCore/QObject>
# include <QtGui/QProgressDialog>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <src/task.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/crop.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/crop.cc
index a974d82..4692b8d 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/crop.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/crop.cc
@@ -1,9 +1,5 @@
#include <src/tools/crop.hh>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <mln/core/image/image3d.hh>
#include <mln/data/fill.hh>
#include <shared/src/igr_types.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/crop.hh
b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/crop.hh
index 40f4729..a19f89c 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/crop.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/crop.hh
@@ -3,10 +3,6 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/edit_seg.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/edit_seg.cc
index cd4dad0..3e14ea8 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/edit_seg.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/edit_seg.cc
@@ -1,11 +1,9 @@
+#include <QtCore>
+
#include <src/tools/edit_seg.hh>
#include <shared/src/igr_types.hh>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <mln/core/image/image3d.hh>
#include <mln/data/fill.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/edit_seg.hh
b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/edit_seg.hh
index e77de50..9e28b97 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/edit_seg.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/edit_seg.hh
@@ -3,10 +3,6 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/util/array.hh>
# include <mln/util/set.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/load.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/load.cc
index 92f82bc..e9815a2 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/load.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/load.cc
@@ -1,9 +1,5 @@
#include <src/tools/load.hh>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <mln/core/image/image3d.hh>
#include <mln/data/fill.hh>
#include <shared/src/igr_types.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/load.hh
b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/load.hh
index 64a0e30..9e30d18 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/load.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/load.hh
@@ -3,10 +3,6 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/save.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/save.cc
index 7954105..a4877ca 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/save.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/save.cc
@@ -1,8 +1,6 @@
-#include <src/tools/save.hh>
+#include <QtCore>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
+#include <src/tools/save.hh>
#include <mln/core/image/image3d.hh>
#include <mln/core/image/dmorph/slice_image.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/save.hh
b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/save.hh
index ed90b06..11cc805 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/save.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/save.hh
@@ -3,10 +3,6 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/seg.cc
b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/seg.cc
index 7a4b003..4fb8898 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/seg.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/seg.cc
@@ -1,8 +1,6 @@
-#include <src/tools/seg.hh>
+#include <QtCore>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
+#include <src/tools/seg.hh>
#include <mln/core/image/image3d.hh>
#include <mln/core/image/image2d.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/seg.hh
b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/seg.hh
index 1f7c478..b974042 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/seg.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation/src/tools/seg.hh
@@ -3,10 +3,6 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/segmentation2dt.pro
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/segmentation2dt.pro
index 8781b33..d7ce7e6 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/segmentation2dt.pro
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/segmentation2dt.pro
@@ -6,20 +6,80 @@ TEMPLATE = app
TARGET =
DEPENDPATH += . src ui
#INCLUDEPATH += . src $(PWD)/../../ $(PWD)/.. $(PWD)/../shared $(OLN)/milena
/home/inca/local/include
-INCLUDEPATH += . src $(PWD)/.. $(PWD)/../shared $(OLN)/milena
/lrde/dev/linux-x86/stable/gdcm/include
+INCLUDEPATH += . src $(PWD)/.. $(PWD)/../shared $(OLN)/milena
-DEFINES= NDEBUG
+DEFINES= NDEBUG MLN_WO_GLOBAL_VARS
QMAKE_CXX += -O2
#LIBS += -L/home/inca/local/lib -lgdcmCommon -lgdcmDICT -lgdcmDSED -lgdcmIOD -lgdcmMSFF
-lgdcmexpat -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmopenjpeg -lgdcmuuid -lgdcmzlib
-lqwt-qt4
-LIBS += -L/lrde/dev/linux-x86/stable/gdcm/lib -lgdcmCommon -lgdcmDICT -lgdcmDSED
-lgdcmIOD -lgdcmMSFF -lgdcmexpat -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmopenjpeg
-lgdcmuuid -lgdcmzlib -lqwt-qt4
+LIBS += -lgdcmCommon -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmDICT -lgdcmDSED
-lgdcmIOD -lgdcmMSFF -lqwt-qt4
+
+
+
# Input
-HEADERS += src/main_window.hh ../shared/src/image_viewer.hh
../shared/src/internal/interactive_scene.hh src/mln_data.hh src/tools/crop.hh
src/task_handler.hh src/crop_widget.hh src/task_widget.hh src/load_widget.hh
src/seg_widget.hh src/tools/seg.hh src/save_widget.hh src/tools/save.hh
src/ref_mean_widget.hh src/tools/ref_mean.hh src/tools/norm_smooth.hh
src/norm_smooth_widget.hh src/mean_regions_widget.hh src/tools/mean_regions.hh
src/tools/load.hh src/plot_widget.hh src/plot.hh
-FORMS += ui/main_window.ui ../shared/ui/image_viewer.ui ui/crop_widget.ui
ui/load_widget.ui ui/seg_widget.ui ui/save_widget.ui ui/ref_mean_widget.ui
ui/norm_smooth_widget.ui ui/mean_regions_widget.ui ui/plot_widget.ui
-SOURCES += src/main.cc ../shared/src/internal/interactive_scene.cc src/mln_widgets.cc
src/task_handler.cc src/main_window.cc src/task_widget.cc src/plot_widget.cc src/plot.cc
+HEADERS += \
+ src/main_window.hh \
+ ../shared/src/image_viewer.hh \
+ ../shared/src/internal/interactive_scene.hh \
+ src/mln_data.hh \
+ src/tools/crop.hh \
+ src/task_handler.hh \
+ src/crop_widget.hh \
+ src/task_widget.hh \
+ src/load_widget.hh \
+ src/seg_widget.hh \
+ src/tools/seg.hh \
+ src/save_widget.hh \
+ src/tools/save.hh \
+ src/ref_mean_widget.hh \
+ src/tools/ref_mean.hh \
+ src/tools/norm_smooth.hh \
+ src/norm_smooth_widget.hh \
+ src/mean_regions_widget.hh \
+ src/tools/mean_regions.hh \
+ src/tools/load.hh \
+ src/plot_widget.hh \
+ src/plot.hh
+
+FORMS += \
+ ui/main_window.ui \
+ ../shared/ui/image_viewer.ui \
+ ui/crop_widget.ui \
+ ui/load_widget.ui \
+ ui/seg_widget.ui \
+ ui/save_widget.ui \
+ ui/ref_mean_widget.ui \
+ ui/norm_smooth_widget.ui \
+ ui/mean_regions_widget.ui \
+ ui/plot_widget.ui
+
+SOURCES += \
+ src/main.cc \
+ ../shared/src/internal/interactive_scene.cc \
+ ../shared/src/image_viewer.cc \
+ src/crop_widget.cc \
+ src/save_widget.cc \
+ src/load_widget.cc \
+ src/seg_widget.cc \
+ src/ref_mean_widget.cc \
+ src/norm_smooth_widget.cc \
+ src/mean_regions_widget.cc \
+ src/tools/crop.cc \
+ src/tools/seg.cc \
+ src/tools/save.cc \
+ src/tools/ref_mean.cc \
+ src/tools/norm_smooth.cc \
+ src/tools/mean_regions.cc \
+ src/tools/load.cc \
+ src/mln_data.cc \
+ src/task_handler.cc \
+ src/main_window.cc \
+ src/task_widget.cc \
+ src/plot_widget.cc \
+ src/plot.cc
RESOURCES = ../shared/shared.qrc
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/crop_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/crop_widget.cc
index ba90c64..67a51b7 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/crop_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/crop_widget.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/crop_widget.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/load_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/load_widget.cc
index 6969ed5..27787b0 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/load_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/load_widget.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/load_widget.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/main.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/main.cc
index 59b332a..132d270 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/main.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/main.cc
@@ -1,4 +1,5 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of Olena.
//
@@ -26,6 +27,7 @@
#include <QApplication>
#include <QtGui>
+#undef MLN_WO_GLOBAL_VARS
#include <src/main_window.hh>
int main(int argc, char *argv[])
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/main_window.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/main_window.cc
index 0da6059..00e95de 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/main_window.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/main_window.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/main_window.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/mln_data.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/mln_data.cc
index e90b236..c294c73 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/mln_data.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/mln_data.cc
@@ -1,4 +1,4 @@
-#define INCLUDE_MLN_FILES
+#include <QtCore>
#include <src/mln_data.hh>
#include <mln/core/image/dmorph/slice_image.hh>
#include <mln/core/image/image3d.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/mln_data.hh
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/mln_data.hh
index 4dcdf81..6f1776f 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/mln_data.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/mln_data.hh
@@ -4,10 +4,6 @@
#include <QtCore/QObject>
#include <QtCore/QPointF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <mln/core/image/image2d.hh>
#include <mln/core/image/image3d.hh>
#include <shared/src/igr_types.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/norm_smooth_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/norm_smooth_widget.cc
index cad1e7f..682206e 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/norm_smooth_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/norm_smooth_widget.cc
@@ -23,7 +23,7 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
+
#include <QtCore>
#include <QtGui>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/ref_mean_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/ref_mean_widget.cc
index bc7b456..61d8e21 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/ref_mean_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/ref_mean_widget.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/ref_mean_widget.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/save_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/save_widget.cc
index edf270a..8d87133 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/save_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/save_widget.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/save_widget.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/seg_widget.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/seg_widget.cc
index aaf9c1d..6891432 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/seg_widget.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/seg_widget.cc
@@ -23,7 +23,6 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-//#define INCLUDE_MLN_FILES
#include <QtCore>
#include <QtGui>
#include <src/seg_widget.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/task_handler.hh
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/task_handler.hh
index 48d6bb5..d62a62c 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/task_handler.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/task_handler.hh
@@ -5,10 +5,6 @@
# include <QtCore/QObject>
# include <QtGui/QProgressDialog>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <src/task.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/crop.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/crop.cc
index a974d82..4692b8d 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/crop.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/crop.cc
@@ -1,9 +1,5 @@
#include <src/tools/crop.hh>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <mln/core/image/image3d.hh>
#include <mln/data/fill.hh>
#include <shared/src/igr_types.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/crop.hh
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/crop.hh
index 40f4729..a19f89c 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/crop.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/crop.hh
@@ -3,10 +3,6 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/load.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/load.cc
index 92f82bc..e9815a2 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/load.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/load.cc
@@ -1,9 +1,5 @@
#include <src/tools/load.hh>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <mln/core/image/image3d.hh>
#include <mln/data/fill.hh>
#include <shared/src/igr_types.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/load.hh
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/load.hh
index 64a0e30..9e30d18 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/load.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/load.hh
@@ -3,10 +3,6 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.cc
index 64353d3..8245a70 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.cc
@@ -1,7 +1,3 @@
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <src/tools/mean_regions.hh>
#include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.hh
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.hh
index a20057b..2d7ff5e 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/mean_regions.hh
@@ -3,10 +3,6 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.cc
index 9a1ddb3..16751ce 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.cc
@@ -1,7 +1,3 @@
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <src/tools/norm_smooth.hh>
#include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.hh
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.hh
index fc4d1e8..ce74aa1 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/norm_smooth.hh
@@ -3,10 +3,6 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.cc
index 31e9d21..42fd288 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.cc
@@ -1,7 +1,3 @@
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <src/tools/ref_mean.hh>
#include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.hh
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.hh
index dc39810..e8decf7 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/ref_mean.hh
@@ -3,10 +3,6 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/save.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/save.cc
index 37a5608..23e38d1 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/save.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/save.cc
@@ -3,12 +3,9 @@
#include <src/tools/save.hh>
#include <QtCore/QFile>
+#include <QtCore/QFileInfo>
#include <QtCore/QTextStream>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <mln/core/image/image3d.hh>
#include <mln/core/image/dmorph/slice_image.hh>
#include <mln/data/fill.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/save.hh
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/save.hh
index 01d8560..fc30282 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/save.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/save.hh
@@ -4,10 +4,6 @@
# include <QtCore/QRectF>
# include <QtCore/QString>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/seg.cc
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/seg.cc
index d72cb50..b57a52f 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/seg.cc
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/seg.cc
@@ -1,8 +1,6 @@
-#include <src/tools/seg.hh>
+#include <QtCore>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
+#include <src/tools/seg.hh>
#include <mln/core/image/image3d.hh>
#include <mln/core/image/image2d.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/seg.hh
b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/seg.hh
index 963b6a8..0e3d75e 100644
--- a/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/seg.hh
+++ b/milena/sandbox/lazzara/igr/gui/segmentation2dt/src/tools/seg.hh
@@ -3,11 +3,8 @@
# include <QtCore/QRectF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/core/alias/box3d.hh>
+# include <mln/core/image/image3d.hh>
# include <src/task.hh>
# include <src/mln_data.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/shared/src/color.hh
b/milena/sandbox/lazzara/igr/gui/shared/src/color.hh
index 980d3bb..cf62577 100644
--- a/milena/sandbox/lazzara/igr/gui/shared/src/color.hh
+++ b/milena/sandbox/lazzara/igr/gui/shared/src/color.hh
@@ -1,4 +1,5 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of Olena.
//
@@ -30,10 +31,6 @@
#ifndef MLN_DEMO_SRC_COLOR_HH
# define MLN_DEMO_SRC_COLOR_HH
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
//# if QT_VERSION >= 0x040000 && QT_VERSION < 0x040400
# include <mln/value/qt/rgb32.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/shared/src/igr_types.hh
b/milena/sandbox/lazzara/igr/gui/shared/src/igr_types.hh
index da64d22..5154b6b 100644
--- a/milena/sandbox/lazzara/igr/gui/shared/src/igr_types.hh
+++ b/milena/sandbox/lazzara/igr/gui/shared/src/igr_types.hh
@@ -3,10 +3,6 @@
# include <shared/src/color.hh>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <mln/value/label_16.hh>
# include <mln/value/int_u12.hh>
# include <mln/value/int_u8.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/shared/src/image_viewer.hh
b/milena/sandbox/lazzara/igr/gui/shared/src/image_viewer.hh
index c9623b8..5996b1e 100644
--- a/milena/sandbox/lazzara/igr/gui/shared/src/image_viewer.hh
+++ b/milena/sandbox/lazzara/igr/gui/shared/src/image_viewer.hh
@@ -1,4 +1,5 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of Olena.
//
@@ -32,10 +33,6 @@
# include <ui_image_viewer.h>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
# include <src/igr_types.hh>
# include <mln/core/image/image2d.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/viewer/src/main.cc
b/milena/sandbox/lazzara/igr/gui/viewer/src/main.cc
index 4678229..46674c1 100644
--- a/milena/sandbox/lazzara/igr/gui/viewer/src/main.cc
+++ b/milena/sandbox/lazzara/igr/gui/viewer/src/main.cc
@@ -1,4 +1,5 @@
-// Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of Olena.
//
@@ -26,6 +27,7 @@
#include <QApplication>
#include <QtGui>
+#undef MLN_WO_GLOBAL_VARS
#include <src/main_window.hh>
int main(int argc, char *argv[])
diff --git a/milena/sandbox/lazzara/igr/gui/viewer/src/mln_data.cc
b/milena/sandbox/lazzara/igr/gui/viewer/src/mln_data.cc
index e43fa15..7579c62 100644
--- a/milena/sandbox/lazzara/igr/gui/viewer/src/mln_data.cc
+++ b/milena/sandbox/lazzara/igr/gui/viewer/src/mln_data.cc
@@ -1,4 +1,22 @@
-#define INCLUDE_MLN_FILES
+// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+// (LRDE)
+//
+// This file is part of Olena.
+//
+// Olena is free software: you can redistribute it and/or modify it under
+// the terms of the GNU General Public License as published by the Free
+// Software Foundation, version 2 of the License.
+//
+// Olena 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
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Olena. If not, see <http://www.gnu.org/licenses/>.
+
+#include <QtCore>
+
#include <src/mln_data.hh>
#include <mln/core/image/dmorph/slice_image.hh>
#include <mln/core/image/image3d.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/viewer/src/mln_data.hh
b/milena/sandbox/lazzara/igr/gui/viewer/src/mln_data.hh
index 9c78742..57ee01f 100644
--- a/milena/sandbox/lazzara/igr/gui/viewer/src/mln_data.hh
+++ b/milena/sandbox/lazzara/igr/gui/viewer/src/mln_data.hh
@@ -1,13 +1,27 @@
+// Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
+// (LRDE)
+//
+// This file is part of Olena.
+//
+// Olena is free software: you can redistribute it and/or modify it under
+// the terms of the GNU General Public License as published by the Free
+// Software Foundation, version 2 of the License.
+//
+// Olena 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
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Olena. If not, see <http://www.gnu.org/licenses/>.
+
+
#ifndef IGR_VIEWER_SRC_MLN_DATA_HH
# define IGR_VIEWER_SRC_MLN_DATA_HH
#include <QtCore/QObject>
#include <QtCore/QPointF>
-# ifndef INCLUDE_MLN_FILES
-# define MLN_INCLUDE_ONLY
-# endif
-
#include <mln/core/image/image3d.hh>
#include <shared/src/igr_types.hh>
#include <mln/value/int_u12.hh>
diff --git a/milena/sandbox/lazzara/igr/gui/viewer/src/mln_widgets.cc
b/milena/sandbox/lazzara/igr/gui/viewer/src/mln_widgets.cc
deleted file mode 100644
index 2ac5c66..0000000
--- a/milena/sandbox/lazzara/igr/gui/viewer/src/mln_widgets.cc
+++ /dev/null
@@ -1,2 +0,0 @@
-#include <shared/src/image_viewer.cc>
-#include <src/mln_data.cc>
diff --git a/milena/sandbox/lazzara/igr/gui/viewer/viewer.pro
b/milena/sandbox/lazzara/igr/gui/viewer/viewer.pro
index f4ffc14..b384b8f 100644
--- a/milena/sandbox/lazzara/igr/gui/viewer/viewer.pro
+++ b/milena/sandbox/lazzara/igr/gui/viewer/viewer.pro
@@ -5,19 +5,32 @@
TEMPLATE = app
TARGET =
DEPENDPATH += . src ui
-INCLUDEPATH += . src ../shared ../ $(OLN)/milena /lrde/dev/linux-x86/stable/gdcm/include
+INCLUDEPATH += . src ../shared ../ $(OLN)/milena
#INCLUDEPATH += . src ../shared ../ $(OLN)/milena /home/inca/local/include
-DEFINES= NDEBUG
+DEFINES= NDEBUG MLN_WO_GLOBAL_VARS
#LIBS += -L/home/inca/local/lib -lgdcmCommon -lgdcmDICT -lgdcmDSED -lgdcmIOD -lgdcmMSFF
-lgdcmexpat -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmopenjpeg -lgdcmuuid -lgdcmzlib
-LIBS += -L/lrde/dev/linux-x86/stable/gdcm/lib -lgdcmCommon -lgdcmDICT -lgdcmDSED
-lgdcmIOD -lgdcmMSFF -lgdcmexpat -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmopenjpeg
-lgdcmuuid -lgdcmzlib
+LIBS += -lgdcmCommon -lgdcmjpeg12 -lgdcmjpeg16 -lgdcmjpeg8 -lgdcmDICT -lgdcmDSED
-lgdcmIOD -lgdcmMSFF -lqwt-qt4
# Input
-HEADERS += src/main_window.hh ../shared/src/image_viewer.hh
../shared/src/internal/interactive_scene.hh src/mln_data.hh
-FORMS += ui/main_window.ui ../shared/ui/image_viewer.ui
-SOURCES += src/main.cc src/main_window.cc ../shared/src/internal/interactive_scene.cc
src/mln_widgets.cc
+HEADERS += \
+ src/main_window.hh \
+ ../shared/src/image_viewer.hh \
+ ../shared/src/internal/interactive_scene.hh \
+ src/mln_data.hh
+
+FORMS += \
+ ui/main_window.ui \
+ ../shared/ui/image_viewer.ui
+
+SOURCES += \
+ src/main.cc \
+ src/main_window.cc \
+ ../shared/src/internal/interactive_scene.cc \
+ ../shared/src/image_viewer.cc \
+ src/mln_data.cc
RESOURCES = ../shared/shared.qrc
--
1.5.6.5