From 71a377eab392c24965c69586248fe2220297468a Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Tue, 12 Nov 2002 10:12:06 +0000 Subject: [PATCH] setting bullets now work in dialog. preview is rotten. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5613 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt2/BulletsModule.C | 127 ++++++++--- src/frontends/qt2/BulletsModule.h | 43 +++- src/frontends/qt2/ChangeLog | 11 + src/frontends/qt2/Makefile.am | 2 + src/frontends/qt2/QDocument.C | 21 +- src/frontends/qt2/QDocumentDialog.C | 11 + src/frontends/qt2/bulletstrings.C | 129 +++++++++++ src/frontends/qt2/bulletstrings.h | 27 +++ src/frontends/qt2/ui/BulletsModuleBase.ui | 263 ++++++++++++++-------- 9 files changed, 485 insertions(+), 149 deletions(-) create mode 100644 src/frontends/qt2/bulletstrings.C create mode 100644 src/frontends/qt2/bulletstrings.h diff --git a/src/frontends/qt2/BulletsModule.C b/src/frontends/qt2/BulletsModule.C index 5ae8ebe961..9e84b3ce42 100644 --- a/src/frontends/qt2/BulletsModule.C +++ b/src/frontends/qt2/BulletsModule.C @@ -1,5 +1,5 @@ /** - * \file QBulletsModule.C + * \file BulletsModule.C * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * @@ -18,16 +18,17 @@ #include #include #include +#include +#include #include "BulletsModule.h" #include "ui/BulletsModuleBase.h" #include "QBrowseBox.h" #include "support/filetools.h" - +#include "bulletstrings.h" BulletsModule::BulletsModule(QWidget * parent, char const * name, WFlags fl) - : BulletsModuleBase(parent, name, fl) + : BulletsModuleBase(parent, name, fl), le_(bullet1LE) { - QPopupMenu * pm = new QPopupMenu(this); QPopupMenu * pm1 = new QPopupMenu(pm); @@ -37,19 +38,19 @@ BulletsModule::BulletsModule(QWidget * parent, char const * name, WFlags fl) QPopupMenu * pm5 = new QPopupMenu(pm); QPopupMenu * pm6 = new QPopupMenu(pm); - standard = new QBrowseBox(6, 6, pm1); - maths = new QBrowseBox(6, 6, pm2); - ding1 = new QBrowseBox(6, 6, pm3); - ding2 = new QBrowseBox(6, 6, pm4); - ding3 = new QBrowseBox(6, 6, pm5); - ding4 = new QBrowseBox(6, 6, pm6); + standard_ = new QBrowseBox(6, 6, pm1); + maths_ = new QBrowseBox(6, 6, pm2); + ding1_ = new QBrowseBox(6, 6, pm3); + ding2_ = new QBrowseBox(6, 6, pm4); + ding3_ = new QBrowseBox(6, 6, pm5); + ding4_ = new QBrowseBox(6, 6, pm6); - pm1->insertItem(standard); - pm2->insertItem(maths); - pm3->insertItem(ding1); - pm4->insertItem(ding2); - pm5->insertItem(ding3); - pm6->insertItem(ding4); + pm1->insertItem(standard_); + pm2->insertItem(maths_); + pm3->insertItem(ding1_); + pm4->insertItem(ding2_); + pm5->insertItem(ding3_); + pm6->insertItem(ding4_); pm->insertItem("Standard", pm1); pm->insertItem("Maths", pm2); @@ -66,26 +67,53 @@ BulletsModule::BulletsModule(QWidget * parent, char const * name, WFlags fl) // insert pixmaps string bmfile; bmfile = LibFileSearch("images", "standard", "xpm"); - standard->insertItem(QPixmap(bmfile.c_str())); + standard_->insertItem(QPixmap(bmfile.c_str())); bmfile = LibFileSearch("images", "amssymb", "xpm"); - maths->insertItem(QPixmap(bmfile.c_str())); + maths_->insertItem(QPixmap(bmfile.c_str())); bmfile = LibFileSearch("images", "psnfss1", "xpm"); - ding1->insertItem(QPixmap(bmfile.c_str())); + ding1_->insertItem(QPixmap(bmfile.c_str())); bmfile = LibFileSearch("images", "psnfss2", "xpm"); - ding2->insertItem(QPixmap(bmfile.c_str())); + ding2_->insertItem(QPixmap(bmfile.c_str())); bmfile = LibFileSearch("images", "psnfss3", "xpm"); - ding3->insertItem(QPixmap(bmfile.c_str())); + ding3_->insertItem(QPixmap(bmfile.c_str())); bmfile = LibFileSearch("images", "psnfss4", "xpm"); - ding4->insertItem(QPixmap(bmfile.c_str())); + ding4_->insertItem(QPixmap(bmfile.c_str())); - connect(standard, SIGNAL(selected(int, int)), - this, SLOT(checkThis(int, int))); + connect(standard_, SIGNAL(selected(int, int)), + this, SLOT(standard(int, int))); + connect(maths_, SIGNAL(selected(int, int)), + this, SLOT(maths(int, int))); + + connect(ding1_, SIGNAL(selected(int, int)), + this, SLOT(ding1(int, int))); + + connect(ding2_, SIGNAL(selected(int, int)), + this, SLOT(ding2(int, int))); + + connect(ding3_, SIGNAL(selected(int, int)), + this, SLOT(ding3(int, int))); + + connect(ding4_, SIGNAL(selected(int, int)), + this, SLOT(ding4(int, int))); + + connect(setbullet1TB, SIGNAL(pressed()), + this, SLOT(setlevel1())); + + connect(setbullet2TB, SIGNAL(pressed()), + this, SLOT(setlevel2())); + + connect(setbullet3TB, SIGNAL(pressed()), + this, SLOT(setlevel3())); + + connect(setbullet4TB, SIGNAL(pressed()), + this, SLOT(setlevel4())); + } @@ -93,14 +121,53 @@ BulletsModule::~BulletsModule() { } - -void BulletsModule::setLevel1() +void BulletsModule::standard(int row, int col) { - qWarning("no setLevel1() yet"); + le_->setText(bullets_standard[6*row + col]); } - -void BulletsModule::checkThis(int x, int y) +void BulletsModule::maths(int row, int col) { - qWarning("Check, x: %d y: %d ", x, y); + le_->setText(bullets_amssymb[6*row + col]); } + +void BulletsModule::ding1(int row, int col) +{ + le_->setText(bullets_psnfss1[6*row + col]); +} + +void BulletsModule::ding2(int row, int col) +{ + le_->setText(bullets_psnfss2[6*row + col]); +} + +void BulletsModule::ding3(int row, int col) +{ + le_->setText(bullets_psnfss3[6*row + col]); +} + +void BulletsModule::ding4(int row, int col) +{ + le_->setText(bullets_psnfss4[6*row + col]); +} + +void BulletsModule::setlevel1() +{ + le_ = bullet1LE; +} + +void BulletsModule::setlevel2() +{ + le_ = bullet2LE; +} + +void BulletsModule::setlevel3() +{ + le_ = bullet3LE; +} + +void BulletsModule::setlevel4() +{ + le_ = bullet4LE; +} + diff --git a/src/frontends/qt2/BulletsModule.h b/src/frontends/qt2/BulletsModule.h index e6108d4127..ba97734496 100644 --- a/src/frontends/qt2/BulletsModule.h +++ b/src/frontends/qt2/BulletsModule.h @@ -18,8 +18,11 @@ #include "ui/BulletsModuleBase.h" #include "LString.h" +#include class QBrowseBox; +class QLineEdit; + class BulletsModule : public BulletsModuleBase { Q_OBJECT @@ -27,18 +30,40 @@ public: BulletsModule(QWidget* parent = 0, const char* name = 0, WFlags fl = 0); ~BulletsModule(); + +protected slots: + /// + void standard(int row, int col); + /// + void maths(int row, int col); + /// + void ding1(int row, int col); + /// + void ding2(int row, int col); + /// + void ding3(int row, int col); + /// + void ding4(int row, int col); + /// + void setlevel1(); + /// + void setlevel2(); + /// + void setlevel3(); + /// + void setlevel4(); -public slots: - void checkThis(int,int); - void setLevel1(); private: - QBrowseBox * standard; - QBrowseBox * maths; - QBrowseBox * ding1; - QBrowseBox * ding2; - QBrowseBox * ding3; - QBrowseBox * ding4; + QLineEdit * le_; + + QBrowseBox * standard_; + QBrowseBox * maths_; + QBrowseBox * ding1_; + QBrowseBox * ding2_; + QBrowseBox * ding3_; + QBrowseBox * ding4_; + }; #endif // BULLETSMODULE_H diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index 9901282d9b..ebafb439df 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,14 @@ +2002-11-12 Edwin Leuven + + * BulletsModule.C: more bullet changes + * BulletsModule.h + * Makefile.am + * QDocument.C + * QDocumentDialog.C + * bulletstrings.C + * bulletstrings.h + * ui/BulletsModuleBase.ui + 2002-11-12 Edwin Leuven * QBrowseBox: Juergen Spitzmueller's mouse focus fix diff --git a/src/frontends/qt2/Makefile.am b/src/frontends/qt2/Makefile.am index 4e2372d226..1c56d9ad53 100644 --- a/src/frontends/qt2/Makefile.am +++ b/src/frontends/qt2/Makefile.am @@ -20,6 +20,8 @@ libqt2_la_SOURCES = \ Alert_pimpl.C \ qgridview.h \ qgridview.cpp \ +bulletstrings.h \ +bulletstrings.C \ BulletsModule.C \ BulletsModule.h \ QBrowseBox.C \ diff --git a/src/frontends/qt2/QDocument.C b/src/frontends/qt2/QDocument.C index 3e756d8d11..75c7802ce6 100644 --- a/src/frontends/qt2/QDocument.C +++ b/src/frontends/qt2/QDocument.C @@ -204,10 +204,15 @@ void QDocument::apply() dialog_->numberingModule->sectionnrDepthSB->value(); // bullets - //BufferParams & param = lv_.buffer()->params; - //param.temp_bullets[current_bullet_depth]. - // setText(getString(bullets_->input_bullet_latex)); + params.user_defined_bullets[0].setText(dialog_->bulletsModule->bullet1LE->text().latin1()); + params.user_defined_bullets[1].setText(dialog_->bulletsModule->bullet2LE->text().latin1()); + params.user_defined_bullets[2].setText(dialog_->bulletsModule->bullet3LE->text().latin1()); + params.user_defined_bullets[3].setText(dialog_->bulletsModule->bullet4LE->text().latin1()); + params.user_defined_bullets[0].setSize(dialog_->bulletsModule->bulletsize1CO->currentItem()-1); + params.user_defined_bullets[1].setSize(dialog_->bulletsModule->bulletsize2CO->currentItem()-1); + params.user_defined_bullets[2].setSize(dialog_->bulletsModule->bulletsize3CO->currentItem()-1); + params.user_defined_bullets[3].setSize(dialog_->bulletsModule->bulletsize4CO->currentItem()-1); // packages switch (dialog_->packagesModule->lspacingCO->currentItem()) { @@ -428,30 +433,26 @@ void QDocument::update_contents() params.tocdepth); // bullets - QString s = params.user_defined_bullets[0].getText().c_str(); + QString s; + s = params.user_defined_bullets[0].getText().c_str(); dialog_->bulletsModule->bullet1LE->setText(s); - s = params.user_defined_bullets[1].getText().c_str(); dialog_->bulletsModule->bullet2LE->setText(s); - s = params.user_defined_bullets[2].getText().c_str(); dialog_->bulletsModule->bullet3LE->setText(s); - s = params.user_defined_bullets[3].getText().c_str(); dialog_->bulletsModule->bullet4LE->setText(s); dialog_->bulletsModule->bulletsize1CO->setCurrentItem( params.user_defined_bullets[0].getSize() + 1); - dialog_->bulletsModule->bulletsize2CO->setCurrentItem( params.user_defined_bullets[1].getSize() + 1); - dialog_->bulletsModule->bulletsize3CO->setCurrentItem( params.user_defined_bullets[2].getSize() + 1); - dialog_->bulletsModule->bulletsize4CO->setCurrentItem( params.user_defined_bullets[3].getSize() + 1); + // packages QStringList enc; enc << "default" << "auto" << "latin1" << "latin2" << "latin3" << diff --git a/src/frontends/qt2/QDocumentDialog.C b/src/frontends/qt2/QDocumentDialog.C index 396ccd8dcd..c93c874acf 100644 --- a/src/frontends/qt2/QDocumentDialog.C +++ b/src/frontends/qt2/QDocumentDialog.C @@ -250,6 +250,17 @@ QDocumentDialog::QDocumentDialog( QDocument * form) connect( paperModule->facingPagesCB, SIGNAL( toggled(bool) ), this , SLOT( change_adaptor() ) ); + /* bullets */ + connect( bulletsModule->bullet1LE, SIGNAL( textChanged(const QString&) ), + this , SLOT( change_adaptor() ) ); + connect( bulletsModule->bulletsize1CO, SIGNAL( activated(int) ), + this , SLOT( change_adaptor() ) ); +/* + connect( bulletsModule->levelSP, SIGNAL( valueChanged(int) ), + this , SLOT( setBullet(int) ) ); + connect( bulletsModule->levelSP, SIGNAL( valueChanged(int) ), + this , SLOT( setBulletSize(int) ) ); +*/ } diff --git a/src/frontends/qt2/bulletstrings.C b/src/frontends/qt2/bulletstrings.C new file mode 100644 index 0000000000..8eace40cb3 --- /dev/null +++ b/src/frontends/qt2/bulletstrings.C @@ -0,0 +1,129 @@ + + +#include "bulletstrings.h" + +char const * bullets_standard[36] = { + /* standard */ + "\\normalfont\\bfseries{--}", "\\(\\vdash\\)", + "\\(\\dashv\\)", "\\(\\flat\\)", "\\(\\natural\\)", + "\\(\\sharp\\)", "\\(\\ast\\)", "\\(\\star\\)", + "\\(\\bullet\\)", "\\(\\circ\\)", "\\(\\cdot\\)", + "\\(\\dagger\\)", "\\(\\bigtriangleup\\)", + "\\(\\bigtriangledown\\)", "\\(\\triangleleft\\)", + "\\(\\triangleright\\)", "\\(\\lhd\\)", "\\(\\rhd\\)", + "\\(\\oplus\\)", "\\(\\ominus\\)", "\\(\\otimes\\)", + "\\(\\oslash\\)", "\\(\\odot\\)", "\\(\\spadesuit\\)", + "\\(\\diamond\\)", "\\(\\Diamond\\)", "\\(\\Box\\)", + "\\(\\diamondsuit\\)", "\\(\\heartsuit\\)", + "\\(\\clubsuit\\)", "\\(\\rightarrow\\)", "\\(\\leadsto\\)", + "\\(\\rightharpoonup\\)", "\\(\\rightharpoondown\\)", + "\\(\\Rightarrow\\)", "\\(\\succ\\)" + }; +char const * bullets_amssymb[36] = { + /* amssymb */ + "\\(\\Rrightarrow\\)", "\\(\\rightarrowtail\\)", + "\\(\\twoheadrightarrow\\)", "\\(\\rightsquigarrow\\)", + "\\(\\looparrowright\\)", "\\(\\multimap\\)", + "\\(\\boxtimes\\)", "\\(\\boxplus\\)", "\\(\\boxminus\\)", + "\\(\\boxdot\\)", "\\(\\divideontimes\\)", "\\(\\Vvdash\\)", + "\\(\\lessdot\\)", "\\(\\gtrdot\\)", "\\(\\maltese\\)", + "\\(\\bigstar\\)", "\\(\\checkmark\\)", "\\(\\Vdash\\)", + "\\(\\backsim\\)", "\\(\\thicksim\\)", + "\\(\\centerdot\\)", "\\(\\circleddash\\)", + "\\(\\circledast\\)", "\\(\\circledcirc\\)", + "\\(\\vartriangleleft\\)", "\\(\\vartriangleright\\)", + "\\(\\vartriangle\\)", "\\(\\triangledown\\)", + "\\(\\lozenge\\)", "\\(\\square\\)", "\\(\\blacktriangleleft\\)", + "\\(\\blacktriangleright\\)", "\\(\\blacktriangle\\)", + "\\(\\blacktriangledown\\)", "\\(\\blacklozenge\\)", + "\\(\\blacksquare\\)" + }; +char const * bullets_psnfss1[36] = { + /* psnfss1 */ + "\\ding{108}", "\\ding{109}", + "\\ding{119}", "\\Pisymbol{psy}{197}", + "\\Pisymbol{psy}{196}", "\\Pisymbol{psy}{183}", + "\\ding{71}", "\\ding{70}", + "\\ding{118}", "\\ding{117}", + "\\Pisymbol{psy}{224}", "\\Pisymbol{psy}{215}", + "\\ding{111}", "\\ding{112}", + "\\ding{113}", "\\ding{114}", + "\\Pisymbol{psy}{68}", "\\Pisymbol{psy}{209}", + "\\ding{120}", "\\ding{121}", + "\\ding{122}", "\\ding{110}", + "\\ding{115}", "\\ding{116}", + "\\Pisymbol{psy}{42}", "\\ding{67}", + "\\ding{66}", "\\ding{82}", + "\\ding{81}", "\\ding{228}", + "\\ding{162}", "\\ding{163}", + "\\ding{166}", "\\ding{167}", + "\\ding{226}", "\\ding{227}" + }; +char const * bullets_psnfss2[36] = { + /* psnfss2 */ + "\\ding{37}", "\\ding{38}", + "\\ding{34}", "\\ding{36}", + "\\ding{39}", "\\ding{40}", + "\\ding{41}", "\\ding{42}", + "\\ding{43}", "\\ding{44}", + "\\ding{45}", "\\ding{47}", + "\\ding{53}", "\\ding{54}", + "\\ding{59}", "\\ding{57}", + "\\ding{62}", "\\ding{61}", + "\\ding{55}", "\\ding{56}", + "\\ding{58}", "\\ding{60}", + "\\ding{63}", "\\ding{64}", + "\\ding{51}", "\\ding{52}", + "\\Pisymbol{psy}{170}", "\\Pisymbol{psy}{167}", + "\\Pisymbol{psy}{168}", "\\Pisymbol{psy}{169}", + "\\ding{164}", "\\ding{165}", + "\\ding{171}", "\\ding{168}", + "\\ding{169}", "\\ding{170}" + }; +char const * bullets_psnfss3[36] = { + /* psnfss3 */ + "\\ding{65}", "\\ding{76}", + "\\ding{75}", "\\ding{72}", + "\\ding{80}", "\\ding{74}", + "\\ding{78}", "\\ding{77}", + "\\ding{79}", "\\ding{85}", + "\\ding{90}", "\\ding{98}", + "\\ding{83}", "\\ding{84}", + "\\ding{86}", "\\ding{87}", + "\\ding{88}", "\\ding{89}", + "\\ding{92}", "\\ding{91}", + "\\ding{93}", "\\ding{105}", + "\\ding{94}", "\\ding{99}", + "\\ding{103}", "\\ding{104}", + "\\ding{106}", "\\ding{107}", + "\\ding{68}", "\\ding{69}", + "\\ding{100}", "\\ding{101}", + "\\ding{102}", "\\ding{96}", + "\\ding{95}", "\\ding{97}" + }; +char const * bullets_psnfss4[36] = { + /* psnfss4 */ + "\\ding{223}", "\\ding{224}", + "\\ding{225}", "\\ding{232}", + "\\ding{229}", "\\ding{230}", + "\\ding{238}", "\\ding{237}", + "\\ding{236}", "\\ding{235}", + "\\ding{234}", "\\ding{233}", + "\\ding{239}", "\\ding{241}", + "\\ding{250}", "\\ding{251}", + "\\ding{49}", "\\ding{50}", + "\\ding{217}", "\\ding{245}", + "\\ding{243}", "\\ding{248}", + "\\ding{252}", "\\ding{253}", + "\\ding{219}", "\\ding{213}", + "\\ding{221}", "\\ding{222}", + "\\ding{220}", "\\ding{212}", + "\\Pisymbol{psy}{174}", "\\Pisymbol{psy}{222}", + "\\ding{254}", "\\ding{242}", + "\\ding{231}", "\\Pisymbol{psy}{45}" + }; +char const ** BulletPanels[6] = { + bullets_standard, bullets_amssymb, + bullets_psnfss1, bullets_psnfss2, + bullets_psnfss3, bullets_psnfss4 +}; diff --git a/src/frontends/qt2/bulletstrings.h b/src/frontends/qt2/bulletstrings.h new file mode 100644 index 0000000000..794769a773 --- /dev/null +++ b/src/frontends/qt2/bulletstrings.h @@ -0,0 +1,27 @@ +// -*- C++ -*- +/* This file is part of + * ====================================================== + * + * LyX, The Document Processor + * + * Copyright 1995 Matthias Ettrich + * Copyright 1995-2001 The LyX Team. + * + * ====================================================== */ + +#ifndef BULLET_STRINGS +#define BULLET_STRINGS + +#ifdef __GNUG__ +#pragma interface +#endif + +extern char const * bullets_standard[]; +extern char const * bullets_amssymb[]; +extern char const * bullets_psnfss1[]; +extern char const * bullets_psnfss2[]; +extern char const * bullets_psnfss3[]; +extern char const * bullets_psnfss4[]; +extern char const ** BulletPanels[]; + +#endif // BULLET_STRINGS diff --git a/src/frontends/qt2/ui/BulletsModuleBase.ui b/src/frontends/qt2/ui/BulletsModuleBase.ui index 9230d57d7b..d300277cc0 100644 --- a/src/frontends/qt2/ui/BulletsModuleBase.ui +++ b/src/frontends/qt2/ui/BulletsModuleBase.ui @@ -13,7 +13,7 @@ 0 0 - 291 + 308 176 @@ -34,43 +34,7 @@ spacing 6 - - QLineEdit - - name - bullet1LE - - - sizePolicy - - 3 - 0 - - - - - QLabel - - name - sizeL - - - text - Size: - - - - QLabel - - name - latexL - - - text - LaTeX: - - - + name Spacer25 @@ -91,18 +55,52 @@ - - QLineEdit + + QLabel name - bullet3LE + latexL + + + text + &Bullet (LaTeX): + + + buddy + bullet1LE - + + QLabel + + name + sizeL + + + text + Si&ze: + + + buddy + bulletsize1CO + + + QLineEdit name - bullet4LE + bullet1LE + + + sizePolicy + + 3 + 0 + + + + toolTip + Level 1 bullet @@ -111,65 +109,52 @@ name bullet2LE - - - QToolButton - name - setbullet2TB + sizePolicy + + 3 + 0 + - - text - Set Level 2 - - - popupDelay - 1 + + toolTip + Level 2 bullet - - QToolButton + + QLineEdit name - setbullet3TB + bullet3LE - text - Set Level 3 + sizePolicy + + 3 + 0 + - - popupDelay - 1 + + toolTip + Level 3 bullet - - QToolButton + + QLineEdit name - setbullet4TB + bullet4LE - text - Set Level 4 + sizePolicy + + 3 + 0 + - - popupDelay - 1 - - - - QToolButton - - name - setbullet1TB - - - text - Set Level 1 - - - popupDelay - 1 + + toolTip + Level 4 bullet @@ -244,6 +229,10 @@ name bulletsize1CO + + toolTip + Level 1 bullet size + QComboBox @@ -317,6 +306,10 @@ name bulletsize2CO + + toolTip + Level 2 bullet size + QComboBox @@ -390,6 +383,10 @@ name bulletsize3CO + + toolTip + Level 3 bullet size + QComboBox @@ -463,21 +460,87 @@ name bulletsize4CO + + toolTip + Level 4 bullet size + + + + QToolButton + + name + setbullet1TB + + + text + Set Level &1... + + + popupDelay + 1 + + + toolTip + Shows menu with bullet options + + + + QToolButton + + name + setbullet2TB + + + text + Set Level &2... + + + popupDelay + 1 + + + toolTip + Shows menu with bullet options + + + + QToolButton + + name + setbullet3TB + + + text + Set Level &3... + + + popupDelay + 1 + + + toolTip + Shows menu with bullet options + + + + QToolButton + + name + setbullet4TB + + + text + Set Level &4... + + + popupDelay + 1 + + + toolTip + Shows menu with bullet options + - - - setbullet1TB - pressed() - BulletsModuleBase - setLevel1() - - setLevel1() - setLevel2() - setLevel3() - setLevel4() - setLevel5() - updateBulletSet(int) -