~pkgcrosswire/bibletime/main

« back to all changes in this revision

Viewing changes to src/frontend/displaywindow/bttextwindowheaderwidget.h

  • Committer: Jonathan Marsden
  • Date: 2011-12-23 20:32:12 UTC
  • Revision ID: jmarsden@fastmail.fm-20111223203212-1g3e35rlhbys07iu
New upstream version 2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        * A new empty widget. updateMenu() is needed to update the label, menu items etc.
55
55
        */
56
56
        BtTextWindowHeaderWidget(BtTextWindowHeader *parent, CSwordModuleInfo::ModuleType mtype);
57
 
        /** Does nothing. All resources are freed and children deleted automatically.*/
58
 
        ~BtTextWindowHeaderWidget();
59
57
 
60
58
    public:
61
59
        /**
63
61
        * the existing menu items but doesn't add or remove them if the menu exists.
64
62
        * If the menu doesn't exist, creates it first and then updates it.
65
63
        */
66
 
        void updateWidget(QStringList newModulesToUse, QString thisModule, int newIndex);
 
64
        void updateWidget(QStringList newModulesToUse, QString thisModule, int newIndex, int leftLikeModules);
67
65
 
68
66
        /** Creates the menu from scratch and updates the items using updateMenu().*/
69
 
        void recreateWidget(QStringList newModulesToUse, QString thisModule, int newIndex);
 
67
        void recreateWidget(QStringList newModulesToUse, QString thisModule, int newIndex, int leftLikeModules);
70
68
 
71
69
    signals:
72
70
        /** User selected a module from menu to replace an existing module.*/