|
|
@ -478,22 +478,22 @@ void View::Private::initActions()
|
|
|
|
0, TQT_TQOBJECT(view), TQT_SLOT( defaultSelection() ), ac, "default" );
|
|
|
|
0, TQT_TQOBJECT(view), TQT_SLOT( defaultSelection() ), ac, "default" );
|
|
|
|
actions->defaultFormat->setToolTip( i18n("Resets to the default format.") );
|
|
|
|
actions->defaultFormat->setToolTip( i18n("Resets to the default format.") );
|
|
|
|
|
|
|
|
|
|
|
|
actions->bold = new TDEToggleAction( i18n("Bold"), "text_bold",
|
|
|
|
actions->bold = new TDEToggleAction( i18n("Bold"), "format-text-bold",
|
|
|
|
TQt::CTRL+TQt::Key_B, ac, "bold");
|
|
|
|
TQt::CTRL+TQt::Key_B, ac, "bold");
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->bold, TQT_SIGNAL( toggled( bool) ),
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->bold, TQT_SIGNAL( toggled( bool) ),
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( bold( bool ) ) );
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( bold( bool ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
actions->italic = new TDEToggleAction( i18n("Italic"), "text_italic",
|
|
|
|
actions->italic = new TDEToggleAction( i18n("Italic"), "format-text-italic",
|
|
|
|
TQt::CTRL+TQt::Key_I, ac, "italic");
|
|
|
|
TQt::CTRL+TQt::Key_I, ac, "italic");
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->italic, TQT_SIGNAL( toggled( bool) ),
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->italic, TQT_SIGNAL( toggled( bool) ),
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( italic( bool ) ) );
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( italic( bool ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
actions->underline = new TDEToggleAction( i18n("Underline"), "text_under",
|
|
|
|
actions->underline = new TDEToggleAction( i18n("Underline"), "format-text-underline",
|
|
|
|
TQt::CTRL+TQt::Key_U, ac, "underline");
|
|
|
|
TQt::CTRL+TQt::Key_U, ac, "underline");
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->underline, TQT_SIGNAL( toggled( bool) ),
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->underline, TQT_SIGNAL( toggled( bool) ),
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( underline( bool ) ) );
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( underline( bool ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
actions->strikeOut = new TDEToggleAction( i18n("Strike Out"), "text_strike",
|
|
|
|
actions->strikeOut = new TDEToggleAction( i18n("Strike Out"), "format-text-strikethrough",
|
|
|
|
0, ac, "strikeout");
|
|
|
|
0, ac, "strikeout");
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->strikeOut, TQT_SIGNAL( toggled( bool) ),
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->strikeOut, TQT_SIGNAL( toggled( bool) ),
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( strikeOut( bool ) ) );
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( strikeOut( bool ) ) );
|
|
|
@ -519,7 +519,7 @@ void View::Private::initActions()
|
|
|
|
ac, "textColor",true );
|
|
|
|
ac, "textColor",true );
|
|
|
|
actions->textColor->setDefaultColor(TQColor());
|
|
|
|
actions->textColor->setDefaultColor(TQColor());
|
|
|
|
|
|
|
|
|
|
|
|
actions->alignLeft = new TDEToggleAction( i18n("Align Left"), "text_left",
|
|
|
|
actions->alignLeft = new TDEToggleAction( i18n("Align Left"), "format-text-direction-ltr",
|
|
|
|
0, ac, "left");
|
|
|
|
0, ac, "left");
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->alignLeft, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->alignLeft, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( alignLeft( bool ) ) );
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( alignLeft( bool ) ) );
|
|
|
@ -533,7 +533,7 @@ void View::Private::initActions()
|
|
|
|
actions->alignCenter->setExclusiveGroup( "Align" );
|
|
|
|
actions->alignCenter->setExclusiveGroup( "Align" );
|
|
|
|
actions->alignCenter->setToolTip(i18n("Center the cell contents."));
|
|
|
|
actions->alignCenter->setToolTip(i18n("Center the cell contents."));
|
|
|
|
|
|
|
|
|
|
|
|
actions->alignRight = new TDEToggleAction( i18n("Align Right"), "text_right",
|
|
|
|
actions->alignRight = new TDEToggleAction( i18n("Align Right"), "format-text-direction-rtl",
|
|
|
|
0, ac, "right");
|
|
|
|
0, ac, "right");
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->alignRight, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
TQT_BASE_OBJECT_NAME::connect( actions->alignRight, TQT_SIGNAL( toggled( bool ) ),
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( alignRight( bool ) ) );
|
|
|
|
TQT_TQOBJECT(view), TQT_SLOT( alignRight( bool ) ) );
|
|
|
|