Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

ModuleEnrolPage_wdgt.h

00001 /***************************************************************************
00002  *   Copyright (C) 2006 by Graeme Foster                                   *
00003  *   email    foster.graeme@gmail.com                                      *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 #ifndef __MODULE_ENROL_PAGE_WDGT_H
00022 #define __MODULE_ENROL_PAGE_WDGT_H
00023 
00024 #include <QtGui>
00025 #include "dbListManager.h"
00026 
00027 #include "ui_ModuleEnrolPage_wdgt.h"
00028 
00029 #include "MLAllocItem.h"
00030 
00031 class ControlPanel;
00032 
00033 class ModuleEnrolPageWidget : public QWidget
00034 {
00035     Q_OBJECT
00036 
00037 public: // methods
00038         ModuleEnrolPageWidget(ControlPanel  * mainWindow
00039                              ,QWidget * widgetParent
00040                              ,QBoxLayout * layoutParent
00041                              ,dbListManager * dataLists);
00042 protected: // Properties
00043         QVBoxLayout * vboxLayout;
00044         Ui::ModuleEnrolPage_wdgt wdgt;
00045         ControlPanel  * pMainWindow;
00046         dbListManager * pDataLists;
00047         
00048         RootItem * SelectedEnrol;
00049         
00050 private: // Methods
00051         void createActions();
00052 
00053         void inittrvModules(Institute * instObj);
00054         void enrolTabUpdates(void (MLAllocItem::*updateFn)(int),int value, QString msg);
00055         void classSizeClicked();
00056         void classGroupsClicked();
00057         void labHoursClicked();
00058         void labGroupsClicked();
00059 private slots:
00060         void cbxInstSelected(QString name);
00061         void itemSelectedEnrol(const QModelIndex & index);
00062         
00063         void classSizeUpdate(const QString & class_size);
00064         void classGroupsUpdate(const QString & class_groups);
00065         void labHoursUpdate(const QString &lab_hours);
00066         void labGroupsUpdate(const QString & lab_groups);
00067 };
00068 
00069 #endif

Generated on Thu Apr 6 16:27:17 2006 for time-table by  doxygen 1.4.4