mainwindow.hh

Go to the documentation of this file.
00001 /*
00002  * lozsrame - Legend of Zelda SRAM Editor
00003  * Copyright (C) 2007-2008 emuWorks
00004  * http://games.technoplaza.net/
00005  *
00006  * This file is part of lozsrame.
00007  *
00008  * lozsrame is free software; you can redistribute it and/or modify it under the
00009  * terms of the GNU General Public License as published by the Free Software
00010  * Foundation; either version 2 of the License, or (at your option) any later
00011  * version.
00012  *
00013  * lozsrame is distributed in the hope that it will be useful, but WITHOUT ANY
00014  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
00015  * A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License along with
00018  * lozsrame; if not, write to the Free Software Foundation, Inc.,
00019  * 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020  */
00021 
00022 // $Id: mainwindow.hh,v 1.11 2008/12/18 04:59:13 jdratlif Exp $
00023 
00024 #ifndef LOZSRAME_MAINWINDOW_HH_
00025 #define LOZSRAME_MAINWINDOW_HH_
00026 
00027 #include <QDragEnterEvent>
00028 #include <QDropEvent>
00029 
00030 #include "ui_mainwindow.h"
00031 
00032 #include "model/sramfile.hh"
00033 
00034 /// namespace used by all the classes and members of lozsrame
00035 namespace lozsrame {
00036     /**
00037      * The main application window class.
00038      */
00039     class MainWindow : public QMainWindow {
00040         Q_OBJECT
00041         
00042     private:
00043         QString sramFile;
00044         QCheckBox *compassChecks[9], *mapChecks[9], *triforceChecks[8];
00045         Ui::MainWindow ui;
00046         SRAMFile *sram;
00047         bool ignoreSignals, open;
00048         
00049         /**
00050          * Closes the current SRAM file.
00051          *
00052          * @return true if closed; false otherwise.
00053          */
00054         bool closeSRAM();
00055         
00056         /**
00057          * Loads the SRAM data into the controls.
00058          */
00059         void loadSRAMData();
00060         
00061         /**
00062          * Opens an SRAM file for editing.
00063          *
00064          * @param filename The SRAM filename.
00065          */
00066         void openSRAM(const QString &filename);
00067         
00068         /**
00069          * Updates the UI based on the status of the program.
00070          */
00071         void updateUI();
00072         
00073         /**
00074          * Selects one of the arrow types.
00075          *
00076          * @param arrows The new arrow type.
00077          */
00078         void selectArrows(enum sf_arrow arrows);
00079         
00080         /**
00081          * Selects one of the candle types.
00082          *
00083          * @param candle The new candle type.
00084          */
00085         void selectCandle(enum sf_candle candle);
00086         
00087         /**
00088          * (De)selects one of the level compasses.
00089          *
00090          * @param level The level.
00091          * @param give true to give; false to take away.
00092          */
00093         void selectCompass(int level, bool give);
00094         
00095         /**
00096          * (De)selects one of the items.
00097          *
00098          * @param item The item.
00099          * @param give true to give; false to take away.
00100          */
00101         void selectItem(enum sf_item item, bool give);
00102         
00103         /**
00104          * (De)selects one of the level maps.
00105          *
00106          * @param level The level.
00107          * @param give true to give; false to take away.
00108          */
00109         void selectMap(int level, bool give);
00110         
00111         /**
00112          * Selects one of the note locations.
00113          *
00114          * @param note The new note position.
00115          */
00116         void selectNote(enum sf_note note);
00117         
00118         /**
00119          * Selects one of the potions.
00120          *
00121          * @param potion The new potion.
00122          */
00123         void selectPotion(enum sf_potion potion);
00124         
00125         /**
00126          * Selects one of the quests.
00127          *
00128          * @param quest The new quest.
00129          */
00130         void selectQuest(enum sf_quest quest);
00131         
00132         /**
00133          * Selects one of the rings.
00134          *
00135          * @param ring The new ring.
00136          */
00137         void selectRing(enum sf_ring ring);
00138         
00139         /**
00140          * Selects one of the swords.
00141          *
00142          * @param sword The new sword.
00143          */
00144         void selectSword(enum sf_sword sword);
00145         
00146         /**
00147          * (De)selects one of the triforce pieces.
00148          *
00149          * @param level The level.
00150          * @param give true to give; false to take away.
00151          */
00152         void selectTriforce(int level, bool give);
00153         
00154     private slots:
00155         /**
00156          * Called when the bait is (de)selected.
00157          *
00158          * @param checked true if selected; false if deselected.
00159          */
00160         void on_checkBait_clicked(bool checked);
00161         
00162         /**
00163          * Called when the book is (de)selected.
00164          *
00165          * @param checked true if selected; false if deselected.
00166          */
00167         void on_checkBook_clicked(bool checked);
00168         
00169         /**
00170          * Called when the boomerang is (de)selected.
00171          *
00172          * @param checked true if selected; false if deselected.
00173          */
00174         void on_checkBoomerang_clicked(bool checked);
00175         
00176         /**
00177          * Called when the bow is (de)selected.
00178          *
00179          * @param checked true if selected; false if deselected.
00180          */
00181         void on_checkBow_clicked(bool checked);
00182         
00183         /**
00184          * Called when the level 1 compass is (de)selected.
00185          *
00186          * @param checked true if selected; false if deselected.
00187          */
00188         void on_checkCompass1_clicked(bool checked);
00189         
00190         /**
00191          * Called when the level 2 compass is (de)selected.
00192          *
00193          * @param checked true if selected; false if deselected.
00194          */
00195         void on_checkCompass2_clicked(bool checked);
00196         
00197         /**
00198          * Called when the level 3 compass is (de)selected.
00199          *
00200          * @param checked true if selected; false if deselected.
00201          */
00202         void on_checkCompass3_clicked(bool checked);
00203         
00204         /**
00205          * Called when the level 4 compass is (de)selected.
00206          *
00207          * @param checked true if selected; false if deselected.
00208          */
00209         void on_checkCompass4_clicked(bool checked);
00210         
00211         /**
00212          * Called when the level 5 compass is (de)selected.
00213          *
00214          * @param checked true if selected; false if deselected.
00215          */
00216         void on_checkCompass5_clicked(bool checked);
00217         
00218         /**
00219          * Called when the level 6 compass is (de)selected.
00220          *
00221          * @param checked true if selected; false if deselected.
00222          */
00223         void on_checkCompass6_clicked(bool checked);
00224         
00225         /**
00226          * Called when the level 7 compass is (de)selected.
00227          *
00228          * @param checked true if selected; false if deselected.
00229          */
00230         void on_checkCompass7_clicked(bool checked);
00231         
00232         /**
00233          * Called when the level 8 compass is (de)selected.
00234          *
00235          * @param checked true if selected; false if deselected.
00236          */
00237         void on_checkCompass8_clicked(bool checked);
00238         
00239         /**
00240          * Called when the level 9 compass is (de)selected.
00241          *
00242          * @param checked true if selected; false if deselected.
00243          */
00244         void on_checkCompass9_clicked(bool checked);
00245         
00246         /**
00247          * Called when the ladder is (de)selected.
00248          *
00249          * @param checked true if selected; false if deselected.
00250          */
00251         void on_checkLadder_clicked(bool checked);
00252         
00253         /**
00254          * Called when the level 1 map is (de)selected.
00255          *
00256          * @param checked true if selected; false if deselected.
00257          */
00258         void on_checkMap1_clicked(bool checked);
00259         
00260         /**
00261          * Called when the level 2 map is (de)selected.
00262          *
00263          * @param checked true if selected; false if deselected.
00264          */
00265         void on_checkMap2_clicked(bool checked);
00266         
00267         /**
00268          * Called when the level 3 map is (de)selected.
00269          *
00270          * @param checked true if selected; false if deselected.
00271          */
00272         void on_checkMap3_clicked(bool checked);
00273         
00274         /**
00275          * Called when the level 4 map is (de)selected.
00276          *
00277          * @param checked true if selected; false if deselected.
00278          */
00279         void on_checkMap4_clicked(bool checked);
00280         
00281         /**
00282          * Called when the level 5 map is (de)selected.
00283          *
00284          * @param checked true if selected; false if deselected.
00285          */
00286         void on_checkMap5_clicked(bool checked);
00287         
00288         /**
00289          * Called when the level 6 map is (de)selected.
00290          *
00291          * @param checked true if selected; false if deselected.
00292          */
00293         void on_checkMap6_clicked(bool checked);
00294         
00295         /**
00296          * Called when the level 7 map is (de)selected.
00297          *
00298          * @param checked true if selected; false if deselected.
00299          */
00300         void on_checkMap7_clicked(bool checked);
00301         
00302         /**
00303          * Called when the level 8 map is (de)selected.
00304          *
00305          * @param checked true if selected; false if deselected.
00306          */
00307         void on_checkMap8_clicked(bool checked);
00308         
00309         /**
00310          * Called when the level 9 map is (de)selected.
00311          *
00312          * @param checked true if selected; false if deselected.
00313          */
00314         void on_checkMap9_clicked(bool checked);
00315         
00316         /**
00317          * Called when the magic boomerang is (de)selected.
00318          *
00319          * @param checked true if selected; false if deselected.
00320          */
00321         void on_checkMagicBoomerang_clicked(bool checked);
00322         
00323         /**
00324          * Called when the magic key is (de)selected.
00325          *
00326          * @param checked true if selected; false if deselected.
00327          */
00328         void on_checkMagicKey_clicked(bool checked);
00329         
00330         /**
00331          * Called when the magic shield is (de)selected.
00332          *
00333          * @param checked true if selected; false if deselected.
00334          */
00335         void on_checkMagicShield_clicked(bool checked);
00336         
00337         /**
00338          * Called when the power bracelet is (de)selected.
00339          *
00340          * @param checked true if selected; false if deselected.
00341          */
00342         void on_checkPowerBracelet_clicked(bool checked);
00343         
00344         /**
00345          * Called when the raft is (de)selected.
00346          *
00347          * @param checked true if selected; false if deselected.
00348          */
00349         void on_checkRaft_clicked(bool checked);
00350         
00351         /**
00352          * Called when triforce piece 1 is (de)selected.
00353          *
00354          * @param checked true if selected; false if deselected.
00355          */
00356         void on_checkTriforce1_clicked(bool checked);
00357         
00358         /**
00359          * Called when triforce piece 2 is (de)selected.
00360          *
00361          * @param checked true if selected; false if deselected.
00362          */
00363         void on_checkTriforce2_clicked(bool checked);
00364         
00365         /**
00366          * Called when triforce piece 3 is (de)selected.
00367          *
00368          * @param checked true if selected; false if deselected.
00369          */
00370         void on_checkTriforce3_clicked(bool checked);
00371         
00372         /**
00373          * Called when triforce piece 4 is (de)selected.
00374          *
00375          * @param checked true if selected; false if deselected.
00376          */
00377         void on_checkTriforce4_clicked(bool checked);
00378         
00379         /**
00380          * Called when triforce piece 5 is (de)selected.
00381          *
00382          * @param checked true if selected; false if deselected.
00383          */
00384         void on_checkTriforce5_clicked(bool checked);
00385         
00386         /**
00387          * Called when triforce piece 6 is (de)selected.
00388          *
00389          * @param checked true if selected; false if deselected.
00390          */
00391         void on_checkTriforce6_clicked(bool checked);
00392         
00393         /**
00394          * Called when triforce piece 7 is (de)selected.
00395          *
00396          * @param checked true if selected; false if deselected.
00397          */
00398         void on_checkTriforce7_clicked(bool checked);
00399         
00400         /**
00401          * Called when triforce piece 8 is (de)selected.
00402          *
00403          * @param checked true if selected; false if deselected.
00404          */
00405         void on_checkTriforce8_clicked(bool checked);
00406         
00407         /**
00408          * Called when the wand is (de)selected.
00409          *
00410          * @param checked true if selected; false if deselected.
00411          */
00412         void on_checkWand_clicked(bool checked);
00413         
00414         /**
00415          * Called when the whistle is (de)selected.
00416          *
00417          * @param checked true if selected; false if deselected.
00418          */
00419         void on_checkWhistle_clicked(bool checked);
00420         
00421         /**
00422          * Called when close from the file menu is selected.
00423          */
00424         void on_fileClose_triggered(bool);
00425         
00426         /**
00427          * Called when exit from the file menu is selected.
00428          */
00429         void on_fileExit_triggered(bool);
00430         
00431         /**
00432          * Called when open from the file menu is selected.
00433          */
00434         void on_fileOpen_triggered(bool);      
00435         
00436         /**
00437          * Called when save from the file menu is selected.
00438          */
00439         void on_fileSave_triggered(bool);
00440         
00441         /**
00442          * Called when save as from the file menu is selected.
00443          */
00444         void on_fileSaveAs_triggered(bool);
00445         
00446         /**
00447          * Called when about from the help menu is selected.
00448          */
00449         void on_helpAbout_triggered(bool);
00450         
00451         /**
00452          * Called when the hero's name is edited.
00453          *
00454          * @param text The new name.
00455          */
00456         void on_lineHerosName_textEdited(const QString &text);
00457         
00458         /**
00459          * Called when the arrows are removed.
00460          */
00461         void on_radioArrowsNone_clicked(bool);
00462         
00463         /**
00464          * Called when the silver arrows are selected.
00465          */
00466         void on_radioArrowsSilver_clicked(bool);
00467         
00468         /**
00469          * Called when the wooden arrows are selected.
00470          */
00471         void on_radioArrowsWooden_clicked(bool);
00472         
00473         /**
00474          * Called when the blue candle is selected.
00475          */
00476         void on_radioCandleBlue_clicked(bool);
00477         
00478         /**
00479          * Called when the candle is removed.
00480          */
00481         void on_radioCandleNone_clicked(bool);
00482         
00483         /**
00484          * Called when the red candle is selected.
00485          */
00486         void on_radioCandleRed_clicked(bool);
00487         
00488         /**
00489          * Called when the note is set to Link.
00490          */
00491         void on_radioNoteLink_clicked(bool);
00492         
00493         /**
00494          * Called when the note is set to the old man.
00495          */
00496         void on_radioNoteOldMan_clicked(bool);
00497         
00498         /**
00499          * Called when the note is set to the old woman.
00500          */
00501         void on_radioNoteOldWoman_clicked(bool);
00502         
00503         /**
00504          * Called when the first quest is selected.
00505          */
00506         void on_radioQuestFirst_clicked(bool);
00507         
00508         /**
00509          * Called when the second quest is selected.
00510          */
00511         void on_radioQuestSecond_clicked(bool);
00512         
00513         /**
00514          * Called when the blue potion is selected.
00515          */
00516         void on_radioPotionBlue_clicked(bool);
00517         
00518         /**
00519          * Called when the potion is removed.
00520          */
00521         void on_radioPotionNone_clicked(bool);
00522         
00523         /**
00524          * Called when the red potion is selected.
00525          */
00526         void on_radioPotionRed_clicked(bool);
00527         
00528         /**
00529          * Called when the blue ring is selected.
00530          */
00531         void on_radioRingBlue_clicked(bool);
00532         
00533         /**
00534          * Called when the ring is removed.
00535          */
00536         void on_radioRingNone_clicked(bool);
00537         
00538         /**
00539          * Called when the red ring is selected.
00540          */
00541         void on_radioRingRed_clicked(bool);
00542         
00543         /**
00544          * Called when the master sword is selected.
00545          */
00546         void on_radioSwordMaster_clicked(bool);
00547         
00548         /**
00549          * Called when the sword is removed.
00550          */
00551         void on_radioSwordNone_clicked(bool);
00552         
00553         /**
00554          * Called when the white sword is selected.
00555          */
00556         void on_radioSwordWhite_clicked(bool);
00557         
00558         /**
00559          * Called when the wooden sword is selected.
00560          */
00561         void on_radioSwordWooden_clicked(bool);
00562         
00563         /**
00564          * Called when the bomb count is changed.
00565          *
00566          * @param value The new bomb count.
00567          */
00568         void on_spinBombsCarrying_valueChanged(int value);
00569         
00570         /**
00571          * Called when the bomb capacity is changed.
00572          *
00573          * @param value The new bomb capacity.
00574          */
00575         void on_spinBombsCapacity_valueChanged(int value);
00576         
00577         /**
00578          * Called when the heart containers are changed.
00579          *
00580          * @param value The new heart containers.
00581          */
00582         void on_spinHeartContainers_valueChanged(int value);
00583         
00584         /**
00585          * Called when the keys are changed.
00586          *
00587          * @param value The new keys.
00588          */
00589         void on_spinKeys_valueChanged(int value);
00590         
00591         /**
00592          * Called when the play count is changed.
00593          *
00594          * @param value The new play count.
00595          */
00596         void on_spinPlayCount_valueChanged(int value);
00597         
00598         /**
00599          * Called when the rupee count is changed.
00600          *
00601          * @param value The new rupees.
00602          */
00603         void on_spinRupees_valueChanged(int value);
00604         
00605         /**
00606          * Selects which save slot to edit.
00607          *
00608          * @param game The new slot.
00609          */
00610         void selectGame(int game);
00611         
00612     protected:
00613         /**
00614          * Called when the window is being closed.
00615          *
00616          * @param event The triggering event.
00617          */
00618         void closeEvent(QCloseEvent *event);
00619         
00620         /**
00621          * Called when something is dragged over the window.
00622          *
00623          * @param event The triggering event.
00624          */
00625         void dragEnterEvent(QDragEnterEvent *event);
00626         
00627         /**
00628          * Called when something is dropped on the window.
00629          *
00630          * @param event The triggering event.
00631          */
00632         void dropEvent(QDropEvent *event);
00633         
00634         /**
00635          * Called when the window is shown.
00636          */
00637         void showEvent(QShowEvent *);
00638         
00639     public:
00640         /**
00641          * Creates a new MainWindow.
00642          */
00643         MainWindow();
00644     };
00645     
00646     inline void MainWindow::on_checkBait_clicked(bool checked)
00647         { selectItem(ITEM_BAIT, checked); }
00648     
00649     inline void MainWindow::on_checkBook_clicked(bool checked)
00650         { selectItem(ITEM_BOOK, checked); }
00651     
00652     inline void MainWindow::on_checkBoomerang_clicked(bool checked)
00653         { selectItem(ITEM_BOOMERANG, checked); }
00654     
00655     inline void MainWindow::on_checkBow_clicked(bool checked)
00656         { selectItem(ITEM_BOW, checked); }
00657         
00658     inline void MainWindow::on_checkCompass1_clicked(bool checked)
00659         { selectCompass(1, checked); }
00660         
00661     inline void MainWindow::on_checkCompass2_clicked(bool checked)
00662         { selectCompass(2, checked); }
00663         
00664     inline void MainWindow::on_checkCompass3_clicked(bool checked)
00665         { selectCompass(3, checked); }
00666         
00667     inline void MainWindow::on_checkCompass4_clicked(bool checked)
00668         { selectCompass(4, checked); }
00669         
00670     inline void MainWindow::on_checkCompass5_clicked(bool checked)
00671         { selectCompass(5, checked); }
00672         
00673     inline void MainWindow::on_checkCompass6_clicked(bool checked)
00674         { selectCompass(6, checked); }
00675         
00676     inline void MainWindow::on_checkCompass7_clicked(bool checked)
00677         { selectCompass(7, checked); }
00678         
00679     inline void MainWindow::on_checkCompass8_clicked(bool checked)
00680         { selectCompass(8, checked); }
00681         
00682     inline void MainWindow::on_checkCompass9_clicked(bool checked)
00683         { selectCompass(9, checked); }
00684         
00685     inline void MainWindow::on_checkLadder_clicked(bool checked)
00686         { selectItem(ITEM_LADDER, checked); }
00687         
00688     inline void MainWindow::on_checkMap1_clicked(bool checked)
00689         { selectMap(1, checked); }
00690         
00691     inline void MainWindow::on_checkMap2_clicked(bool checked)
00692         { selectMap(2, checked); }
00693         
00694     inline void MainWindow::on_checkMap3_clicked(bool checked)
00695         { selectMap(3, checked); }
00696         
00697     inline void MainWindow::on_checkMap4_clicked(bool checked)
00698         { selectMap(4, checked); }
00699         
00700     inline void MainWindow::on_checkMap5_clicked(bool checked)
00701         { selectMap(5, checked); }
00702         
00703     inline void MainWindow::on_checkMap6_clicked(bool checked)
00704         { selectMap(6, checked); }
00705         
00706     inline void MainWindow::on_checkMap7_clicked(bool checked)
00707         { selectMap(7, checked); }
00708         
00709     inline void MainWindow::on_checkMap8_clicked(bool checked)
00710         { selectMap(8, checked); }
00711         
00712     inline void MainWindow::on_checkMap9_clicked(bool checked)
00713         { selectMap(9, checked); }
00714         
00715     inline void MainWindow::on_checkMagicBoomerang_clicked(bool checked)
00716         { selectItem(ITEM_MAGICBOOMERANG, checked); }
00717         
00718     inline void MainWindow::on_checkMagicKey_clicked(bool checked)
00719         { selectItem(ITEM_MAGICKEY, checked); }
00720     
00721     inline void MainWindow::on_checkMagicShield_clicked(bool checked)
00722         { selectItem(ITEM_MAGICSHIELD, checked); }
00723     
00724     inline void MainWindow::on_checkPowerBracelet_clicked(bool checked)
00725         { selectItem(ITEM_POWERBRACELET, checked); }
00726         
00727     inline void MainWindow::on_checkRaft_clicked(bool checked)
00728         { selectItem(ITEM_RAFT, checked); }
00729         
00730     inline void MainWindow::on_checkTriforce1_clicked(bool checked)
00731         { selectTriforce(1, checked); }
00732     
00733     inline void MainWindow::on_checkTriforce2_clicked(bool checked)
00734         { selectTriforce(2, checked); }
00735     
00736     inline void MainWindow::on_checkTriforce3_clicked(bool checked)
00737         { selectTriforce(3, checked); }
00738     
00739     inline void MainWindow::on_checkTriforce4_clicked(bool checked)
00740         { selectTriforce(4, checked); }
00741     
00742     inline void MainWindow::on_checkTriforce5_clicked(bool checked)
00743         { selectTriforce(5, checked); }
00744     
00745     inline void MainWindow::on_checkTriforce6_clicked(bool checked)
00746         { selectTriforce(6, checked); }
00747     
00748     inline void MainWindow::on_checkTriforce7_clicked(bool checked)
00749         { selectTriforce(7, checked); }
00750     
00751     inline void MainWindow::on_checkTriforce8_clicked(bool checked)
00752         { selectTriforce(8, checked); }
00753         
00754     inline void MainWindow::on_checkWand_clicked(bool checked)
00755         { selectItem(ITEM_WAND, checked); }
00756         
00757     inline void MainWindow::on_checkWhistle_clicked(bool checked)
00758         { selectItem(ITEM_WHISTLE, checked); }
00759         
00760     inline void MainWindow::on_fileExit_triggered(bool)
00761         { close(); }
00762         
00763     inline void MainWindow::on_radioArrowsNone_clicked(bool)
00764         { selectArrows(ARROW_NONE); }
00765         
00766     inline void MainWindow::on_radioArrowsSilver_clicked(bool)
00767         { selectArrows(ARROW_SILVER); }
00768         
00769     inline void MainWindow::on_radioArrowsWooden_clicked(bool)
00770         { selectArrows(ARROW_WOODEN); }
00771         
00772     inline void MainWindow::on_radioCandleBlue_clicked(bool)
00773         { selectCandle(CANDLE_BLUE); }
00774         
00775     inline void MainWindow::on_radioCandleNone_clicked(bool)
00776         { selectCandle(CANDLE_NONE); }
00777         
00778     inline void MainWindow::on_radioCandleRed_clicked(bool)
00779         { selectCandle(CANDLE_RED); }
00780         
00781     inline void MainWindow::on_radioNoteLink_clicked(bool)
00782         { selectNote(NOTE_LINK); }
00783         
00784     inline void MainWindow::on_radioNoteOldMan_clicked(bool)
00785         { selectNote(NOTE_OLDMAN); }
00786         
00787     inline void MainWindow::on_radioNoteOldWoman_clicked(bool)
00788         { selectNote(NOTE_OLDWOMAN); }
00789         
00790     inline void MainWindow::on_radioQuestFirst_clicked(bool)
00791         { selectQuest(QUEST_FIRST); }
00792         
00793     inline void MainWindow::on_radioQuestSecond_clicked(bool)
00794         { selectQuest(QUEST_SECOND); }
00795         
00796     inline void MainWindow::on_radioPotionBlue_clicked(bool)
00797         { selectPotion(POTION_BLUE); }
00798         
00799     inline void MainWindow::on_radioPotionNone_clicked(bool)
00800         { selectPotion(POTION_NONE); }
00801         
00802     inline void MainWindow::on_radioPotionRed_clicked(bool)
00803         { selectPotion(POTION_RED); }
00804         
00805     inline void MainWindow::on_radioRingBlue_clicked(bool)
00806         { selectRing(RING_BLUE); }
00807         
00808     inline void MainWindow::on_radioRingNone_clicked(bool)
00809         { selectRing(RING_NONE); }
00810         
00811     inline void MainWindow::on_radioRingRed_clicked(bool)
00812         { selectRing(RING_RED); }
00813         
00814     inline void MainWindow::on_radioSwordMaster_clicked(bool)
00815         { selectSword(SWORD_MASTER); }
00816         
00817     inline void MainWindow::on_radioSwordNone_clicked(bool)
00818         { selectSword(SWORD_NONE); }
00819         
00820     inline void MainWindow::on_radioSwordWhite_clicked(bool)
00821         { selectSword(SWORD_WHITE); }
00822         
00823     inline void MainWindow::on_radioSwordWooden_clicked(bool)
00824         { selectSword(SWORD_WOODEN); }
00825 }
00826 
00827 #endif
00828 

Generated on Mon Dec 29 00:56:07 2008 for Legend of Zelda SRAM Editor by  doxygen 1.5.4