#include "BufferView.h"
#include "Color.h"
#include "ColorCache.h"
+#include "ColorSet.h"
#include "Cursor.h"
#include "FuncRequest.h"
#include "Language.h"
#include "Paragraph.h"
#include "support/gettext.h"
+#include "support/lstrings.h"
#include <QAbstractItemModel>
#include <QComboBox>
bars << BarPair(qt_("Underbar"), UNDERBAR_TOGGLE);
bars << BarPair(qt_("Double underbar"), UULINE_TOGGLE);
bars << BarPair(qt_("Wavy underbar"), UWAVE_TOGGLE);
- bars << BarPair(qt_("Strikeout"), STRIKEOUT_TOGGLE);
+ bars << BarPair(qt_("Strike out"), STRIKEOUT_TOGGLE);
+ bars << BarPair(qt_("Cross out"), XOUT_TOGGLE);
bars << BarPair(qt_("Noun"), NOUN_TOGGLE);
bars << BarPair(qt_("Reset"), INHERIT);
return bars;
combo->addItem(qt_("Reset"), "inherit");
}
-}
+} // namespace anon
GuiCharacter::GuiCharacter(GuiView & lv)
: GuiDialog(lv, "character", qt_("Text Style")), font_(ignore_font, ignore_language),
size = sizeData();
bar = barData();
color = colorData();
- sort(color.begin(), color.end(), ColorSorter());
+ qSort(color.begin(), color.end(), ColorSorter);
language = languageData();
language.prepend(LanguagePair(qt_("Reset"), "reset"));
if (fi.strikeout() == FONT_TOGGLE)
return STRIKEOUT_TOGGLE;
+ if (fi.xout() == FONT_TOGGLE)
+ return XOUT_TOGGLE;
+
if (fi.uuline() == FONT_TOGGLE)
return UULINE_TOGGLE;
fi.setEmph(FONT_IGNORE);
fi.setUnderbar(FONT_IGNORE);
fi.setStrikeout(FONT_IGNORE);
+ fi.setXout(FONT_IGNORE);
fi.setUuline(FONT_IGNORE);
fi.setUwave(FONT_IGNORE);
fi.setNoun(FONT_IGNORE);
fi.setStrikeout(FONT_TOGGLE);
break;
+ case XOUT_TOGGLE:
+ setBar(fi, INHERIT);
+ fi.setXout(FONT_TOGGLE);
+ break;
+
case UULINE_TOGGLE:
setBar(fi, INHERIT);
fi.setUuline(FONT_TOGGLE);
fi.setEmph(FONT_INHERIT);
fi.setUnderbar(FONT_INHERIT);
fi.setStrikeout(FONT_INHERIT);
+ fi.setXout(FONT_INHERIT);
fi.setUuline(FONT_INHERIT);
fi.setUwave(FONT_INHERIT);
fi.setNoun(FONT_INHERIT);