Changeset View
Changeset View
Standalone View
Standalone View
libs/widgets/KoModeBox_p.h
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | 96 | private Q_SLOTS: | |||
---|---|---|---|---|---|
100 | void toolAdded(KoToolAction *toolAction, KoCanvasController *canvas); | 100 | void toolAdded(KoToolAction *toolAction, KoCanvasController *canvas); | ||
101 | 101 | | |||
102 | /// slot for when a new item have been selected in the QToolBox | 102 | /// slot for when a new item have been selected in the QToolBox | ||
103 | void toolSelected(int index); | 103 | void toolSelected(int index); | ||
104 | 104 | | |||
105 | /// slot for context menu of the tabbar | 105 | /// slot for context menu of the tabbar | ||
106 | void slotContextMenuRequested(const QPoint &pos); | 106 | void slotContextMenuRequested(const QPoint &pos); | ||
107 | 107 | | |||
108 | /// switch icon mode | | |||
109 | void switchIconMode(int); | | |||
110 | | ||||
111 | /// switch tabs side | | |||
112 | void switchTabsSide(int); | | |||
113 | | ||||
114 | /** | 108 | /** | ||
115 | * Add a tool to the modebox. | 109 | * Add a tool to the modebox. | ||
116 | * The tools should all be added before the first showing since adding will not really add | 110 | * The tools should all be added before the first showing since adding will not really add | ||
117 | * them to the UI until setup() is called. | 111 | * them to the UI until setup() is called. | ||
118 | * | 112 | * | ||
119 | * @param toolAction the action of the tool | 113 | * @param toolAction the action of the tool | ||
120 | * @see setup() | 114 | * @see setup() | ||
121 | */ | 115 | */ | ||
Show All 14 Lines | 121 | private: | |||
136 | }; | 130 | }; | ||
137 | 131 | | |||
138 | enum HorizontalTabsSide { | 132 | enum HorizontalTabsSide { | ||
139 | LeftSide, | 133 | LeftSide, | ||
140 | RightSide | 134 | RightSide | ||
141 | }; | 135 | }; | ||
142 | 136 | | |||
143 | QIcon createTextIcon(KoToolAction *toolAction) const; | 137 | QIcon createTextIcon(KoToolAction *toolAction) const; | ||
144 | QIcon createSimpleIcon(KoToolAction *toolAction) const; | | |||
145 | void addItem(KoToolAction *toolAction); | 138 | void addItem(KoToolAction *toolAction); | ||
146 | void setIconSize() const; | | |||
147 | 139 | | |||
148 | private: | 140 | private: | ||
149 | class Private; | 141 | class Private; | ||
150 | Private * const d; | 142 | Private * const d; | ||
151 | }; | 143 | }; | ||
152 | 144 | | |||
153 | #endif // _KO_TOOLBOX_H_ | 145 | #endif // _KO_TOOLBOX_H_ |