helixQtCmd.h

helixQtCmd.h
#ifndef helixQtCmd_h
#define helixQtCmd_h
// Must ensure that at least one Qt header is included before anything
// else.
#include <QPointer>
#include <QPushButton>
#include <maya/MPxCommand.h>
#include <vector>
class HelixButton : public QPushButton
{
Q_OBJECT
public:
HelixButton(const QString& text, QWidget* parent = 0);
virtual ~HelixButton();
public slots:
void createHelix(bool checked);
private:
float fOffset;
};
class HelixQtCmd : public MPxCommand
{
public:
static void cleanup();
static void* creator() { return new HelixQtCmd(); }
MStatus doIt(const MArgList& args);
static QPointer<HelixButton> button;
static const MString commandName;
};
#endif