Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_tool.h File Reference
#include <QCursor>
#include <KoColor.h>
#include <KoToolBase.h>
#include <KoID.h>
#include <KoCanvasResourceProvider.h>
#include <KoPattern.h>
#include <KoAbstractGradient.h>
#include <kis_types.h>
#include <kritaui_export.h>

Go to the source code of this file.

Classes

class  KisTool
 

Macros

#define CHECK_MODE_SANITY_OR_RETURN(_mode)   if (mode() != _mode) { WARN_WRONG_MODE(mode()); return; }
 
#define WARN_WRONG_MODE(_mode)   warnKrita << "Unexpected tool event has come while being mode" << _mode << "!"
 

Variables

static const QString KRITA_TOOL_ACTIVATION_ID = "flake/always"
 

Macro Definition Documentation

◆ CHECK_MODE_SANITY_OR_RETURN

#define CHECK_MODE_SANITY_OR_RETURN ( _mode)    if (mode() != _mode) { WARN_WRONG_MODE(mode()); return; }

Definition at line 27 of file kis_tool.h.

◆ WARN_WRONG_MODE

#define WARN_WRONG_MODE ( _mode)    warnKrita << "Unexpected tool event has come while being mode" << _mode << "!"

Definition at line 24 of file kis_tool.h.

Variable Documentation

◆ KRITA_TOOL_ACTIVATION_ID

const QString KRITA_TOOL_ACTIVATION_ID = "flake/always"
static

Definition at line 37 of file kis_tool.h.