equal
deleted
inserted
replaced
73 Capsulates Tool Bar command info. |
73 Capsulates Tool Bar command info. |
74 */ |
74 */ |
75 class ToolBarCommand |
75 class ToolBarCommand |
76 { |
76 { |
77 public: |
77 public: |
|
78 ToolBarCommand() : |
|
79 mCommandId(0), mIsEnabled(false) {} |
|
80 ToolBarCommand(int command, bool isEnabled) : |
|
81 mCommandId(command), mIsEnabled(isEnabled) {} |
78 |
82 |
79 // Tool Bar command Id |
83 // Tool Bar command Id |
80 int mCommandId; |
84 int mCommandId; |
81 |
85 |
82 // Is command enabled |
86 // Is command enabled |
83 bool mIsEnabled; |
87 bool mIsEnabled; |
84 |
88 |
|
89 // Comparison operator |
|
90 bool operator==(const ToolBarCommand& c) |
|
91 { return ((c.mCommandId == mCommandId) && |
|
92 (c.mIsEnabled == mIsEnabled)); } |
85 }; |
93 }; |
86 |
94 |
87 /*! |
95 /*! |
88 \fn void modifyMenuItemList(QList<int> &menuCmdList) |
96 \fn void modifyMenuItemList(QList<int> &menuCmdList) |
89 |
97 |