Branch: master

285ed339 2014-10-14 00:15:30 Timothy Pearson
Bring centrejust, leftjust, rightjust, text_left, text_right, text_bold, text_italic, text_under, text_strike, and spellcheck icons into XDG compliance
M kexi/formeditor/richtextdialog.cpp
M kivio/kiviopart/kivio_view.cpp
M kivio/plugins/kiviotexttool/stenciltexteditor.cpp
M kpresenter/KPrConfig.cpp
M kpresenter/KPrView.cpp
M kspread/dialogs/kspread_dlg_preference.cc
M kspread/kspread_view.cc
M kword/KWConfig.cpp
M kword/KWView.cpp
M lib/kformula/kformuladocument.cc
M lib/kotext/KoLanguageTab.cpp
M tools/spell/main.cc
diff --git a/kexi/formeditor/richtextdialog.cpp b/kexi/formeditor/richtextdialog.cpp
index 9fde705..c2f47c6 100644
--- a/kexi/formeditor/richtextdialog.cpp
+++ b/kexi/formeditor/richtextdialog.cpp
@@ -54,9 +54,9 @@
 	m_toolbar->insertWidget(TBColor, 30, m_colCombo);
 	connect(m_colCombo, TQT_SIGNAL(activated(const TQColor&)), this, TQT_SLOT(changeColor(const TQColor&)));
 
-	m_toolbar->insertButton("text_bold", TBBold, true, i18n("Bold"));
-	m_toolbar->insertButton("text_italic", TBItalic, true, i18n("Italic"));
-	m_toolbar->insertButton("text_under", TBUnder, true, i18n("Underline"));
+	m_toolbar->insertButton("format-text-bold", TBBold, true, i18n("Bold"));
+	m_toolbar->insertButton("format-text-italic", TBItalic, true, i18n("Italic"));
+	m_toolbar->insertButton("format-text-underline", TBUnder, true, i18n("Underline"));
 	m_toolbar->setToggle(TBBold, true);
 	m_toolbar->setToggle(TBItalic, true);
 	m_toolbar->setToggle(TBUnder, true);
@@ -69,13 +69,13 @@
 	m_toolbar->insertSeparator();
 
 	TDEToolBarRadioGroup *group = new TDEToolBarRadioGroup(m_toolbar);
-	m_toolbar->insertButton("text_left", TBLeft, true, i18n("Left Align"));
+	m_toolbar->insertButton("format-text-direction-ltr", TBLeft, true, i18n("Left Align"));
 	m_toolbar->setToggle(TBLeft, true);
 	group->addButton(TBLeft);
 	m_toolbar->insertButton("text_center", TBCenter, true, i18n("Centered"));
 	m_toolbar->setToggle(TBCenter, true);
 	group->addButton(TBCenter);
-	m_toolbar->insertButton("text_right", TBRight, true, i18n("Right Align"));
+	m_toolbar->insertButton("format-text-direction-rtl", TBRight, true, i18n("Right Align"));
 	m_toolbar->setToggle(TBRight, true);
 	group->addButton(TBRight);
 	m_toolbar->insertButton("text_block", TBJustify, true, i18n("Justified"));
diff --git a/kivio/kiviopart/kivio_view.cpp b/kivio/kiviopart/kivio_view.cpp
index dfc3e2f..c34022d 100644
--- a/kivio/kiviopart/kivio_view.cpp
+++ b/kivio/kiviopart/kivio_view.cpp
@@ -433,16 +433,16 @@
   m_setTextColor = new TTDESelectColorAction( i18n("Text Color"), TTDESelectColorAction::TextColor, actionCollection(), "setTextColor" );
   connect( m_setTextColor, TQT_SIGNAL(activated()), TQT_SLOT(setTextColor()) );
 
-  m_setBold = new TDEToggleAction( i18n("Toggle Bold Text"), "text_bold", 0, actionCollection(), "setFontBold" );
+  m_setBold = new TDEToggleAction( i18n("Toggle Bold Text"), "format-text-bold", 0, actionCollection(), "setFontBold" );
   connect( m_setBold, TQT_SIGNAL(toggled(bool)), TQT_SLOT(toggleFontBold(bool)) );
 
-  m_setItalics = new TDEToggleAction( i18n("Toggle Italics Text"), "text_italic", 0, actionCollection(), "setFontItalics" );
+  m_setItalics = new TDEToggleAction( i18n("Toggle Italics Text"), "format-text-italic", 0, actionCollection(), "setFontItalics" );
   connect( m_setItalics, TQT_SIGNAL(toggled(bool)), TQT_SLOT(toggleFontItalics(bool)) );
 
