#include "Format.h"
#include "FuncRequest.h"
#include "LyXRC.h"
-#include "qt_helpers.h"
+#include "support/qstring_helpers.h"
#include "support/filetools.h"
-#include "support/lstrings.h"
#include <QListWidget>
#include <QPushButton>
formatLW->addItem(toqstr(*it));
}
- commandCO->addItem(toqstr(command_));
+ commandCO->addItem(command_);
}
{
int const line = formatLW->currentRow();
- if (line < 0 || line > int(formatLW->count()))
+ if (line < 0 || line > formatLW->count())
return;
format_ = all_formats_[line];
- command_ = trim(fromqstr(commandCO->currentText()));
+ command_ = commandCO->currentText().trimmed();
}
bool GuiSendTo::initialiseParams(string const &)
{
format_ = 0;
- command_ = lyxrc.custom_export_command;
+ command_ = toqstr(lyxrc.custom_export_command);
return true;
}
void GuiSendTo::dispatchParams()
{
- if (command_.empty() || !format_ || format_->name().empty())
+ if (command_.isEmpty() || !format_ || format_->name().empty())
return;
- string const data = format_->name() + " " + command_;
+ string const data = format_->name() + " " + fromqstr(command_);
dispatch(FuncRequest(getLfun(), data));
}
///
Format const * format_;
///
- std::string command_;
+ QString command_;
};
} // namespace frontend
#include "ui_SymbolsUi.h"
#include <map>
+#include <string>
#include <vector>
namespace lyx {
void dispatchParams();
void enableView(bool enable);
bool isBufferDependent() const { return true; }
- virtual FuncCode getLfun() const { return LFUN_SELF_INSERT; }
+ FuncCode getLfun() const { return LFUN_SELF_INSERT; }
//@}
public Q_SLOTS:
GuiPainter.h \
GuiToolbars.h \
LaTeXHighlighter.h \
+ qt_i18n.h \
qt_helpers.h
MOCHEADER = \
#include "Length.h"
#include "support/qstring_helpers.h"
#include "support/strfwd.h"
+#include "qt_i18n.h"
class QComboBox;
class QLineEdit;
} // namespace frontend
-/**
-* qt_ - i18nize string and convert to QString
- *
- * Use this in qt4/ instead of _()
- */
-QString const qt_(char const * str, const char * comment = 0);
-
-
/**
* qt_ - i18nize string and convert to QString
*
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</layout>
</widget>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>bibLW</tabstop>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>addBibPB</tabstop>
<tabstop>applyPB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>branchCO</tabstop>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</layout>
</widget>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>changeTB</tabstop>
<tabstop>closePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>cancelPB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>closePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<customwidgets>
<customwidget>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>errorsLW</tabstop>
<tabstop>closePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</layout>
</widget>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<customwidgets>
<customwidget>
<tabstop>fontOsfCB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>displayscale</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>keepCB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>closePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>closePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>infoML</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</layout>
</widget>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>encodingCO</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections>
<tabstop>listingsED</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>closePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>footskipLE</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<customwidgets>
<customwidget>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>amsautoCB</tabstop>
<tabstop>closePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>closePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>tocSL</tabstop>
<tabstop>facingPagesCB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>applyPB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</layout>
</widget>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</layout>
</widget>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>converterRemovePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>instantPreviewCO</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>macroEditStyleCO</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>copierED</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>nameED</tabstop>
<tabstop>mouseWheelSpeedSB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>markForeignCB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections>
<tabstop>latexAutoresetCB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>tempDirPB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</layout>
</widget>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>printerSpoolPrefixED</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>screenHugerED</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>newPB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>inputEncodingCB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>useBundledCB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<customwidgets>
<customwidget>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>printerRB</tabstop>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>bufferCO</tabstop>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>findCO</tabstop>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>formatLW</tabstop>
<tabstop>cancelPB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>wordED</tabstop>
<tabstop>closePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>rowsSB</tabstop>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<customwidgets>
<customwidget>
<tabstop>closePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>twoColumnCB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
</widget>
<pixmapfunction></pixmapfunction>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<tabstops>
<tabstop>entryED</tabstop>
<tabstop>depthSL</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>keepCB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>updatePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections/>
<tabstop>restorePB</tabstop>
</tabstops>
<includes>
- <include location="local" >qt_helpers.h</include>
+ <include location="local" >qt_i18n.h</include>
</includes>
<resources/>
<connections>