This hopefully cures Richard's compilation woes.
#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>
combo->addItem(qt_("Reset"), "inherit");
}
-}
+
+struct ColorSorter
+{
+ bool operator()(ColorCode lhs, ColorCode rhs) const {
+ return
+ support::compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;
+ }
+};
+
+} // namespace anon
GuiCharacter::GuiCharacter(GuiView & lv)
: GuiDialog(lv, "character", qt_("Text Style")), font_(ignore_font, ignore_language),
/////////////////////////////////////////////////////////////////////
+namespace {
+
+struct ColorSorter
+{
+ bool operator()(ColorCode lhs, ColorCode rhs) const {
+ return
+ compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;
+ }
+};
+
+} // namespace anon
+
+
PrefColors::PrefColors(GuiPreferences * form)
: PrefModule(catLookAndFeel, N_("Colors"), form)
{
#ifndef QTHELPERS_H
#define QTHELPERS_H
-#include "ColorSet.h"
#include "Length.h"
-#include "support/lstrings.h"
#include "support/qstring_helpers.h"
#include "support/filetools.h"
#include "qt_i18n.h"
class LengthCombo;
-struct ColorSorter {
- bool operator()(ColorCode lhs, ColorCode rhs) const {
- return support::compare_no_case(lcolor.getGUIName(lhs), lcolor.getGUIName(rhs)) < 0;
- }
-};
-
/// method to get a Length from widgets (LengthCombo)
std::string widgetsToLength(QLineEdit const * input, LengthCombo const * combo);
/// method to get a Length from widgets (QComboBox)