Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Exf2dProfileWidget : public GVWidget
- {
- Q_OBJECT
- private:
- void createActions();
- QAction * _show0ProfileAction;
- QAction * _show1ProfileAction;
- QAction * _show2ProfileAction;
- QAction * _show3ProfileAction;
- QAction * _show4ProfileAction;
- QAction * _show5ProfileAction;
- QAction * _show6ProfileAction;
- };
- void exf2d::Exf2dProfileWidget::createActions()
- {
- _show0ProfileAction = new QAction("None", this);
- connect(_show0ProfileAction, SIGNAL(triggered()), this, SLOT(onShow0Profile()));
- _show1ProfileAction = new QAction("1", this);
- connect(_show1ProfileAction, SIGNAL(triggered()), this, SLOT(onShow1Profile()));
- _show2ProfileAction = new QAction("2", this);
- connect(_show2ProfileAction, SIGNAL(triggered()), this, SLOT(onShow2Profile()));
- _show3ProfileAction = new QAction("3", this);
- connect(_show3ProfileAction, SIGNAL(triggered()), this, SLOT(onShow3Profile()));
- _show4ProfileAction = new QAction("4", this);
- connect(_show4ProfileAction, SIGNAL(triggered()), this, SLOT(onShow4Profile()));
- _show5ProfileAction = new QAction("5", this);
- connect(_show5ProfileAction, SIGNAL(triggered()), this, SLOT(onShow5Profile()));
- _show6ProfileAction = new QAction("6", this);
- connect(_show6ProfileAction, SIGNAL(triggered()), this, SLOT(onShow6Profile()));
- }
- /**
- * Slot show none Profile
- */
- void exf2d::Exf2dProfileWidget::onShow0Profile()
- {
- _legend1->setNumberOfProfiles(0);
- _legend1->drawProfileLegend();
- }
- /**
- * Slot show one Profile
- */
- void exf2d::Exf2dProfileWidget::onShow1Profile()
- {
- _legend1->setNumberOfProfiles(1);
- _legend1->drawProfileLegend();
- }
- /**
- * Slot show two Profiles
- */
- void exf2d::Exf2dProfileWidget::onShow2Profile()
- {
- _legend1->setNumberOfProfiles(2);
- _legend1->drawProfileLegend();
- }
- /**
- * Slot show three Profiles
- */
- void exf2d::Exf2dProfileWidget::onShow3Profile()
- {
- _legend1->setNumberOfProfiles(3);
- _legend1->drawProfileLegend();
- }
- /**
- * Slot show four Profiles
- */
- void exf2d::Exf2dProfileWidget::onShow4Profile()
- {
- _legend1->setNumberOfProfiles(4);
- _legend1->drawProfileLegend();
- }
- /**
- * Slot show five Profiles
- */
- void exf2d::Exf2dProfileWidget::onShow5Profile()
- {
- _legend1->setNumberOfProfiles(5);
- _legend1->drawProfileLegend();
- }
- /**
- * Slot show six Profiles
- */
- void exf2d::Exf2dProfileWidget::onShow6Profile()
- {
- _legend1->setNumberOfProfiles(6);
- _legend1->drawProfileLegend();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement