controlDock_cameraTab.h 1.27 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
#ifndef _CONTROL_DOCK_CAMERA_TAB_H_
#define _CONTROL_DOCK_CAMERA_TAB_H_

#include "ui_controlDock_CameraTabWidget.h"

namespace CGoGN
{

namespace SCHNApps
{

class SCHNApps;
class Camera;
class View;

class ControlDock_CameraTab : public QWidget, public Ui::ControlDock_CameraTabWidget
{
	Q_OBJECT

public:
	ControlDock_CameraTab(SCHNApps* s);
	QString title() { return QString("Cameras"); }

private slots:
	// slots called from UI actions
	void addCameraButtonClicked();
	void cameraCheckStateChanged(QListWidgetItem* item);
	void cameraProjectionChanged(QAbstractButton* b);
	void cameraDrawClicked(bool b);
	void cameraDrawPathClicked(bool b);
Sylvain Thery's avatar
Sylvain Thery committed
31
	void cameraSelectionChanged();
Pierre Kraemer's avatar
Pierre Kraemer committed
32 33 34 35

	// slots called from SCHNApps signals
	void cameraAdded(Camera* c);
	void cameraRemoved(Camera* c);
Sylvain Thery's avatar
Sylvain Thery committed
36 37
//	void selectedViewChanged(View* prev, View* cur);

Pierre Kraemer's avatar
Pierre Kraemer committed
38 39

	// slots called from selected View signals
Sylvain Thery's avatar
Sylvain Thery committed
40
//	void selectedViewCurrentCameraChanged(Camera* prev, Camera* cur);
Pierre Kraemer's avatar
Pierre Kraemer committed
41 42

	// slots called from current Camera signals
Sylvain Thery's avatar
Sylvain Thery committed
43 44 45
//	void currentCameraProjectionTypeChanged(int t);
//	void currentCameraDrawChanged(bool b);
//	void currentCameraDrawPathChanged(bool b);
Pierre Kraemer's avatar
Pierre Kraemer committed
46 47 48

private:
	void updateCurrentCameraInfo();
Sylvain Thery's avatar
Sylvain Thery committed
49
	Camera* currentCam();
Pierre Kraemer's avatar
Pierre Kraemer committed
50 51 52 53 54 55 56 57 58 59

	SCHNApps* m_schnapps;
	bool b_updatingUI;
};

} // namespace SCHNApps

} // namespace CGoGN

#endif