-  m_setUnderline = new TDEToggleAction( i18n("Toggle Underline Text"), "text_under", 0, actionCollection(), "setFontUnderline" );
+  m_setUnderline = new TDEToggleAction( i18n("Toggle Underline Text"), "format-text-underline", 0, actionCollection(), "setFontUnderline" );
   connect( m_setUnderline, TQT_SIGNAL(toggled(bool)), TQT_SLOT(toggleFontUnderline(bool)));
 
-  m_textAlignLeft = new TDEToggleAction( i18n( "Align &Left" ), "text_left", CTRL + Key_L,
+  m_textAlignLeft = new TDEToggleAction( i18n( "Align &Left" ), "format-text-direction-ltr", CTRL + Key_L,
                                     TQT_TQOBJECT(this), TQT_SLOT( textAlignLeft() ),
                                     actionCollection(), "textAlignLeft" );
   m_textAlignLeft->setExclusiveGroup( "align" );
@@ -451,7 +451,7 @@
                                       actionCollection(), "textAlignCenter" );
   m_textAlignCenter->setExclusiveGroup( "align" );
   m_textAlignCenter->setChecked( TRUE );
-  m_textAlignRight = new TDEToggleAction( i18n( "Align &Right" ), "text_right", CTRL + ALT + Key_R,
+  m_textAlignRight = new TDEToggleAction( i18n( "Align &Right" ), "format-text-direction-rtl", CTRL + ALT + Key_R,
                                       TQT_TQOBJECT(this), TQT_SLOT( textAlignRight() ),
                                       actionCollection(), "textAlignRight" );
   m_textAlignRight->setExclusiveGroup( "align" );
diff --git a/kivio/plugins/kiviotexttool/stenciltexteditor.cpp b/kivio/plugins/kiviotexttool/stenciltexteditor.cpp
index 1f2c796..53708a6 100644
--- a/kivio/plugins/kiviotexttool/stenciltexteditor.cpp
+++ b/kivio/plugins/kiviotexttool/stenciltexteditor.cpp
@@ -43,15 +43,15 @@
   m_mainWidget = new StencilTextEditorUI(this);
   setMainWidget(m_mainWidget);
 
-  m_mainWidget->m_boldButton->setIconSet(SmallIconSet("text_bold", 16));
-  m_mainWidget->m_italicsButton->setIconSet(SmallIconSet("text_italic", 16));
-  m_mainWidget->m_underLineButton->setIconSet(SmallIconSet("text_under", 16));
+  m_mainWidget->m_boldButton->setIconSet(SmallIconSet("format-text-bold", 16));
+  m_mainWidget->m_italicsButton->setIconSet(SmallIconSet("format-text-italic", 16));
+  m_mainWidget->m_underLineButton->setIconSet(SmallIconSet("format-text-underline", 16));
 
   TQPopupMenu* menu = new TQPopupMenu(m_mainWidget->m_hAlignButton, "hAlignMenu");
   menu->setCheckable(true);
-  menu->insertItem(SmallIconSet("text_left", 16), i18n("Align Left"), TQt::AlignLeft);
+  menu->insertItem(SmallIconSet("format-text-direction-ltr", 16), i18n("Align Left"), TQt::AlignLeft);
   menu->insertItem(SmallIconSet("text_center", 16), i18n("Align Center"), TQt::AlignHCenter);
-  menu->insertItem(SmallIconSet("text_right", 16), i18n("Align Right"), TQt::AlignRight);
+  menu->insertItem(SmallIconSet("format-text-direction-rtl", 16), i18n("Align Right"), TQt::AlignRight);
   m_mainWidget->m_hAlignButton->setPopup(menu);
   connect(menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setHorizontalAlign(int)));
   connect(m_mainWidget->m_hAlignButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(showHAlignPopup()));
