Code Search for Developers
 
 
  

MarControlGUI.h from marsyas at Krugle


Show MarControlGUI.h syntax highlighted

#ifndef MARCONTROLGUI_H
#define MARCONTROLGUI_H

#include "common.h"



#include <QtCore>
#include <QtGui>

#include <string>

#include "MarControl.h"
#include "MarSystemQtWrapper.h"
using namespace MarsyasQt;

namespace Marsyas
{

class MarControlGUI : public QWidget
{
	Q_OBJECT

private:
	MarControlPtr control_;
        MarSystemQtWrapper* mwr_;
  
	std::string cname_;

	QLabel* nullWidget_;
	QLineEdit* realWidget_;
	QCheckBox* boolWidget_;
	QLineEdit* naturalWidget_;
	QLineEdit* stringWidget_;
	QToolButton* vecWidget_;
	QTableWidget* vecTable_;

	bool editing_;

	QSize sizeHint_;

	void createWidget();

	void nullWidget();
	void realWidget();
	void boolWidget();
	void naturalWidget();
	void stringWidget();
	void vecWidget();

public:
	MarControlGUI(MarControlPtr control, MarSystemQtWrapper* mwr, QWidget *parent = 0);
	~MarControlGUI();

	virtual QSize sizeHint() const;

	std::string getCtrlName() const {return cname_;};

private slots:
	void editingStarted();
	
	void showVectorTable();

	void double2MarControl();
	void toMarControl(bool val);
	void int2MarControl();
	void string2MarControl();
	void toMarControl(QTableWidgetItem* cell);

private slots:
	void vecTableDestroyed();

public slots:
	void updControl(MarControlPtr control);

  // signals:
	//void controlChanged(std::string cname, MarControlPtr control);

};

}//namespace Marsyas



#endif // MARCONTROLGUI_H




See more files for this project here

marsyas

Marsyas (Music Analysis, Retrieval and Synthesis for Audio Signals) is a framework for developing systems for audio processing. It provides an general architecture for connecting audio, soundfiles, signal processing blocks and machine learning.

Project homepage: http://sourceforge.net/projects/marsyas
Programming language(s): C++
License: other

  MarControlGUI.cpp
  MarControlGUI.h
  MarLpc.pro
  MarLpc.sln
  MarLpcWindow.cpp
  MarLpcWindow.h
  main.cpp