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



src/inspectorj/client/sessionprofiledialog.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 SESSION_PROFILE_DIALOG_H
00028 #define SESSION_PROFILE_DIALOG_H
00029 
00030 #include "inspectorj/client/sessionprofile.h"  
00031 #include "inspectorj/client/wizardcontrol.h"    
00032 #include "inspectorj/toolset/profiletoolset.h"
00033 #include "stdlib.h"
00034 #include "ui_sessionprofiledlg.h"      
00035 #include <QRegExp> 
00036 #include <QFileDialog>    
00037 
00038 namespace inspectorj {
00039 namespace client {   
00040 
00047 class SessionProfileDialog : public QDialog, public Ui::SessionProfileDlg
00048 {
00049     Q_OBJECT
00050 
00051     public:
00052         SessionProfileDialog(QMap<QString, SessionProfile>&, QString profileName);
00053         ~SessionProfileDialog(); 
00054         void setProfileDir(QString);      
00055  
00056     private slots:      
00057         void updateAddBtn(QString);
00058         void updateRemoveBtn();
00059         void updateAddClassPathBtn(QString);
00060         void updateRemoveClassPathBtn();        
00061         void addFilter();        
00062         void removeFilter();
00063         void addClassPath();        
00064         void removeClassPath();        
00065         void saveProfile();
00066         void browseJreHome();
00067         void browseTomcatHome();
00068         void browseClassPath();
00069         void updateNavigationBtns();
00070 
00071     private:
00072         void initDialog();
00073         bool isPageValid(int);
00074         QString profileDir;
00075         
00077         QMap<QString, SessionProfile> &profiles;
00078         
00080         QList<QWidget*> pages;
00081         
00083         WizardControl *wizard;        
00084         
00086         SessionProfile profile;        
00087         
00088 };
00089 
00090 } 
00091 } // end namespace inspectorj
00092 
00093 #endif // SESSION_PROFILE_DIALOG_H

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