Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

HighlightDialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   SpikeStream Application                                               *
00003  *   Copyright (C) 2007 by David Gamez                                     *
00004  *   david@davidgamez.eu                                                   *
00005  *   Version 0.1                                                           *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  *   This program is distributed in the hope that it will be useful,       *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00015  *   GNU General Public License for more details.                          *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; if not, write to the                         *
00019  *   Free Software Foundation, Inc.,                                       *
00020  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00021  ***************************************************************************/
00022 #ifndef HIGHLIGHTDIALOG_H
00023 #define HIGHLIGHTDIALOG_H
00024 
00025 //SpikeStream includes
00026 #include "NetworkViewer.h"
00027 
00028 //Qt includes
00029 #include <qdialog.h>
00030 #include <qwidget.h>
00031 #include <qpixmap.h>
00032 #include <qtextedit.h>
00033 #include <qcolor.h>
00034 #include <qaccel.h>
00035 
00036 //------------------------ Highlight Dialog -------------------------------
00037 /*! Controls highlights in the Network Viewer. */
00038 //--------------------------------------------------------------------------
00039 
00040 class HighlightDialog : public QDialog {
00041         Q_OBJECT
00042 
00043         public: 
00044                 HighlightDialog(QWidget* parent, NetworkViewer* nwViewer);
00045                 ~HighlightDialog();
00046 
00047 
00048         private slots:
00049                 void acceleratorKeyPressed(int acceleratorID);
00050                 void addHighlightButtonPressed();
00051                 void clearButtonPressed();
00052                 void closeButtonPressed();
00053                 void colorButtonPressed();
00054 
00055         private:
00056                 //========================= VARIABLES ==========================
00057                 /*! The class that displays the highlighted neurons.*/
00058                 NetworkViewer* networkViewer;
00059 
00060                 /*! The current highlight colour. */
00061                 QColor highlightColor;
00062 
00063                 /*! Links keys to methods.*/
00064                 QAccel *keyboardAccelerator;
00065 
00066                 //Qt variables
00067                 QTextEdit* neuronIDText;
00068                 QPixmap* colorPixmap;
00069                 QPushButton* colorButt;
00070 
00071 
00072                 //========================= METHODS ============================
00073                 /*! Declare copy constructor private so it cannot be used inadvertently.*/
00074                 HighlightDialog(const HighlightDialog&);
00075                 /*! Declare assignment private so it cannot be used inadvertently.*/
00076                 HighlightDialog operator = (const HighlightDialog&);
00077 
00078                 void showError(const QString& errMsg);
00079 
00080 };
00081 
00082 
00083 #endif//HIGHLIGHTDIALOG_H
00084 

Generated on Mon Sep 3 22:29:04 2007 for SpikeStream Application by  doxygen 1.4.4