Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.12 KB | None | 0 0
  1. void exf2d::Exf2dProfileWidget::createActions()
  2. {
  3.   _show0ProfileAction = new QAction("None", this);
  4.   connect(_show0ProfileAction, SIGNAL(triggered()), this, SLOT(onShow0Profile()));
  5.  
  6.   _show1ProfileAction = new QAction("1", this);
  7.   connect(_show1ProfileAction, SIGNAL(triggered()), this, SLOT(onShow1Profile()));
  8.  
  9.   _show2ProfileAction = new QAction("2", this);
  10.   connect(_show2ProfileAction, SIGNAL(triggered()), this, SLOT(onShow2Profile()));
  11.  
  12.   _show3ProfileAction = new QAction("3", this);
  13.   connect(_show3ProfileAction, SIGNAL(triggered()), this, SLOT(onShow3Profile()));
  14.  
  15.   _show4ProfileAction = new QAction("4", this);
  16.   connect(_show4ProfileAction, SIGNAL(triggered()), this, SLOT(onShow4Profile()));
  17.  
  18.   _show5ProfileAction = new QAction("5", this);
  19.   connect(_show5ProfileAction, SIGNAL(triggered()), this, SLOT(onShow5Profile()));
  20.  
  21.   _show6ProfileAction = new QAction("6", this);
  22.   connect(_show6ProfileAction, SIGNAL(triggered()), this, SLOT(onShow6Profile()));
  23.  
  24. }
  25.  
  26. /**
  27.  * Slot show none Profile
  28.  */
  29. void exf2d::Exf2dProfileWidget::onShow0Profile()
  30. {
  31.   _legend1->setNumberOfProfiles(0);
  32.   _legend1->drawProfileLegend();
  33. }
  34.  
  35. /**
  36.  * Slot show one Profile
  37.  */
  38. void exf2d::Exf2dProfileWidget::onShow1Profile()
  39. {
  40.   _legend1->setNumberOfProfiles(1);
  41.   _legend1->drawProfileLegend();
  42. }
  43.  
  44. /**
  45.  * Slot show two Profiles
  46.  */
  47. void exf2d::Exf2dProfileWidget::onShow2Profile()
  48. {
  49.   _legend1->setNumberOfProfiles(2);
  50.   _legend1->drawProfileLegend();
  51. }
  52.  
  53. /**
  54.  * Slot show three Profiles
  55.  */
  56. void exf2d::Exf2dProfileWidget::onShow3Profile()
  57. {
  58.   _legend1->setNumberOfProfiles(3);
  59.   _legend1->drawProfileLegend();
  60. }
  61.  
  62. /**
  63.  * Slot show four Profiles
  64.  */
  65. void exf2d::Exf2dProfileWidget::onShow4Profile()
  66. {
  67.   _legend1->setNumberOfProfiles(4);
  68.   _legend1->drawProfileLegend();
  69. }
  70.  
  71. /**
  72.  * Slot show five Profiles
  73.  */
  74. void exf2d::Exf2dProfileWidget::onShow5Profile()
  75. {
  76.   _legend1->setNumberOfProfiles(5);
  77.   _legend1->drawProfileLegend();
  78. }
  79.  
  80. /**
  81.  * Slot show six Profiles
  82.  */
  83. void exf2d::Exf2dProfileWidget::onShow6Profile()
  84. {
  85.   _legend1->setNumberOfProfiles(6);
  86.   _legend1->drawProfileLegend();
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement