#include <QPushButton>
#include <QToolTip>
#include <QCloseEvent>
+#include <QHeaderView>
using namespace std;
using namespace lyx::support;
FileNameList const & buffers = theBufferList().fileNames();
for (FileNameList::const_iterator it = buffers.begin();
it != buffers.end(); ++it) {
- bufferCO->addItem(toqstr(makeDisplayPath(it->absFilename())));
+ bufferCO->addItem(toqstr(makeDisplayPath(it->absFileName())));
}
int const thebuffer = theBufferList().bufferNum(buffer().fileName());
QStringList refsStrings;
QStringList refsCategories;
- refsCategories.append(qt_("No prefix"));
vector<docstring>::const_iterator iter;
for (iter = refs_.begin(); iter != refs_.end(); ++iter) {
QString const lab = toqstr(*iter);
refsCategories.append(pref);
}
}
+ // sort categories case-intensively
+ qSort(refsCategories.begin(), refsCategories.end(),
+ caseInsensitiveLessThan /*defined above*/);
+ refsCategories.insert(0, qt_("<No prefix>"));
if (sortCB->isEnabled() && sortCB->isChecked()) {
if(caseSensitiveCB->isEnabled() && caseSensitiveCB->isChecked())
for (int i = 0; i < refsStrings.size(); ++i) {
QString const ref = refsStrings.at(i);
if ((ref.startsWith(cat + QString(":")))
- || (cat == qt_("No prefix")
+ || (cat == qt_("<No prefix>")
&& !ref.contains(":"))) {
QTreeWidgetItem * child =
new QTreeWidgetItem(item);
bool GuiRef::initialiseParams(std::string const & data)
{
- InsetCommand::string2params("ref", data, params_);
+ InsetCommand::string2params(data, params_);
return true;
}
void GuiRef::dispatchParams()
{
- std::string const lfun = InsetCommand::params2string("ref", params_);
+ std::string const lfun = InsetCommand::params2string(params_);
dispatch(FuncRequest(getLfun(), lfun));
}