diff --git a/kpresenter/KPrConfig.cpp b/kpresenter/KPrConfig.cpp
index b43012a..17a493e 100644
--- a/kpresenter/KPrConfig.cpp
+++ b/kpresenter/KPrConfig.cpp
@@ -94,7 +94,7 @@
     _colorBackground = new KPrConfigureColorBackground( parent, page );
 
     page = addVBoxPage( i18n("Spelling"), i18n("Spellchecker Behavior"),
-                        BarIcon("spellcheck", TDEIcon::SizeMedium) );
+                        BarIcon("tools-check-spelling", TDEIcon::SizeMedium) );
     _spellPage=new KPrConfigureSpellPage(parent, page);
 
     page = addVBoxPage( i18n("Misc"), i18n("Misc"),
diff --git a/kpresenter/KPrView.cpp b/kpresenter/KPrView.cpp
index d975acc..cfbe5f2 100644
--- a/kpresenter/KPrView.cpp
+++ b/kpresenter/KPrView.cpp
@@ -2541,19 +2541,19 @@
     connect( actionTextFontFamily , TQT_SIGNAL( activated( const TQString & ) ),
              TQT_TQOBJECT(this), TQT_SLOT( fontSelected( const TQString & ) ) );
 
-    actionTextBold = new TDEToggleAction( i18n( "&Bold" ), "text_bold", CTRL + TQt::Key_B,
+    actionTextBold = new TDEToggleAction( i18n( "&Bold" ), "format-text-bold", CTRL + TQt::Key_B,
                                         TQT_TQOBJECT(this), TQT_SLOT( textBold() ),
-                                        actionCollection(), "text_bold" );
+                                        actionCollection(), "format-text-bold" );
 
-    actionTextItalic = new TDEToggleAction( i18n( "&Italic" ), "text_italic", CTRL + TQt::Key_I,
+    actionTextItalic = new TDEToggleAction( i18n( "&Italic" ), "format-text-italic", CTRL + TQt::Key_I,
                                           TQT_TQOBJECT(this), TQT_SLOT( textItalic() ),
-                                          actionCollection(), "text_italic" );
+                                          actionCollection(), "format-text-italic" );
 
-    actionTextUnderline = new TDEToggleAction( i18n( "&Underline" ), "text_under", CTRL + TQt::Key_U,
+    actionTextUnderline = new TDEToggleAction( i18n( "&Underline" ), "format-text-underline", CTRL + TQt::Key_U,
                                              TQT_TQOBJECT(this), TQT_SLOT( textUnderline() ),
                                              actionCollection(), "text_underline" );
 
-    actionFormatStrikeOut = new TDEToggleAction( i18n( "&Strike Out" ), "text_strike", 0 ,
+    actionFormatStrikeOut = new TDEToggleAction( i18n( "&Strike Out" ), "format-text-strikethrough", 0 ,
                                                TQT_TQOBJECT(this), TQT_SLOT( textStrikeOut() ),
                                                actionCollection(), "format_strike" );
 
@@ -2563,7 +2563,7 @@
     actionTextColor->setDefaultColor(TQColor());
 
 
-    actionTextAlignLeft = new TDEToggleAction( i18n( "Align &Left" ), "text_left", ALT + TQt::Key_L,
+    actionTextAlignLeft = new TDEToggleAction( i18n( "Align &Left" ), "format-text-direction-ltr", ALT + TQt::Key_L,
                                              TQT_TQOBJECT(this), TQT_SLOT( textAlignLeft() ),
                                              actionCollection(), "text_alignleft" );
     actionTextAlignLeft->setExclusiveGroup( "align" );
@@ -2574,7 +2574,7 @@
                                                actionCollection(), "text_aligncenter" );
     actionTextAlignCenter->setExclusiveGroup( "align" );
 
-    actionTextAlignRight = new TDEToggleAction( i18n( "Align &Right" ), "text_right", ALT + TQt::Key_R,
+    actionTextAlignRight = new TDEToggleAction( i18n( "Align &Right" ), "format-text-direction-rtl", ALT + TQt::Key_R,
                                               TQT_TQOBJECT(this), TQT_SLOT( textAlignRight() ),
                                               actionCollection(), "text_alignright" );
     actionTextAlignRight->setExclusiveGroup( "align" );
diff --git a/kspread/dialogs/kspread_dlg_preference.cc b/kspread/dialogs/kspread_dlg_preference.cc
index 6fa1208..d82af59 100644
--- a/kspread/dialogs/kspread_dlg_preference.cc
+++ b/kspread/dialogs/kspread_dlg_preference.cc
@@ -81,7 +81,7 @@
   _layoutPage=new configureLayoutPage(parent,page6 );
 
   TQVBox *page7 = addVBoxPage( i18n("Spelling"), i18n("Spell Checker Behavior"),
-                          BarIcon("spellcheck", TDEIcon::SizeMedium) );
+                          BarIcon("tools-check-spelling", TDEIcon::SizeMedium) );
   _spellPage=new configureSpellPage(parent,page7);
 
   if (KoSpeaker::isKttsdInstalled()) {
diff --git a/kspread/kspread_view.cc b/kspread/kspread_view.cc
index 79c355c..cfcb3f8 100644
--- a/kspread/kspread_view.cc
+++ b/kspread/kspread_view.cc
@@ -478,22 +478,22 @@
       0, TQT_TQOBJECT(view), TQT_SLOT( defaultSelection() ), ac, "default" );
   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_BASE_OBJECT_NAME::connect( actions->bold, TQT_SIGNAL( toggled( 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_BASE_OBJECT_NAME::connect( actions->italic, TQT_SIGNAL( toggled( 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_BASE_OBJECT_NAME::connect( actions->underline, TQT_SIGNAL( toggled( 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");
   TQT_BASE_OBJECT_NAME::connect( actions->strikeOut, TQT_SIGNAL( toggled( bool) ),
       TQT_TQOBJECT(view), TQT_SLOT( strikeOut( bool ) ) );
@@ -519,7 +519,7 @@
       ac, "textColor",true );
   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");
   TQT_BASE_OBJECT_NAME::connect( actions->alignLeft, TQT_SIGNAL( toggled( bool ) ),
       TQT_TQOBJECT(view), TQT_SLOT( alignLeft( bool ) ) );
@@ -533,7 +533,7 @@
   actions->alignCenter->setExclusiveGroup( "Align" );
   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");
   TQT_BASE_OBJECT_NAME::connect( actions->alignRight, TQT_SIGNAL( toggled( bool ) ),
       TQT_TQOBJECT(view), TQT_SLOT( alignRight( bool ) ) );
diff --git a/kword/KWConfig.cpp b/kword/KWConfig.cpp
index 82a96bd..45c136e 100644
--- a/kword/KWConfig.cpp
+++ b/kword/KWConfig.cpp
@@ -94,7 +94,7 @@
   m_defaultDocPage=new ConfigureDefaultDocPage(parent, page4);
 
   TQVBox *page = addVBoxPage( i18n("Spelling"), i18n("Spell Checker Behavior"),
-                        loadIcon("spellcheck") );
+                        loadIcon("tools-check-spelling") );
   m_spellPage = new ConfigureSpellPage(parent, page);
 
   TQVBox *page5 = addVBoxPage( i18n("Formula"), i18n("Formula Defaults"),
diff --git a/kword/KWView.cpp b/kword/KWView.cpp
index 1cf60cc..74a49cf 100644
--- a/kword/KWView.cpp
+++ b/kword/KWView.cpp
@@ -912,20 +912,20 @@
 
     // ----------------------- More format actions, for the toolbar only
 
-    m_actionFormatBold = new TDEToggleAction( i18n( "&Bold" ), "text_bold", TQt::CTRL + TQt::Key_B,
+    m_actionFormatBold = new TDEToggleAction( i18n( "&Bold" ), "format-text-bold", TQt::CTRL + TQt::Key_B,
                                            TQT_TQOBJECT(this), TQT_SLOT( textBold() ),
                                            actionCollection(), "format_bold" );
-    m_actionFormatItalic = new TDEToggleAction( i18n( "&Italic" ), "text_italic", TQt::CTRL + TQt::Key_I,
+    m_actionFormatItalic = new TDEToggleAction( i18n( "&Italic" ), "format-text-italic", TQt::CTRL + TQt::Key_I,
                                            TQT_TQOBJECT(this), TQT_SLOT( textItalic() ),
                                            actionCollection(), "format_italic" );
-    m_actionFormatUnderline = new TDEToggleAction( i18n( "&Underline" ), "text_under", TQt::CTRL + TQt::Key_U,
+    m_actionFormatUnderline = new TDEToggleAction( i18n( "&Underline" ), "format-text-underline", TQt::CTRL + TQt::Key_U,
                                            TQT_TQOBJECT(this), TQT_SLOT( textUnderline() ),
                                            actionCollection(), "format_underline" );
-    m_actionFormatStrikeOut = new TDEToggleAction( i18n( "&Strike Out" ), "text_strike", 0 ,
+    m_actionFormatStrikeOut = new TDEToggleAction( i18n( "&Strike Out" ), "format-text-strikethrough", 0 ,
 ** Diff limit reached (max: 250 lines) **