Changeset View
Changeset View
Standalone View
Standalone View
tools/kpTool.h
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Line(s) | 235 | protected: | |||
---|---|---|---|---|---|
257 | kpColor color (int which) const; | 257 | kpColor color (int which) const; | ||
258 | 258 | | |||
259 | kpColor foregroundColor () const; | 259 | kpColor foregroundColor () const; | ||
260 | kpColor backgroundColor () const; | 260 | kpColor backgroundColor () const; | ||
261 | 261 | | |||
262 | double colorSimilarity () const; | 262 | double colorSimilarity () const; | ||
263 | int processedColorSimilarity () const; | 263 | int processedColorSimilarity () const; | ||
264 | 264 | | |||
265 | protected slots: | 265 | public slots: | ||
266 | void slotColorsSwappedInternal (const kpColor &newForegroundColor, | 266 | void slotColorsSwappedInternal (const kpColor &newForegroundColor, | ||
267 | const kpColor &newBackgroundColor); | 267 | const kpColor &newBackgroundColor); | ||
268 | void slotForegroundColorChangedInternal (const kpColor &color); | 268 | void slotForegroundColorChangedInternal (const kpColor &color); | ||
269 | void slotBackgroundColorChangedInternal (const kpColor &color); | 269 | void slotBackgroundColorChangedInternal (const kpColor &color); | ||
270 | void slotColorSimilarityChangedInternal (double similarity, int processedSimilarity); | 270 | void slotColorSimilarityChangedInternal (double similarity, int processedSimilarity); | ||
271 | 271 | | |||
272 | protected slots: // TODO: there is no reason why these should be slots | 272 | protected slots: // TODO: there is no reason why these should be slots | ||
273 | virtual void slotColorsSwapped (const kpColor & /*newForegroundColor*/, const kpColor & /*newBackgroundColor*/) {} | 273 | virtual void slotColorsSwapped (const kpColor & /*newForegroundColor*/, const kpColor & /*newBackgroundColor*/) {} | ||
▲ Show 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 395 | public: | |||
417 | void setUserShapeSize (const QSize &size = KP_INVALID_SIZE); | 417 | void setUserShapeSize (const QSize &size = KP_INVALID_SIZE); | ||
418 | void setUserShapeSize (int width, int height); | 418 | void setUserShapeSize (int width, int height); | ||
419 | 419 | | |||
420 | signals: | 420 | signals: | ||
421 | void userMessageChanged (const QString &userMessage); | 421 | void userMessageChanged (const QString &userMessage); | ||
422 | void userShapePointsChanged (const QPoint &startPoint = KP_INVALID_POINT, | 422 | void userShapePointsChanged (const QPoint &startPoint = KP_INVALID_POINT, | ||
423 | const QPoint &endPoint = KP_INVALID_POINT); | 423 | const QPoint &endPoint = KP_INVALID_POINT); | ||
424 | void userShapeSizeChanged (const QSize &size); | 424 | void userShapeSizeChanged (const QSize &size); | ||
425 | void userShapeSizeChanged (int width, int height); | | |||
426 | 425 | | |||
427 | 426 | | |||
428 | public: | 427 | public: | ||
429 | // Call this before the user tries to cause the document or selection | 428 | // Call this before the user tries to cause the document or selection | ||
430 | // to resize from <oldWidth>x<oldHeight> to <newWidth>x<newHeight>. | 429 | // to resize from <oldWidth>x<oldHeight> to <newWidth>x<newHeight>. | ||
431 | // If at least one dimension increases, the new dimensions will take a | 430 | // If at least one dimension increases, the new dimensions will take a | ||
432 | // large amount of memory (which causes thrashing, instability) and | 431 | // large amount of memory (which causes thrashing, instability) and | ||
433 | // the old dimensions did not take a large amount of memory, ask the | 432 | // the old dimensions did not take a large amount of memory, ask the | ||
Show All 33 Lines |