matchsettings.hpp 995 Bytes
Newer Older
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
#ifndef CVVISUAL_MATCH_SETTINGS
#define CVVISUAL_MATCH_SETTINGS

#include <QFrame>
#include <QPen>


namespace cvv
{
namespace qtutil
{

class CVVMatch;

/**
 * @brief this abstract class returns an individual Setting for a CVVMatch.
 */
class MatchSettings : public QFrame
{
	Q_OBJECT

      public:
	/**
	 * @brief MatchPen
	 * @param parent the parent Widget
	 */
	MatchSettings(QWidget *parent) : QFrame(parent){}

	/**
	 * @brief set individual settings for a selected cvvmatch
	 */
	virtual void setSettings(CVVMatch &match) = 0;

	/**
	 * @brief set individual settings for a non-selected cvvmatch
	 */
	/*virtual void setUnSelectedSettings(CVVMatch &)
		{}*/

public slots:
	/**
	 * @brief this method emits the signal settingsChanged();
	 */
	void updateAll()
		{emit settingsChanged(*this);}

signals:
	/**
	 * @brief this signal will be emitted if the settings changed
	 * and the CVVMatch must update their Settings
	 */
	void settingsChanged(MatchSettings &settings);
};
}
}
#endif