KoCreateShapesToolFactory::KoCreateShapesToolFactory()
        : KoToolFactoryBase(KoCreateShapesTool_ID)
{
    setToolTip(QObject::tr("Create object"));
    setToolType(mainToolType());
    setPriority(1);
}
Exemple #2
0
//根据拆分后的命令设置参数
void setParameters(){
    setFeedSpeed(commandData.feedSpeed);
    setSpindleSpeed(commandData.spindleSpeed);
    setToolType(commandData.toolType);
    setGCommand(commandData.GCommand);
    setLine(commandData.targetX, commandData.targetY);
}
Exemple #3
0
KoCreateShapesToolFactory::KoCreateShapesToolFactory(QObject *parent)
        : KoToolFactory(parent, KoCreateShapesTool_ID, i18n("Create Shapes"))
{
    setToolTip(i18n("Create object"));
    setToolType(mainToolType());
    setPriority(1);
}
GuidesToolFactory::GuidesToolFactory()
    : KoToolFactoryBase(GuidesToolId)
{
    setToolTip(i18n("Edit guidelines"));
    setToolType("never");
    setPriority(1);
    setActivationShapeId("itShouldNeverBeActivated");
}
CommentToolFactory::CommentToolFactory()
: KoToolFactoryBase("CommentToolFactory")
{
    setToolTip(i18n("Comment Tool"));
    setToolType(mainToolType());
    setIcon("commentTool");
    setActivationShapeId(COMMENTSHAPEID);
}
KarbonFilterEffectsToolFactory::KarbonFilterEffectsToolFactory()
    : KoToolFactoryBase("KarbonFilterEffectsTool")
{
    setToolTip(i18n("Filter effects editing"));
    setToolType("karbon,krita");
    setIconName(koIconNameCStr("tool_imageeffects")); // TODO: better icon, e.g. black Fx bad on dark UI
    setPriority(3);
}
KPrPlaceholderToolFactory::KPrPlaceholderToolFactory()
    : KoToolFactoryBase("Layout Tool")
{
    setToolTip(i18n("Layout"));
    setToolType(dynamicToolType());
    setPriority(0);
    setActivationShapeId(KPrPlaceholderShapeId);
}
KoPABackgroundToolFactory::KoPABackgroundToolFactory()
    : KoToolFactoryBase("KoPABackgroundTool")
{
    setToolType("calligraflow, calligrastage");
    setActivationShapeId("flake/always");
    setIconName(koIconName("backgroundtool"));
    setPriority(3);
}
ArtisticTextToolFactory::ArtisticTextToolFactory()
    : KoToolFactoryBase("ArtisticTextTool")
{
    setToolTip(i18n("Artistic text editing"));
    setToolType(dynamicToolType());
    setIconName(koIconNameCStr("artistic_text"));
    setPriority(1);
    setActivationShapeId(ArtisticTextShapeID);
}
Exemple #10
0
SimpleEntryToolFactory::SimpleEntryToolFactory( QObject* parent )
    : KoToolFactory( parent, "SimpleEntryToolFactoryId", i18n( "Music Tool" ) )
{
    setToolTip( i18n( "Music editing tool" ) );
    setIcon( "music-note-16th" );
    setToolType( dynamicToolType() );
    setPriority( 1 );
    setActivationShapeId( MusicShapeId );
}
KoPathToolFactory::KoPathToolFactory()
        : KoToolFactoryBase("PathToolFactoryId")
{
    setToolTip(i18n("Path editing tool"));
    setToolType(dynamicToolType());
    setIcon("editpath");
    setPriority(2);
    setActivationShapeId(KoPathShapeId);
}
TextToolFactory::TextToolFactory()
        : KoToolFactoryBase("TextTool")
{
    setToolTip(i18n("Text editing"));
    setToolType(dynamicToolType()+",calligrawords,calligraauthor");
    setIconName(koIconNameCStr("tool-text"));
    setPriority(1);
    setActivationShapeId(TextShape_SHAPEID "," AnnotationShape_SHAPEID);
}
TextToolFactory::TextToolFactory()
        : KoToolFactoryBase("TextToolFactory_ID")
{
    setToolTip(i18n("Text editing tool"));
    setToolType(dynamicToolType());
    setIcon("tool-text");
    setPriority(1);
    setActivationShapeId(TextShape_SHAPEID);
}
StateToolFactory::StateToolFactory()
    : KoToolFactoryBase("StateToolFactoryID")
{
    setToolTip(i18n("State Tool"));
    setToolType(dynamicToolType());
    setIconName(koIconNameCStr("statetool"));
    setPriority(1);
    setActivationShapeId(STATESHAPEID);
}
KoPanToolFactory::KoPanToolFactory()
        : KoToolFactoryBase(KoPanTool_ID)
{
    setToolTip(i18n("Pan"));
    setToolType(navigationToolType());
    setPriority(5);
    setIcon("hand");
    setActivationShapeId("flake/always");
}
KoCreatePathToolFactory::KoCreatePathToolFactory()
        : KoToolFactoryBase(KoCreatePathTool_ID)
{
    setToolTip(QObject::tr("Create Path"));
    setToolType(mainToolType());
    setPriority(2);
    setIconName(koIconNameCStr("createpath"));
    setActivationShapeId("flake/edit");
}
KoPanToolFactory::KoPanToolFactory()
        : KoToolFactoryBase(KoPanTool_ID)
{
    setToolTip(QObject::tr("Pan"));
    setToolType(navigationToolType());
    setPriority(5);
    setIconName(koIconNameCStr("hand"));
    setActivationShapeId("flake/always");
}
ConnectionToolFactory::ConnectionToolFactory()
    : KoToolFactoryBase(ConnectionTool_ID)
{
    setToolTip(i18n("Connect shapes"));    
    setIcon("x-shape-connection");
    setToolType(mainToolType());
    setPriority(1);
    setActivationShapeId("flake/always");
}
Exemple #19
0
PictureToolFactory::PictureToolFactory( QObject* parent)
    : KoToolFactory( parent, "PictureToolFactoryId", i18n( "Picture Tool" ) )
{
    setToolTip( i18n( "Picture editing tool" ) );
    setIcon( "pictureshape" );
    setToolType( dynamicToolType() );
    setPriority( 1 );
    setActivationShapeId( PICTURESHAPEID );
}
KarbonCalligraphyToolFactory::KarbonCalligraphyToolFactory()
        : KoToolFactoryBase("KarbonCalligraphyTool")
{
    setToolTip(i18n("Calligraphy"));
    setToolType("karbon,krita");
    setIconName(koIconNameCStr("calligraphy"));
    setPriority(3);
    setActivationShapeId("flake/edit");
}
ReferencesToolFactory::ReferencesToolFactory()
        : KoToolFactoryBase("ReferencesToolFactory_ID")
{
    setToolTip(i18n("References"));
    setToolType("calligrawords");
    setIconName(koIconNameCStr("tool_references"));
    setPriority(20);
    setActivationShapeId(TextShape_SHAPEID);
}
SimpleEntryToolFactory::SimpleEntryToolFactory()
    : KoToolFactoryBase("SimpleEntryToolFactoryId")
{
    setToolTip( i18n( "Music editing" ) );
    setIconName(koIconNameCStr("music-note-16th"));
    setToolType( dynamicToolType() );
    setPriority( 1 );
    setActivationShapeId( MusicShapeId );
}
Exemple #23
0
WebToolFactory::WebToolFactory()
    : KoToolFactoryBase("WebToolFactoryID")
{
    setToolTip(i18n("Web shape editing"));
    setToolType(dynamicToolType());
    setIconName(koIconNameCStr("applications-internet"));
    setPriority(1);
    setActivationShapeId(WEBSHAPEID);
}
Exemple #24
0
VectorToolFactory::VectorToolFactory()
    : KoToolFactoryBase("VectorToolFactoryId")
{
    setToolTip(i18n("Vector Image (EMF/WMF/SVM/SVG) tool"));
    setIconName(koIconNameNeededWithSubs("a generic vector image icon", "x-shape-vectorimage", "application-x-wmf"));
    setToolType( dynamicToolType() );
    setPriority( 1 );
    setActivationShapeId( VectorShape_SHAPEID );
}
Exemple #25
0
KCCellToolFactory::KCCellToolFactory(QObject* parent, const QString& id)
        : KToolFactoryBase(parent, id)
{
    setToolTip(i18n("Cell Tool"));
    setIcon("kcells");
    setToolType("KCells");
    setPriority(0);
    setActivationShapeId("flake/always");
}
Exemple #26
0
KritaShapeToolFactory::KritaShapeToolFactory(QObject* parent, const QStringList&)
    : KoToolFactory(parent, "KritaShapeToolFactoryId", i18n("KritaShape Tool"))
{
    setToolTip(i18n("KritaShape editing tool"));
    setIcon("kritashape");
    setToolType(dynamicToolType());
    setPriority(1);
    setActivationShapeId(KritaShapeId);
}
Exemple #27
0
KoPencilToolFactory::KoPencilToolFactory()
        : KoToolFactoryBase("KoPencilTool")
{
    setToolTip(i18n("Freehand path"));
    setToolType("karbon, krita");
    setIconName(koIconNameCStr("draw-freehand"));
    setPriority(3);
    setActivationShapeId("flake/edit");
}
KPrAnimationToolFactory::KPrAnimationToolFactory()
    : KoToolFactoryBase("Animation Tool")
{
    setToolTip(i18n("Animation"));
    setToolType("calligrastage");
    setPriority(40);
    setIconName(koIconName("animation-stage"));
    setActivationShapeId("flake/edit");
}
KarbonGradientToolFactory::KarbonGradientToolFactory()
        : KoToolFactoryBase("KarbonGradientTool")
{
    setToolTip(i18n("Gradient editing"));
    setToolType("karbon");
    setIconName(koIconName("gradient"));
    // or probably rather "fill-gradient", please request that icon on TechBase
    setPriority(3);
}
KPrAnimationToolFactory::KPrAnimationToolFactory()
    : KoToolFactoryBase("Animation Tool")
{
    setToolTip(i18n("Animation tool"));
    setToolType(mainToolType());
    setPriority(40);
    setIcon("animation-kpresenter");
    setActivationShapeId("flake/edit");
}