///
std::vector<ColorPair> const getColorData();
+///
+template<class Pair>
+std::vector<typename Pair::second_type> const
+getSecond(std::vector<Pair> const & pr)
+{
+ std::vector<typename Pair::second_type> tmp(pr.size());
+ std::transform(pr.begin(), pr.end(), tmp.begin(),
+ boost::bind(&Pair::second, _1));
+ return tmp;
+}
///
typedef std::pair<docstring, std::string> LanguagePair;
//
/////////////////////////////////////////////////////////////////////
-template<class Pair>
-std::vector<typename Pair::second_type> const
-getSecond(std::vector<Pair> const & pr)
-{
- std::vector<typename Pair::second_type> tmp(pr.size());
- std::transform(pr.begin(), pr.end(), tmp.begin(),
- boost::bind(&Pair::second, _1));
- return tmp;
-}
GuiDocumentDialog::GuiDocumentDialog(GuiDocument * form)
: form_(form), lang_(getSecond(getLanguageData(false)))
return (cit != v.end()) ? int(cit - v.begin()) : 0;
}
-template<class Pair>
-std::vector<typename Pair::second_type> const
-getSecond(std::vector<Pair> const & pr)
-{
- std::vector<typename Pair::second_type> tmp(pr.size());
- std::transform(pr.begin(), pr.end(), tmp.begin(),
- boost::bind(&Pair::second, _1));
- return tmp;
-}
-
void GuiGraphics::update_contents()
{
//
/////////////////////////////////////////////////////////////////////
-template<class Pair>
-std::vector<typename Pair::second_type> const
-getSecond(std::vector<Pair> const & pr)
-{
- std::vector<typename Pair::second_type> tmp(pr.size());
- std::transform(pr.begin(), pr.end(), tmp.begin(),
- boost::bind(&Pair::second, _1));
- return tmp;
-}
-
-
PrefLanguage::PrefLanguage(QWidget * parent)
: PrefModule(_("Language"), 0, parent)
{