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

importtab.h

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by Bjoern Erik Nilsen & Fredrik Berg Kjoelstad     *
00003  *   bjoern_erik_nilsen@hotmail.com & fredrikbk@hotmail.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 #ifndef IMPORTTAB_H
00021 #define IMPORTTAB_H
00022 
00023 #include <qtable.h>
00024 #include <qlineedit.h>
00025 #include <qpushbutton.h>
00026 #include <qgroupbox.h>
00027 #include <qlabel.h>
00028 
00029 #include <vector>
00030 using namespace std;
00031 
00032 
00038 class ImportTab : public QFrame
00039 {
00040         Q_OBJECT
00041 public:
00046         ImportTab( QWidget *parent = 0 );
00047         
00051         void makeGUI();
00052         
00056         void initializeImportValues();
00057         
00061         void apply();
00062         
00063 private slots:
00064         void addImportProgram();
00065         void removeImportProgram();
00066         void valueChanged(int row, int column);
00067         void activeRowChanged(int row);
00068         void changeSettings();
00069         void closeChangeBox();
00070         //These are called so often that I choose to have one for each
00071         //lineedit instead of 1 with test.
00072         void updatePrePollString(const QString &txt);
00073         void updateStartDeamonString(const QString &txt);
00074         void updatestopDeamonString(const QString &txt);
00075         
00076 private:
00077         int selectedDevice;
00078         int numGrabbers;
00079         
00080         //Cache these so that i they aren't flushed to the preftool until the user
00081         //press ok.
00082         vector<QString>prePollStrings;
00083         vector<QString>startDeamonStrings;
00084         vector<QString>stopDeamonStrings;
00085         
00086         QTable *deviceSelectionTable;
00087         QPushButton *addButton;
00088         QPushButton *removeButton;
00089         QPushButton *changeButton;
00090         QPushButton *closeChangeBoxButton;
00091         QLineEdit *prePollEdit;
00092         QLineEdit *startDeamonEdit;
00093         QLineEdit *stopDeamonEdit;
00094         QGroupBox *grabberPreferences;
00095         QGridLayout *grid;
00096         QGridLayout *grabberGrid;
00097         QSpacerItem *space3;
00098         QSpacerItem *rightSpace;
00099         QSpacerItem *leftSpace;
00100         QLabel *prePollLabel;
00101         QLabel *startDeamonLabel;
00102         QLabel *stopDeamonLabel;
00103         QCheckTableItem *checkTableItem;
00104         
00105         void updateChange(const QString &txt);
00106 };
00107 
00108 #endif

Generated on Thu May 19 01:51:20 2005 for stopmotion.kdevelop by  doxygen 1.4.2