Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Enumerated types, anyone?

By: a guest on Sep 17th, 2012  |  syntax: C++  |  size: 1.58 KB  |  views: 898  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void TTreeWidget::setIsVarTree()
  2. {
  3.     mIsAliasTree = false;
  4.     mIsTriggerTree = false;
  5.     mIsScriptTree = false;
  6.     mIsTimerTree = false;
  7.     mIsActionTree = false;
  8.     mIsKeyTree = false;
  9.     mIsVarTree = true;
  10. }
  11.  
  12. void TTreeWidget::setIsAliasTree()
  13. {
  14.     mIsAliasTree = true;
  15.     mIsTriggerTree = false;
  16.     mIsScriptTree = false;
  17.     mIsTimerTree = false;
  18.     mIsActionTree = false;
  19.     mIsKeyTree = false;
  20.     mIsVarTree = false;
  21. }
  22.  
  23. void TTreeWidget::setIsTriggerTree()
  24. {
  25.     mIsTriggerTree = true;
  26.     mIsAliasTree = false;
  27.     mIsScriptTree = false;
  28.     mIsTimerTree = false;
  29.     mIsActionTree = false;
  30.     mIsKeyTree = false;
  31.     mIsVarTree = false;
  32. }
  33.  
  34. void TTreeWidget::setIsActionTree()
  35. {
  36.     mIsTriggerTree = false;
  37.     mIsAliasTree = false;
  38.     mIsScriptTree = false;
  39.     mIsTimerTree = false;
  40.     mIsKeyTree = false;
  41.     mIsActionTree = true;
  42.     mIsVarTree = false;
  43. }
  44.  
  45. void TTreeWidget::setIsKeyTree()
  46. {
  47.     mIsTriggerTree = false;
  48.     mIsAliasTree = false;
  49.     mIsScriptTree = false;
  50.     mIsTimerTree = false;
  51.     mIsActionTree = false;
  52.     mIsKeyTree = true;
  53.     mIsVarTree = false;
  54. }
  55.  
  56. void TTreeWidget::setIsTimerTree()
  57. {
  58.     mIsTimerTree = true;
  59.     mIsTriggerTree = false;
  60.     mIsScriptTree = false;
  61.     mIsAliasTree = false;
  62.     mIsActionTree = false;
  63.     mIsKeyTree = false;
  64.     mIsVarTree = false;
  65. }
  66.  
  67. void TTreeWidget::setIsScriptTree()
  68. {
  69.     mIsScriptTree = true;
  70.     mIsTriggerTree = false;
  71.     mIsAliasTree = false;
  72.     mIsTimerTree = false;
  73.     mIsActionTree = false;
  74.     mIsKeyTree = false;
  75.     mIsVarTree = false;
  76. }
clone this paste RAW Paste Data