plugins/quote/CSV/CSVRuleDialog.h

Go to the documentation of this file.
00001 /*
00002  *  Qtstalker stock charter
00003  *
00004  *  Copyright (C) 2001-2007 Stefan S. Stratigakos
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
00019  *  USA.
00020  */
00021 
00022 #include <qtabdialog.h>
00023 #include <qlineedit.h>
00024 #include <qcombobox.h>
00025 #include <qcheckbox.h>
00026 #include <qdatetimeedit.h>
00027 #include <qstringlist.h>
00028 #include <qlistbox.h>
00029 #include <qspinbox.h>
00030 #include "FileButton.h"
00031 #include "Toolbar.h"
00032 
00033 class CSVRuleDialog : public QTabDialog
00034 {
00035   Q_OBJECT
00036   
00037   public:
00038     CSVRuleDialog (QWidget *, QString &);
00039     ~CSVRuleDialog ();
00040     void createRulePage ();
00041     void loadRule ();
00042     
00043   public slots:
00044     void saveRule ();
00045     void insertField ();
00046     void deleteField ();
00047     void help ();
00048     void comboChanged (int);
00049     void textChanged (const QString &);
00050     void ruleFieldSelected (int);
00051     void fieldListSelected (int);
00052           
00053   private:
00054     Toolbar *ruleToolbar;
00055     QListBox *ruleList;
00056     QListBox *fieldList;
00057     QLineEdit *ruleName;
00058     QString helpFile;
00059     QLineEdit *directory;
00060     QLineEdit *symbolFilter;
00061     QComboBox *type;
00062     QComboBox *delimiter;
00063     bool saveFlag;
00064     QString rulePath;
00065 };
00066