mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Debloatarise.
moz src 196 size lyx.o lyx text data bss dec hex filename 4517528 150224 28228 4695980 47a7ac lyx.o 4482094 150280 28228 4660602 471d7a lyx There's undoubtedly more. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5666 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ebac08df7f
commit
7248190d64
@ -1,3 +1,12 @@
|
||||
2002-11-18 John Levon <levon@movementarian.org>
|
||||
|
||||
* ui/Makefile.am:
|
||||
* moc/Makefile.am:
|
||||
* ui/moc/Makefile.am:
|
||||
* Makefile.am: define no translation
|
||||
|
||||
* QDocument.C: avoid QBloatList
|
||||
|
||||
2002-11-17 John Levon <levon@movementarian.org>
|
||||
|
||||
* ui/QPrefScreenFontsModule.ui:
|
||||
|
@ -12,7 +12,7 @@ INCLUDES = -I$(top_srcdir)/src/ -I$(top_srcdir)/src/frontends/ \
|
||||
$(FRONTEND_INCLUDES) $(BOOST_INCLUDES) \
|
||||
-I$(top_srcdir)/src/frontends/controllers
|
||||
|
||||
AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
|
||||
AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION
|
||||
|
||||
include $(srcdir)/Makefile.dialogs
|
||||
|
||||
|
@ -106,11 +106,11 @@ void QDocument::build_dialog()
|
||||
}
|
||||
|
||||
// paper
|
||||
QStringList papersize_;
|
||||
papersize_ << _("Default") << _("Custom") << _("US letter") << _("US legal")
|
||||
<< _("US executive") << _("A3") << _("A4") << _("A5")
|
||||
<< _("B3") << _("B4") << _("B5");
|
||||
dialog_->paperModule->papersizeCO->insertStringList(papersize_);
|
||||
char const * sizes[] = {
|
||||
_("Default") , _("Custom") , _("US letter") , _("US legal")
|
||||
, _("US executive") , _("A3") , _("A4") , _("A5")
|
||||
, _("B3") , _("B4") , _("B5") };
|
||||
dialog_->paperModule->papersizeCO->insertStrList(sizes);
|
||||
|
||||
// layout
|
||||
for (LyXTextClassList::const_iterator cit = textclasslist.begin();
|
||||
@ -450,20 +450,15 @@ void QDocument::update_contents()
|
||||
params.user_defined_bullets[3].getSize() + 1);
|
||||
|
||||
// packages
|
||||
QStringList enc;
|
||||
enc << "default" << "auto" << "latin1" << "latin2" << "latin3" <<
|
||||
"latin4" << "latin5" << "latin9" << "koi8-r" << "koi8-u" <<
|
||||
"cp866" << "cp1251" << "iso88595" << "pt154";
|
||||
int pos2 = 0;
|
||||
for (QStringList::Iterator it = enc.begin();
|
||||
it!=enc.end(); ++it) {
|
||||
if (*it == params.inputenc.c_str()) {
|
||||
dialog_->packagesModule->encodingCO->setCurrentItem(pos2);
|
||||
}
|
||||
++pos2;
|
||||
char const * enc[] = {
|
||||
"default" , "auto" , "latin1" , "latin2" , "latin3" ,
|
||||
"latin4" , "latin5" , "latin9" , "koi8-r" , "koi8-u" ,
|
||||
"cp866" , "cp1251" , "iso88595" , "pt154" };
|
||||
for (size_t i = 0; i < sizeof(enc)/sizeof(char *); ++i) {
|
||||
if (params.inputenc == enc[i])
|
||||
dialog_->packagesModule->encodingCO->setCurrentItem(i);
|
||||
}
|
||||
|
||||
|
||||
QString text = params.graphicsDriver.c_str();
|
||||
int nitem = dialog_->packagesModule->psdriverCO->count();
|
||||
for (int n = 0; n < nitem ; ++n) {
|
||||
|
@ -348,17 +348,17 @@ void QDocumentDialog::enableSkip(bool skip)
|
||||
|
||||
void QDocumentDialog::setMargins(int papersize)
|
||||
{
|
||||
QStringList a4only;
|
||||
QStringList normal;
|
||||
a4only << _("Small Margins") << _("Very small Margins")
|
||||
<< _("Very wide Margins ");
|
||||
normal << _("Default") << _("Custom");
|
||||
|
||||
const char * a4only[] = {
|
||||
_("Small Margins"), _("Very small Margins"),
|
||||
_("Very wide Margins ") };
|
||||
const char * normal[] = {
|
||||
_("Default"), _("Custom") };
|
||||
|
||||
int olditem = marginsModule->marginCO->currentItem();
|
||||
marginsModule->marginCO->clear();
|
||||
marginsModule->marginCO->insertStringList(normal);
|
||||
marginsModule->marginCO->insertStrList(normal);
|
||||
if (papersize==6) {
|
||||
marginsModule->marginCO->insertStringList(a4only);
|
||||
marginsModule->marginCO->insertStrList(a4only);
|
||||
}
|
||||
marginsModule->marginCO->setCurrentItem(olditem);
|
||||
setCustomMargins(olditem);
|
||||
|
@ -12,7 +12,7 @@ INCLUDES = -I$(top_srcdir)/src/ \
|
||||
$(FRONTEND_INCLUDES) \
|
||||
$(BOOST_INCLUDES)
|
||||
|
||||
AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
|
||||
AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION
|
||||
|
||||
nodist_libqt2moc_la_SOURCES = \
|
||||
$(MOCDIALOGS) \
|
||||
|
@ -7,7 +7,7 @@ INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/frontends \
|
||||
$(FRONTEND_INCLUDES) $(BOOST_INCLUDES) \
|
||||
-I$(top_srcdir)/src/frontends/controllers
|
||||
|
||||
AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
|
||||
AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION
|
||||
|
||||
|
||||
SUBDIRS = . moc
|
||||
|
@ -11,7 +11,7 @@ INCLUDES = -I$(top_srcdir)/src \
|
||||
$(FRONTEND_INCLUDES) \
|
||||
$(BOOST_INCLUDES)
|
||||
|
||||
AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
|
||||
AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION
|
||||
|
||||
nodist_libqt2uimoc_la_SOURCES = $(UIMOCDIALOGS)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user