ij-16.png   inspectorJ -- JavaTM Profiler
sf project site browse source checkout source
SourceForge.net Logo



src/inspectorj/client/wizardcontrol.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   inspectorJ - java profiler                                            *
00003  *   Copyright (C) 2007 by James May
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 
00027 #ifndef INSPECTORJ_CLIENTWIZARDCONTROL_H
00028 #define INSPECTORJ_CLIENTWIZARDCONTROL_H
00029         
00030 #include <QList>
00031 #include <QWidget> 
00032 #include <QAbstractButton>               
00033 
00034 namespace inspectorj {
00035 
00036 namespace client {
00037 
00108 class WizardControl : public QObject
00109 {            
00110     Q_OBJECT
00111             
00112     public:
00113         WizardControl(QList<QWidget*>*, QAbstractButton*, QAbstractButton*);
00114         ~WizardControl();
00115         int getNumPages();
00116         int getCurrentPageNum();          
00117     
00118     signals:
00119         
00124         void pageChanged(int pageNum);
00125         
00130         void pageForward(int pageNum);
00131         
00136         void pageBackward(int pageNum);
00137         
00142         void firstPage();
00143         
00149         void lastPage(int pageNum);
00150                 
00151     private slots:
00152         void previousPage();
00153         void nextPage();
00154         
00155     private:
00156         
00157         void updateNavigationBtns();
00158                
00160         int currentPage; 
00161                 
00163         QList<QWidget*> *pages;       
00164 
00166         QAbstractButton* backNavCtrl;
00167         
00169         QAbstractButton* nextNavCtrl;   
00170 
00171 };
00172 
00173 }
00174 
00175 }
00176 
00177 #endif

Generated on Sun Aug 19 17:07:53 2007 for inspectorJ by  doxygen 1.5.1