src/prefgeneral.h

00001 /***************************************************************************
00002                           prefgeneral.h  -  description
00003                              -------------------
00004     begin                : Fri Feb 27 2004
00005     copyright            : (C) 2003 by Lynn Hazan
00006     email                : lynn.hazan@myrealbox.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef PREFGENERAL_H
00019 #define PREFGENERAL_H
00020 
00021 // include files for QT
00022 #include <qwidget.h>
00023 #include <qcombobox.h>
00024 #include <qcheckbox.h> 
00025 #include <qspinbox.h>
00026 #include <qpushbutton.h>
00027 #include <qlineedit.h> 
00028 #include <qvalidator.h>
00029 
00030 //includes files for KDE
00031 #include <kcolorbutton.h>
00032 #include <kfiledialog.h>
00033 #include <klocale.h>
00034 #include <kmessagebox.h>
00035 
00036 //include files for the application
00037 #include <prefgenerallayout.h>
00038 
00044 class PrefGeneral : public PrefGeneralLayout  {
00045    Q_OBJECT
00046 public: 
00047      PrefGeneral(QWidget *parent=0, const char *name=0);
00048      ~PrefGeneral();
00049 
00050 
00052   inline void setBackgroundColor(const QColor& color){backgroundColorButton->setColor(color);};
00053 
00055   inline void setPaletteHeaders(bool show){headerCheckBox->setChecked(show);};
00056 
00058   inline void setEventPosition(int position){eventPositionSpinBox->setValue(position);};
00059 
00061   inline void setClusterPosition(int position){clusterPositionSpinBox->setValue(position);};
00062 
00064   inline QColor getBackgroundColor() const{return backgroundColorButton->color();};
00065 
00067   inline bool isPaletteHeadersDisplayed() const{return headerCheckBox->isChecked();};
00068 
00070   inline int getEventPosition()const{return eventPositionSpinBox->value();};
00071 
00073   inline int getClusterPosition()const{return clusterPositionSpinBox->value();};
00074   
00075  private:
00076 
00077   QIntValidator validator;
00078 };
00079 
00080 #endif

Generated on Mon Sep 17 20:47:31 2007 for NeuroScope by  doxygen 1.5.1