mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
* configure.py:
- add new method that records all available alternative programs as opposed to only the first found one. * LyXRC[cpp,h}: * LyXFunc.cpp: - new RCs \bibtex_alternatives and \index_alternatives, holding alternative processors. * GuiPrefs.{cpp, h}: * PrefLatexUi.ui: - UI to select from a list of preconfigures bibliography/index processors. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29568 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
47595faf93
commit
48f36f59e7
@ -178,6 +178,67 @@ def checkProg(description, progs, rc_entry = [], path = [], not_found = ''):
|
|||||||
return ['', not_found]
|
return ['', not_found]
|
||||||
|
|
||||||
|
|
||||||
|
## Searching some useful programs
|
||||||
|
def checkProgAlternatives(description, progs, rc_entry = [], alt_rc_entry = [], path = [], not_found = ''):
|
||||||
|
'''
|
||||||
|
The same as checkProg, but additionally, all found programs will be added
|
||||||
|
as alt_rc_entries
|
||||||
|
'''
|
||||||
|
# one rc entry for each progs plus not_found entry
|
||||||
|
if len(rc_entry) > 1 and len(rc_entry) != len(progs) + 1:
|
||||||
|
logger.error("rc entry should have one item or item for each prog and not_found.")
|
||||||
|
sys.exit(2)
|
||||||
|
# check if alt rcs are given
|
||||||
|
if len(alt_rc_entry) > 1 and len(alt_rc_entry) != len(rc_entry):
|
||||||
|
logger.error("invalid alt_rc_entry specification.")
|
||||||
|
sys.exit(2)
|
||||||
|
logger.info('checking for ' + description + '...')
|
||||||
|
## print '(' + ','.join(progs) + ')',
|
||||||
|
found_prime = False
|
||||||
|
real_ac_dir = ''
|
||||||
|
real_ac_word = not_found
|
||||||
|
for idx in range(len(progs)):
|
||||||
|
# ac_prog may have options, ac_word is the command name
|
||||||
|
ac_prog = progs[idx]
|
||||||
|
ac_word = ac_prog.split(' ')[0]
|
||||||
|
msg = '+checking for "' + ac_word + '"... '
|
||||||
|
path = os.environ["PATH"].split(os.pathsep) + path
|
||||||
|
extlist = ['']
|
||||||
|
if os.environ.has_key("PATHEXT"):
|
||||||
|
extlist = extlist + os.environ["PATHEXT"].split(os.pathsep)
|
||||||
|
found_alt = False
|
||||||
|
for ac_dir in path:
|
||||||
|
for ext in extlist:
|
||||||
|
if os.path.isfile( os.path.join(ac_dir, ac_word + ext) ):
|
||||||
|
logger.info(msg + ' yes')
|
||||||
|
# write rc entries for this command
|
||||||
|
if found_prime == False:
|
||||||
|
if len(rc_entry) == 1:
|
||||||
|
addToRC(rc_entry[0].replace('%%', ac_prog))
|
||||||
|
elif len(rc_entry) > 1:
|
||||||
|
addToRC(rc_entry[idx].replace('%%', ac_prog))
|
||||||
|
real_ac_dir = ac_dir
|
||||||
|
real_ac_word = ac_word
|
||||||
|
found_prime = True
|
||||||
|
if len(alt_rc_entry) == 1:
|
||||||
|
addToRC(alt_rc_entry[0].replace('%%', ac_prog))
|
||||||
|
elif len(alt_rc_entry) > 1:
|
||||||
|
addToRC(alt_rc_entry[idx].replace('%%', ac_prog))
|
||||||
|
found_alt = True
|
||||||
|
break
|
||||||
|
if found_alt:
|
||||||
|
break
|
||||||
|
if found_alt == False:
|
||||||
|
# if not successful
|
||||||
|
logger.info(msg + ' no')
|
||||||
|
if found_prime:
|
||||||
|
return [real_ac_dir, real_ac_word]
|
||||||
|
# write rc entries for 'not found'
|
||||||
|
if len(rc_entry) > 0: # the last one.
|
||||||
|
addToRC(rc_entry[-1].replace('%%', not_found))
|
||||||
|
return ['', not_found]
|
||||||
|
|
||||||
|
|
||||||
def checkViewer(description, progs, rc_entry = [], path = []):
|
def checkViewer(description, progs, rc_entry = [], path = []):
|
||||||
''' The same as checkProg, but for viewers and editors '''
|
''' The same as checkProg, but for viewers and editors '''
|
||||||
return checkProg(description, progs, rc_entry, path, not_found = 'auto')
|
return checkProg(description, progs, rc_entry, path, not_found = 'auto')
|
||||||
@ -599,12 +660,14 @@ def checkOtherEntries():
|
|||||||
''' entries other than Format and Converter '''
|
''' entries other than Format and Converter '''
|
||||||
checkProg('ChkTeX', ['chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38'],
|
checkProg('ChkTeX', ['chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38'],
|
||||||
rc_entry = [ r'\chktex_command "%%"' ])
|
rc_entry = [ r'\chktex_command "%%"' ])
|
||||||
checkProg('BibTeX', ['bibtex'],
|
checkProgAlternatives('BibTeX or alternative programs', ['bibtex', 'bibtex8', 'biber'],
|
||||||
rc_entry = [ r'\bibtex_command "%%"' ])
|
rc_entry = [ r'\bibtex_command "%%"' ],
|
||||||
|
alt_rc_entry = [ r'\bibtex_alternatives "%%"' ])
|
||||||
checkProg('JBibTeX, the Japanese BibTeX', ['jbibtex', 'bibtex'],
|
checkProg('JBibTeX, the Japanese BibTeX', ['jbibtex', 'bibtex'],
|
||||||
rc_entry = [ r'\jbibtex_command "%%"' ])
|
rc_entry = [ r'\jbibtex_command "%%"' ])
|
||||||
checkProg('an index processor', ['texindy', 'makeindex -c -q'],
|
checkProgAlternatives('available index processors', ['texindy', 'makeindex -c -q'],
|
||||||
rc_entry = [ r'\index_command "%%"' ])
|
rc_entry = [ r'\index_command "%%"' ],
|
||||||
|
alt_rc_entry = [ r'\index_alternatives "%%"' ])
|
||||||
checkProg('an index processor appropriate to Japanese', ['mendex -c -q', 'makeindex -c -q'],
|
checkProg('an index processor appropriate to Japanese', ['mendex -c -q', 'makeindex -c -q'],
|
||||||
rc_entry = [ r'\jindex_command "%%"' ])
|
rc_entry = [ r'\jindex_command "%%"' ])
|
||||||
checkProg('the splitindex processor', ['splitindex.pl', 'java splitindex', 'splitindex'],
|
checkProg('the splitindex processor', ['splitindex.pl', 'java splitindex', 'splitindex'],
|
||||||
|
@ -1880,6 +1880,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
|
|||||||
case LyXRC::RC_AUTOSAVE:
|
case LyXRC::RC_AUTOSAVE:
|
||||||
case LyXRC::RC_AUTO_NUMBER:
|
case LyXRC::RC_AUTO_NUMBER:
|
||||||
case LyXRC::RC_BACKUPDIR_PATH:
|
case LyXRC::RC_BACKUPDIR_PATH:
|
||||||
|
case LyXRC::RC_BIBTEX_ALTERNATIVES:
|
||||||
case LyXRC::RC_BIBTEX_COMMAND:
|
case LyXRC::RC_BIBTEX_COMMAND:
|
||||||
case LyXRC::RC_BINDFILE:
|
case LyXRC::RC_BINDFILE:
|
||||||
case LyXRC::RC_CHECKLASTFILES:
|
case LyXRC::RC_CHECKLASTFILES:
|
||||||
@ -1919,6 +1920,7 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
|
|||||||
case LyXRC::RC_FONT_ENCODING:
|
case LyXRC::RC_FONT_ENCODING:
|
||||||
case LyXRC::RC_FORMAT:
|
case LyXRC::RC_FORMAT:
|
||||||
case LyXRC::RC_GROUP_LAYOUTS:
|
case LyXRC::RC_GROUP_LAYOUTS:
|
||||||
|
case LyXRC::RC_INDEX_ALTERNATIVES:
|
||||||
case LyXRC::RC_INDEX_COMMAND:
|
case LyXRC::RC_INDEX_COMMAND:
|
||||||
case LyXRC::RC_JBIBTEX_COMMAND:
|
case LyXRC::RC_JBIBTEX_COMMAND:
|
||||||
case LyXRC::RC_JINDEX_COMMAND:
|
case LyXRC::RC_JINDEX_COMMAND:
|
||||||
|
@ -61,6 +61,7 @@ LexerKeyword lyxrcTags[] = {
|
|||||||
{ "\\autocorrection_math", LyXRC::RC_AUTOCORRECTION_MATH },
|
{ "\\autocorrection_math", LyXRC::RC_AUTOCORRECTION_MATH },
|
||||||
{ "\\autosave", LyXRC::RC_AUTOSAVE },
|
{ "\\autosave", LyXRC::RC_AUTOSAVE },
|
||||||
{ "\\backupdir_path", LyXRC::RC_BACKUPDIR_PATH },
|
{ "\\backupdir_path", LyXRC::RC_BACKUPDIR_PATH },
|
||||||
|
{ "\\bibtex_alternatives", LyXRC::RC_BIBTEX_ALTERNATIVES },
|
||||||
{ "\\bibtex_command", LyXRC::RC_BIBTEX_COMMAND },
|
{ "\\bibtex_command", LyXRC::RC_BIBTEX_COMMAND },
|
||||||
{ "\\bind_file", LyXRC::RC_BINDFILE },
|
{ "\\bind_file", LyXRC::RC_BINDFILE },
|
||||||
{ "\\check_lastfiles", LyXRC::RC_CHECKLASTFILES },
|
{ "\\check_lastfiles", LyXRC::RC_CHECKLASTFILES },
|
||||||
@ -97,6 +98,7 @@ LexerKeyword lyxrcTags[] = {
|
|||||||
{ "\\fullscreen_width", LyXRC::RC_FULL_SCREEN_WIDTH },
|
{ "\\fullscreen_width", LyXRC::RC_FULL_SCREEN_WIDTH },
|
||||||
{ "\\group_layouts", LyXRC::RC_GROUP_LAYOUTS },
|
{ "\\group_layouts", LyXRC::RC_GROUP_LAYOUTS },
|
||||||
{ "\\gui_language", LyXRC::RC_GUI_LANGUAGE },
|
{ "\\gui_language", LyXRC::RC_GUI_LANGUAGE },
|
||||||
|
{ "\\index_alternatives", LyXRC::RC_INDEX_ALTERNATIVES },
|
||||||
{ "\\index_command", LyXRC::RC_INDEX_COMMAND },
|
{ "\\index_command", LyXRC::RC_INDEX_COMMAND },
|
||||||
{ "\\input", LyXRC::RC_INPUT },
|
{ "\\input", LyXRC::RC_INPUT },
|
||||||
{ "\\jbibtex_command", LyXRC::RC_JBIBTEX_COMMAND },
|
{ "\\jbibtex_command", LyXRC::RC_JBIBTEX_COMMAND },
|
||||||
@ -592,6 +594,12 @@ int LyXRC::read(Lexer & lexrc)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case RC_BIBTEX_ALTERNATIVES:
|
||||||
|
if (lexrc.next(true)) {
|
||||||
|
bibtex_alternatives.push_back(lexrc.getString());
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case RC_BIBTEX_COMMAND:
|
case RC_BIBTEX_COMMAND:
|
||||||
if (lexrc.next(true)) {
|
if (lexrc.next(true)) {
|
||||||
bibtex_command = lexrc.getString();
|
bibtex_command = lexrc.getString();
|
||||||
@ -604,6 +612,12 @@ int LyXRC::read(Lexer & lexrc)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case RC_INDEX_ALTERNATIVES:
|
||||||
|
if (lexrc.next(true)) {
|
||||||
|
index_alternatives.push_back(lexrc.getString());
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case RC_INDEX_COMMAND:
|
case RC_INDEX_COMMAND:
|
||||||
if (lexrc.next(true)) {
|
if (lexrc.next(true)) {
|
||||||
index_command = lexrc.getString();
|
index_command = lexrc.getString();
|
||||||
@ -1351,6 +1365,15 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
|
|||||||
}
|
}
|
||||||
if (tag != RC_LAST)
|
if (tag != RC_LAST)
|
||||||
break;
|
break;
|
||||||
|
case RC_BIBTEX_ALTERNATIVES:
|
||||||
|
if (ignore_system_lyxrc ||
|
||||||
|
bibtex_alternatives != system_lyxrc.bibtex_alternatives) {
|
||||||
|
for (vector<string>::const_iterator it = bibtex_alternatives.begin();
|
||||||
|
it != bibtex_alternatives.end(); ++it)
|
||||||
|
os << "\\bibtex_alternatives \"" << *it << "\"\n";
|
||||||
|
}
|
||||||
|
if (tag != RC_LAST)
|
||||||
|
break;
|
||||||
case RC_BIBTEX_COMMAND:
|
case RC_BIBTEX_COMMAND:
|
||||||
if (ignore_system_lyxrc ||
|
if (ignore_system_lyxrc ||
|
||||||
bibtex_command != system_lyxrc.bibtex_command) {
|
bibtex_command != system_lyxrc.bibtex_command) {
|
||||||
@ -1365,6 +1388,15 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
|
|||||||
}
|
}
|
||||||
if (tag != RC_LAST)
|
if (tag != RC_LAST)
|
||||||
break;
|
break;
|
||||||
|
case RC_INDEX_ALTERNATIVES:
|
||||||
|
if (ignore_system_lyxrc ||
|
||||||
|
index_alternatives != system_lyxrc.index_alternatives) {
|
||||||
|
for (vector<string>::const_iterator it = index_alternatives.begin();
|
||||||
|
it != index_alternatives.end(); ++it)
|
||||||
|
os << "\\index_alternatives \"" << *it << "\"\n";
|
||||||
|
}
|
||||||
|
if (tag != RC_LAST)
|
||||||
|
break;
|
||||||
case RC_INDEX_COMMAND:
|
case RC_INDEX_COMMAND:
|
||||||
if (ignore_system_lyxrc ||
|
if (ignore_system_lyxrc ||
|
||||||
index_command != system_lyxrc.index_command) {
|
index_command != system_lyxrc.index_command) {
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include "support/strfwd.h"
|
#include "support/strfwd.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
|
||||||
namespace lyx {
|
namespace lyx {
|
||||||
@ -46,6 +47,7 @@ public:
|
|||||||
RC_AUTOSAVE,
|
RC_AUTOSAVE,
|
||||||
RC_AUTO_NUMBER,
|
RC_AUTO_NUMBER,
|
||||||
RC_BACKUPDIR_PATH,
|
RC_BACKUPDIR_PATH,
|
||||||
|
RC_BIBTEX_ALTERNATIVES,
|
||||||
RC_BIBTEX_COMMAND,
|
RC_BIBTEX_COMMAND,
|
||||||
RC_BINDFILE,
|
RC_BINDFILE,
|
||||||
RC_CHECKLASTFILES,
|
RC_CHECKLASTFILES,
|
||||||
@ -84,6 +86,7 @@ public:
|
|||||||
RC_FULL_SCREEN_WIDTH,
|
RC_FULL_SCREEN_WIDTH,
|
||||||
RC_GEOMETRY_SESSION,
|
RC_GEOMETRY_SESSION,
|
||||||
RC_GROUP_LAYOUTS,
|
RC_GROUP_LAYOUTS,
|
||||||
|
RC_INDEX_ALTERNATIVES,
|
||||||
RC_INDEX_COMMAND,
|
RC_INDEX_COMMAND,
|
||||||
RC_INPUT,
|
RC_INPUT,
|
||||||
RC_JBIBTEX_COMMAND,
|
RC_JBIBTEX_COMMAND,
|
||||||
@ -245,10 +248,14 @@ public:
|
|||||||
PAPER_SIZE default_papersize;
|
PAPER_SIZE default_papersize;
|
||||||
/// command to run chktex incl. options
|
/// command to run chktex incl. options
|
||||||
std::string chktex_command;
|
std::string chktex_command;
|
||||||
|
/// all available commands to run bibtex incl. options
|
||||||
|
std::vector<std::string> bibtex_alternatives;
|
||||||
/// command to run bibtex incl. options
|
/// command to run bibtex incl. options
|
||||||
std::string bibtex_command;
|
std::string bibtex_command;
|
||||||
/// command to run japanese bibtex incl. options
|
/// command to run japanese bibtex incl. options
|
||||||
std::string jbibtex_command;
|
std::string jbibtex_command;
|
||||||
|
/// all available index commands incl. options
|
||||||
|
std::vector<std::string> index_alternatives;
|
||||||
/// command to run makeindex incl. options or other index programs
|
/// command to run makeindex incl. options or other index programs
|
||||||
std::string index_command;
|
std::string index_command;
|
||||||
/// command to run japanese index program incl. options
|
/// command to run japanese index program incl. options
|
||||||
|
@ -569,10 +569,14 @@ PrefLatex::PrefLatex(GuiPreferences * form)
|
|||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
connect(latexChecktexED, SIGNAL(textChanged(QString)),
|
connect(latexChecktexED, SIGNAL(textChanged(QString)),
|
||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
|
connect(latexBibtexCO, SIGNAL(activated(int)),
|
||||||
|
this, SIGNAL(changed()));
|
||||||
connect(latexBibtexED, SIGNAL(textChanged(QString)),
|
connect(latexBibtexED, SIGNAL(textChanged(QString)),
|
||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
connect(latexJBibtexED, SIGNAL(textChanged(QString)),
|
connect(latexJBibtexED, SIGNAL(textChanged(QString)),
|
||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
|
connect(latexIndexCO, SIGNAL(activated(int)),
|
||||||
|
this, SIGNAL(changed()));
|
||||||
connect(latexIndexED, SIGNAL(textChanged(QString)),
|
connect(latexIndexED, SIGNAL(textChanged(QString)),
|
||||||
this, SIGNAL(changed()));
|
this, SIGNAL(changed()));
|
||||||
connect(latexJIndexED, SIGNAL(textChanged(QString)),
|
connect(latexJIndexED, SIGNAL(textChanged(QString)),
|
||||||
@ -594,13 +598,77 @@ PrefLatex::PrefLatex(GuiPreferences * form)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void PrefLatex::on_latexBibtexCO_activated(int n)
|
||||||
|
{
|
||||||
|
QString const bibtex = latexBibtexCO->itemData(n).toString();
|
||||||
|
if (bibtex.isEmpty()) {
|
||||||
|
latexBibtexED->clear();
|
||||||
|
latexBibtexOptionsLA->setText(qt_("C&ommand:"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
for (vector<string>::const_iterator it = bibtex_alternatives.begin();
|
||||||
|
it != bibtex_alternatives.end(); ++it) {
|
||||||
|
QString const bib = toqstr(*it);
|
||||||
|
int ind = bib.indexOf(" ");
|
||||||
|
QString sel_command = bib.left(ind);
|
||||||
|
QString sel_options = bib;
|
||||||
|
sel_options.remove(0, ind);
|
||||||
|
if (bibtex == sel_command) {
|
||||||
|
if (ind == -1)
|
||||||
|
latexBibtexED->clear();
|
||||||
|
else
|
||||||
|
latexBibtexED->setText(sel_options.trimmed());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
latexBibtexOptionsLA->setText(qt_("&Options:"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void PrefLatex::on_latexIndexCO_activated(int n)
|
||||||
|
{
|
||||||
|
QString const index = latexIndexCO->itemData(n).toString();
|
||||||
|
if (index.isEmpty()) {
|
||||||
|
latexIndexED->clear();
|
||||||
|
latexIndexOptionsLA->setText(qt_("Co&mmand:"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
for (vector<string>::const_iterator it = index_alternatives.begin();
|
||||||
|
it != index_alternatives.end(); ++it) {
|
||||||
|
QString const idx = toqstr(*it);
|
||||||
|
int ind = idx.indexOf(" ");
|
||||||
|
QString sel_command = idx.left(ind);
|
||||||
|
QString sel_options = idx;
|
||||||
|
sel_options.remove(0, ind);
|
||||||
|
if (index == sel_command) {
|
||||||
|
if (ind == -1)
|
||||||
|
latexIndexED->clear();
|
||||||
|
else
|
||||||
|
latexIndexED->setText(sel_options.trimmed());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
latexIndexOptionsLA->setText(qt_("Op&tions:"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void PrefLatex::apply(LyXRC & rc) const
|
void PrefLatex::apply(LyXRC & rc) const
|
||||||
{
|
{
|
||||||
|
QString const bibtex = latexBibtexCO->itemData(
|
||||||
|
latexBibtexCO->currentIndex()).toString();
|
||||||
|
if (bibtex.isEmpty())
|
||||||
|
rc.bibtex_command = fromqstr(latexBibtexED->text());
|
||||||
|
else
|
||||||
|
rc.bibtex_command = fromqstr(bibtex) + " " + fromqstr(latexBibtexED->text());
|
||||||
|
|
||||||
|
QString const index = latexIndexCO->itemData(
|
||||||
|
latexIndexCO->currentIndex()).toString();
|
||||||
|
if (index.isEmpty())
|
||||||
|
rc.index_command = fromqstr(latexIndexED->text());
|
||||||
|
else
|
||||||
|
rc.index_command = fromqstr(index) + " " + fromqstr(latexIndexED->text());
|
||||||
|
|
||||||
rc.fontenc = fromqstr(latexEncodingED->text());
|
rc.fontenc = fromqstr(latexEncodingED->text());
|
||||||
rc.chktex_command = fromqstr(latexChecktexED->text());
|
rc.chktex_command = fromqstr(latexChecktexED->text());
|
||||||
rc.bibtex_command = fromqstr(latexBibtexED->text());
|
|
||||||
rc.jbibtex_command = fromqstr(latexJBibtexED->text());
|
rc.jbibtex_command = fromqstr(latexJBibtexED->text());
|
||||||
rc.index_command = fromqstr(latexIndexED->text());
|
|
||||||
rc.jindex_command = fromqstr(latexJIndexED->text());
|
rc.jindex_command = fromqstr(latexJIndexED->text());
|
||||||
rc.nomencl_command = fromqstr(latexNomenclED->text());
|
rc.nomencl_command = fromqstr(latexNomenclED->text());
|
||||||
rc.auto_reset_options = latexAutoresetCB->isChecked();
|
rc.auto_reset_options = latexAutoresetCB->isChecked();
|
||||||
@ -615,11 +683,65 @@ void PrefLatex::apply(LyXRC & rc) const
|
|||||||
|
|
||||||
void PrefLatex::update(LyXRC const & rc)
|
void PrefLatex::update(LyXRC const & rc)
|
||||||
{
|
{
|
||||||
|
latexBibtexCO->clear();
|
||||||
|
|
||||||
|
latexBibtexCO->addItem(qt_("Custom"), QString());
|
||||||
|
for (vector<string>::const_iterator it = rc.bibtex_alternatives.begin();
|
||||||
|
it != rc.bibtex_alternatives.end(); ++it) {
|
||||||
|
QString const command = toqstr(*it).left(toqstr(*it).indexOf(" "));
|
||||||
|
latexBibtexCO->addItem(command, command);
|
||||||
|
}
|
||||||
|
|
||||||
|
bibtex_alternatives = rc.bibtex_alternatives;
|
||||||
|
|
||||||
|
QString const bib = toqstr(rc.bibtex_command);
|
||||||
|
int ind = bib.indexOf(" ");
|
||||||
|
QString sel_command = bib.left(ind);
|
||||||
|
QString sel_options = bib;
|
||||||
|
sel_options.remove(0, ind);
|
||||||
|
|
||||||
|
int pos = latexBibtexCO->findData(sel_command);
|
||||||
|
if (pos != -1) {
|
||||||
|
latexBibtexCO->setCurrentIndex(pos);
|
||||||
|
latexBibtexED->setText(sel_options.trimmed());
|
||||||
|
latexBibtexOptionsLA->setText(qt_("&Options:"));
|
||||||
|
} else {
|
||||||
|
latexBibtexED->setText(toqstr(rc.bibtex_command));
|
||||||
|
latexBibtexCO->setCurrentIndex(0);
|
||||||
|
latexBibtexOptionsLA->setText(qt_("C&ommand:"));
|
||||||
|
}
|
||||||
|
|
||||||
|
latexIndexCO->clear();
|
||||||
|
|
||||||
|
latexIndexCO->addItem(qt_("Custom"), QString());
|
||||||
|
for (vector<string>::const_iterator it = rc.index_alternatives.begin();
|
||||||
|
it != rc.index_alternatives.end(); ++it) {
|
||||||
|
QString const command = toqstr(*it).left(toqstr(*it).indexOf(" "));
|
||||||
|
latexIndexCO->addItem(command, command);
|
||||||
|
}
|
||||||
|
|
||||||
|
index_alternatives = rc.index_alternatives;
|
||||||
|
|
||||||
|
QString const idx = toqstr(rc.index_command);
|
||||||
|
ind = idx.indexOf(" ");
|
||||||
|
sel_command = idx.left(ind);
|
||||||
|
sel_options = idx;
|
||||||
|
sel_options.remove(0, ind);
|
||||||
|
|
||||||
|
pos = latexIndexCO->findData(sel_command);
|
||||||
|
if (pos != -1) {
|
||||||
|
latexIndexCO->setCurrentIndex(pos);
|
||||||
|
latexIndexED->setText(sel_options.trimmed());
|
||||||
|
latexIndexOptionsLA->setText(qt_("Op&tions:"));
|
||||||
|
} else {
|
||||||
|
latexIndexED->setText(toqstr(rc.index_command));
|
||||||
|
latexIndexCO->setCurrentIndex(0);
|
||||||
|
latexIndexOptionsLA->setText(qt_("Co&mmand:"));
|
||||||
|
}
|
||||||
|
|
||||||
latexEncodingED->setText(toqstr(rc.fontenc));
|
latexEncodingED->setText(toqstr(rc.fontenc));
|
||||||
latexChecktexED->setText(toqstr(rc.chktex_command));
|
latexChecktexED->setText(toqstr(rc.chktex_command));
|
||||||
latexBibtexED->setText(toqstr(rc.bibtex_command));
|
|
||||||
latexJBibtexED->setText(toqstr(rc.jbibtex_command));
|
latexJBibtexED->setText(toqstr(rc.jbibtex_command));
|
||||||
latexIndexED->setText(toqstr(rc.index_command));
|
|
||||||
latexJIndexED->setText(toqstr(rc.jindex_command));
|
latexJIndexED->setText(toqstr(rc.jindex_command));
|
||||||
latexNomenclED->setText(toqstr(rc.nomencl_command));
|
latexNomenclED->setText(toqstr(rc.nomencl_command));
|
||||||
latexAutoresetCB->setChecked(rc.auto_reset_options);
|
latexAutoresetCB->setChecked(rc.auto_reset_options);
|
||||||
|
@ -221,6 +221,16 @@ public:
|
|||||||
|
|
||||||
virtual void apply(LyXRC & rc) const;
|
virtual void apply(LyXRC & rc) const;
|
||||||
virtual void update(LyXRC const & rc);
|
virtual void update(LyXRC const & rc);
|
||||||
|
|
||||||
|
private Q_SLOTS:
|
||||||
|
void on_latexBibtexCO_activated(int n);
|
||||||
|
void on_latexIndexCO_activated(int n);
|
||||||
|
|
||||||
|
private:
|
||||||
|
///
|
||||||
|
std::vector<std::string> bibtex_alternatives;
|
||||||
|
///
|
||||||
|
std::vector<std::string> index_alternatives;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,47 +5,54 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>427</width>
|
<width>489</width>
|
||||||
<height>367</height>
|
<height>636</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="windowTitle" >
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout" name="gridLayout_3" >
|
||||||
<property name="margin" >
|
<item row="0" column="0" colspan="2" >
|
||||||
<number>9</number>
|
<widget class="QLabel" name="latexEncodingLA" >
|
||||||
</property>
|
<property name="text" >
|
||||||
<property name="spacing" >
|
<string>Te&X encoding:</string>
|
||||||
<number>6</number>
|
</property>
|
||||||
</property>
|
<property name="buddy" >
|
||||||
<item row="11" column="0" colspan="3" >
|
<cstring>latexEncodingED</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2" >
|
||||||
|
<widget class="QLineEdit" name="latexEncodingED" />
|
||||||
|
</item>
|
||||||
|
<item rowspan="2" row="0" column="3" >
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeType" >
|
<property name="sizeType" >
|
||||||
<enum>QSizePolicy::Expanding</enum>
|
<enum>QSizePolicy::Expanding</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" stdset="0" >
|
||||||
<size>
|
<size>
|
||||||
<width>409</width>
|
<width>21</width>
|
||||||
<height>21</height>
|
<height>52</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="10" column="0" colspan="3" >
|
<item row="1" column="0" colspan="2" >
|
||||||
<widget class="QCheckBox" name="latexAutoresetCB" >
|
<widget class="QLabel" name="latexPaperSizeLA" >
|
||||||
<property name="toolTip" >
|
|
||||||
<string>Set class options to default on class change</string>
|
|
||||||
</property>
|
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>R&eset class options when document class changes</string>
|
<string>Default paper si&ze:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy" >
|
||||||
|
<cstring>latexPaperSizeCO</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1" >
|
<item row="1" column="2" >
|
||||||
<widget class="QComboBox" name="latexPaperSizeCO" >
|
<widget class="QComboBox" name="latexPaperSizeCO" >
|
||||||
<item>
|
<item>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
@ -89,80 +96,174 @@
|
|||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1" >
|
<item row="2" column="0" colspan="2" >
|
||||||
<widget class="QLineEdit" name="latexEncodingED" />
|
<widget class="QLabel" name="latexDviPaperLA" >
|
||||||
</item>
|
|
||||||
<item rowspan="2" row="0" column="2" >
|
|
||||||
<spacer>
|
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeType" >
|
|
||||||
<enum>QSizePolicy::Expanding</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" >
|
|
||||||
<size>
|
|
||||||
<width>21</width>
|
|
||||||
<height>52</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" >
|
|
||||||
<widget class="QLabel" name="latexChecktexLA" >
|
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Chec&kTeX command:</string>
|
<string>&DVI viewer paper size options:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy" >
|
||||||
<cstring>latexChecktexED</cstring>
|
<cstring>latexDviPaperED</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1" colspan="2" >
|
<item row="2" column="2" colspan="2" >
|
||||||
<widget class="QLineEdit" name="latexChecktexED" >
|
<widget class="QLineEdit" name="latexDviPaperED" >
|
||||||
<property name="toolTip" >
|
<property name="toolTip" >
|
||||||
<string>CheckTeX start options and flags</string>
|
<string>Optional paper size flag (-paper) for some DVI viewers</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" >
|
<item row="3" column="0" colspan="4" >
|
||||||
<widget class="QLabel" name="latexEncodingLA" >
|
<widget class="QGroupBox" name="bibtexGB" >
|
||||||
<property name="text" >
|
<property name="title" >
|
||||||
<string>Te&X encoding:</string>
|
<string>Bibliography generation</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="flat" >
|
||||||
<cstring>latexEncodingED</cstring>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout" >
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="latexBibtexLA" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>&Processor:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy" >
|
||||||
|
<cstring>latexBibtexCO</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="latexBibtexCO" />
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="latexBibtexOptionsLA" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>&Options:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy" >
|
||||||
|
<cstring>latexBibtexED</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="latexBibtexED" >
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>BibTeX command and options</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" >
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_3" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="latexJBibtexLA" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Processor for &Japanese:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy" >
|
||||||
|
<cstring>latexJBibtexED</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="latexJBibtexED" >
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>Specific BibTeX command and options for pLaTeX (Japanese)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
<zorder>latexBibtexLA</zorder>
|
||||||
|
<zorder>latexBibtexCO</zorder>
|
||||||
|
<zorder>latexBibtexED</zorder>
|
||||||
|
<zorder>latexBibtexOptionsLA</zorder>
|
||||||
|
<zorder>latexJBibtexED</zorder>
|
||||||
|
<zorder>latexJBibtexLA</zorder>
|
||||||
|
<zorder>latexDviPaperED</zorder>
|
||||||
|
<zorder>latexDviPaperLA</zorder>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="4" column="0" colspan="4" >
|
||||||
<widget class="QLabel" name="latexPaperSizeLA" >
|
<widget class="QGroupBox" name="indexGB" >
|
||||||
<property name="text" >
|
<property name="title" >
|
||||||
<string>Default paper si&ze:</string>
|
<string>Index generation</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="flat" >
|
||||||
<cstring>latexPaperSizeCO</cstring>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2" >
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_4" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="latexIndexLA" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Pr&ocessor:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy" >
|
||||||
|
<cstring>latexIndexCO</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="latexIndexCO" />
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_5" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="latexIndexOptionsLA" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Op&tions:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy" >
|
||||||
|
<cstring>latexIndexED</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="latexIndexED" >
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>Index command and options (makeindex, xindy)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" >
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_6" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="latexJIndexLA" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Processor for Ja&panese:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy" >
|
||||||
|
<cstring>latexJIndexED</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="latexJIndexED" >
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>Specific index command and options for pLaTeX (Japanese)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1" colspan="2" >
|
<item row="5" column="0" >
|
||||||
<widget class="QLineEdit" name="latexBibtexED" >
|
|
||||||
<property name="toolTip" >
|
|
||||||
<string>BibTeX command and options</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0" >
|
|
||||||
<widget class="QLabel" name="latexBibtexLA" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>&BibTeX command:</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy" >
|
|
||||||
<cstring>latexBibtexED</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="7" column="0" >
|
|
||||||
<widget class="QLabel" name="latexNomenclLA" >
|
<widget class="QLabel" name="latexNomenclLA" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>&Nomenclature command:</string>
|
<string>&Nomenclature command:</string>
|
||||||
@ -172,7 +273,31 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="9" column="0" colspan="3" >
|
<item row="5" column="1" colspan="3" >
|
||||||
|
<widget class="QLineEdit" name="latexNomenclED" >
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>Command and options for nomencl (usually makeindex)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0" >
|
||||||
|
<widget class="QLabel" name="latexChecktexLA" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Chec&kTeX command:</string>
|
||||||
|
</property>
|
||||||
|
<property name="buddy" >
|
||||||
|
<cstring>latexChecktexED</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="1" colspan="3" >
|
||||||
|
<widget class="QLineEdit" name="latexChecktexED" >
|
||||||
|
<property name="toolTip" >
|
||||||
|
<string>CheckTeX start options and flags</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="0" colspan="4" >
|
||||||
<widget class="QCheckBox" name="pathCB" >
|
<widget class="QCheckBox" name="pathCB" >
|
||||||
<property name="enabled" >
|
<property name="enabled" >
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
@ -191,80 +316,31 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="1" colspan="2" >
|
<item row="8" column="0" colspan="4" >
|
||||||
<widget class="QLineEdit" name="latexNomenclED" >
|
<widget class="QCheckBox" name="latexAutoresetCB" >
|
||||||
<property name="toolTip" >
|
<property name="toolTip" >
|
||||||
<string>Command and options for nomencl (usually makeindex)</string>
|
<string>Set class options to default on class change</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1" colspan="2" >
|
|
||||||
<widget class="QLineEdit" name="latexIndexED" >
|
|
||||||
<property name="toolTip" >
|
|
||||||
<string>Index command and options (makeindex, xindy)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0" >
|
|
||||||
<widget class="QLabel" name="latexIndexLA" >
|
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>&Index command:</string>
|
<string>R&eset class options when document class changes</string>
|
||||||
</property>
|
|
||||||
<property name="buddy" >
|
|
||||||
<cstring>latexIndexED</cstring>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="1" colspan="2" >
|
<item row="9" column="0" colspan="4" >
|
||||||
<widget class="QLineEdit" name="latexJIndexED" >
|
<spacer>
|
||||||
<property name="toolTip" >
|
<property name="orientation" >
|
||||||
<string>Specific index command and options for pLaTeX (Japanese)</string>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="sizeType" >
|
||||||
</item>
|
<enum>QSizePolicy::Expanding</enum>
|
||||||
<item row="4" column="1" colspan="2" >
|
|
||||||
<widget class="QLineEdit" name="latexJBibtexED" >
|
|
||||||
<property name="toolTip" >
|
|
||||||
<string>Specific BibTeX command and options for pLaTeX (Japanese)</string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="sizeHint" stdset="0" >
|
||||||
</item>
|
<size>
|
||||||
<item row="4" column="0" >
|
<width>409</width>
|
||||||
<widget class="QLabel" name="latexJBibtexLA" >
|
<height>21</height>
|
||||||
<property name="text" >
|
</size>
|
||||||
<string>BibTeX command (&Japanese):</string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
</spacer>
|
||||||
<cstring>latexJBibtexED</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="0" >
|
|
||||||
<widget class="QLabel" name="latexJIndexLA" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Index command (Ja&panese):</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy" >
|
|
||||||
<cstring>latexJIndexED</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="1" colspan="2" >
|
|
||||||
<widget class="QLineEdit" name="latexDviPaperED" >
|
|
||||||
<property name="toolTip" >
|
|
||||||
<string>Optional paper size flag (-paper) for some DVI viewers</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0" >
|
|
||||||
<widget class="QLabel" name="latexDviPaperLA" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>&DVI viewer paper size options:</string>
|
|
||||||
</property>
|
|
||||||
<property name="buddy" >
|
|
||||||
<cstring>latexDviPaperED</cstring>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user