Skip to content

Commit

Permalink
Merge pull request #2756 from SunBlack/modeler_qt_includes
Browse files Browse the repository at this point in the history
Cleanup Qt includes in Modeler app
  • Loading branch information
taketwo authored Jan 13, 2019
2 parents af83fd4 + 6234242 commit ae9f52b
Show file tree
Hide file tree
Showing 22 changed files with 41 additions and 104 deletions.
1 change: 0 additions & 1 deletion apps/modeler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ set(resources

set(incs
${moc_incs}
"include/pcl/${SUBSYS_NAME}/${SUBSUBSYS_NAME}/qt.h"

"include/pcl/${SUBSYS_NAME}/${SUBSUBSYS_NAME}/dock_widget.h"
"include/pcl/${SUBSYS_NAME}/${SUBSUBSYS_NAME}/abstract_item.h"
Expand Down
2 changes: 1 addition & 1 deletion apps/modeler/include/pcl/apps/modeler/abstract_worker.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#pragma once

#include <pcl/apps/modeler/qt.h>
#include <QObject>

namespace pcl
{
Expand Down
3 changes: 2 additions & 1 deletion apps/modeler/include/pcl/apps/modeler/channel_actor_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@

#pragma once

#include <QTreeWidgetItem>

#include <vtkSmartPointer.h>
#include <boost/shared_ptr.hpp>
#include <pcl/common/eigen.h>
#include <pcl/apps/modeler/qt.h>
#include <pcl/apps/modeler/abstract_item.h>

class vtkActor;
Expand Down
3 changes: 2 additions & 1 deletion apps/modeler/include/pcl/apps/modeler/cloud_mesh_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@

#pragma once

#include <pcl/apps/modeler/qt.h>
#include <QTreeWidgetItem>

#include <boost/shared_ptr.hpp>
#include <pcl/apps/modeler/abstract_item.h>
#include <pcl/apps/modeler/cloud_mesh.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#pragma once

#include <pcl/apps/modeler/qt.h>
#include <QObject>

namespace pcl
{
Expand Down
2 changes: 1 addition & 1 deletion apps/modeler/include/pcl/apps/modeler/dock_widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#pragma once

#include <pcl/apps/modeler/qt.h>
#include <QDockWidget>

namespace pcl
{
Expand Down
1 change: 0 additions & 1 deletion apps/modeler/include/pcl/apps/modeler/main_window.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

#pragma once

#include <pcl/apps/modeler/qt.h>
#include <boost/shared_ptr.hpp>

#include <ui_main_window.h>
Expand Down
6 changes: 5 additions & 1 deletion apps/modeler/include/pcl/apps/modeler/parameter.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@
#include <string>

#include <boost/any.hpp>
#include <pcl/apps/modeler/qt.h>

#include <QColor>
#include <QVariant>

class QAbstractItemModel;
class QWidget;

namespace pcl
{
Expand Down
4 changes: 3 additions & 1 deletion apps/modeler/include/pcl/apps/modeler/parameter_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@

#pragma once

#include <pcl/apps/modeler/qt.h>
#include <QDialog>
#include <QStandardItemModel>
#include <QStyledItemDelegate>

namespace pcl
{
Expand Down
88 changes: 0 additions & 88 deletions apps/modeler/include/pcl/apps/modeler/qt.h

This file was deleted.

3 changes: 2 additions & 1 deletion apps/modeler/include/pcl/apps/modeler/render_window.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@

#pragma once

#include <pcl/apps/modeler/qt.h>
#include <vtkSmartPointer.h>

#include <QVTKWidget.h>

class vtkCubeAxesActor;

namespace pcl
Expand Down
3 changes: 2 additions & 1 deletion apps/modeler/include/pcl/apps/modeler/render_window_item.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@

#pragma once

#include <pcl/apps/modeler/qt.h>
#include <QTreeWidgetItem>

#include <pcl/apps/modeler/abstract_item.h>
#include <pcl/apps/modeler/cloud_mesh.h>

Expand Down
2 changes: 1 addition & 1 deletion apps/modeler/include/pcl/apps/modeler/scene_tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#pragma once

#include <pcl/apps/modeler/qt.h>
#include <QTreeWidget>

namespace pcl
{
Expand Down
2 changes: 1 addition & 1 deletion apps/modeler/include/pcl/apps/modeler/thread_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#pragma once

#include <pcl/apps/modeler/qt.h>
#include <QObject>

namespace pcl
{
Expand Down
1 change: 0 additions & 1 deletion apps/modeler/src/abstract_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

#include <pcl/apps/modeler/abstract_item.h>

#include <pcl/apps/modeler/qt.h>
#include <pcl/apps/modeler/main_window.h>
#include <pcl/apps/modeler/parameter_dialog.h>

Expand Down
1 change: 0 additions & 1 deletion apps/modeler/src/abstract_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

#include <pcl/apps/modeler/abstract_worker.h>

#include <pcl/apps/modeler/qt.h>
#include <pcl/apps/modeler/parameter_dialog.h>
#include <pcl/apps/modeler/cloud_mesh_item.h>

Expand Down
1 change: 0 additions & 1 deletion apps/modeler/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
*
*/

#include <pcl/apps/modeler/qt.h>
#include <pcl/apps/modeler/main_window.h>

extern int qInitResources_resources();
Expand Down
1 change: 1 addition & 0 deletions apps/modeler/src/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <pcl/apps/modeler/render_window_item.h>

#include <QFileInfo>
#include <QSettings>
#include <vtkActor.h>
#include <vtkRenderer.h>

Expand Down
5 changes: 5 additions & 0 deletions apps/modeler/src/parameter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
#include <fstream>
#include <iomanip>

#include <QAbstractItemModel>
#include <QCheckBox>
#include <QColorDialog>
#include <QSpinBox>

//////////////////////////////////////////////////////////////////////////////////////////////
void
pcl::modeler::Parameter::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index)
Expand Down
7 changes: 7 additions & 0 deletions apps/modeler/src/parameter_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@
#include <cassert>
#include <fstream>

#include <QCheckBox>
#include <QColorDialog>
#include <QGridLayout>
#include <QHeaderView>
#include <QPushButton>
#include <QTableView>

//////////////////////////////////////////////////////////////////////////////////////////////
void
pcl::modeler::ParameterDialog::addParameter(pcl::modeler::Parameter* parameter)
Expand Down
5 changes: 5 additions & 0 deletions apps/modeler/src/scene_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
#include <pcl/apps/modeler/scene_tree.h>

#include <set>

#include <QContextMenuEvent>
#include <QFileDialog>
#include <QMessageBox>

#include <pcl/apps/modeler/main_window.h>
#include <pcl/apps/modeler/render_window.h>
#include <pcl/apps/modeler/render_window_item.h>
Expand Down
2 changes: 2 additions & 0 deletions apps/modeler/src/thread_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#include <pcl/apps/modeler/cloud_mesh_item.h>
#include <pcl/apps/modeler/main_window.h>

#include <QDialog>
#include <QThread>

//////////////////////////////////////////////////////////////////////////////////////////////
pcl::modeler::ThreadController::ThreadController()
Expand Down

0 comments on commit ae9f52b

Please sign in to comment.