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 #ifndef TESTERTESTPAGE_HPP 00023 #define TESTERTESTPAGE_HPP 00024 00025 #include <qwidget.h> 00026 #include <qstring.h> 00027 #include <qspinbox.h> 00028 #include <qcheckbox.h> 00029 #include <qcombobox.h> 00030 #include <qlineedit.h> 00031 #include "SymbolButton.h" 00032 00033 00034 class TesterTestPage : public QWidget 00035 { 00036 Q_OBJECT 00037 00038 public: 00039 TesterTestPage (QWidget *); 00040 ~TesterTestPage (); 00041 bool getTradeLong (); 00042 void setTradeLong (bool); 00043 bool getTradeShort (); 00044 void setTradeShort (bool); 00045 int getVolumePercent (); 00046 void setVolumePercent (int); 00047 double getEntryCom (); 00048 void setEntryCom (double); 00049 double getExitCom (); 00050 void setExitCom (double); 00051 int getTradeDelay (); 00052 void setTradeDelay (int); 00053 QString getPriceField (); 00054 void setPriceField (QString); 00055 int getBars (); 00056 void setBars (int); 00057 QString getSymbol (); 00058 QString getSymbolPath (); 00059 void setSymbol (QString); 00060 int getAccount (); 00061 void setAccount (int); 00062 QString getBarLength (); 00063 int getBarLengthIndex (); 00064 void setBarLength (QString); 00065 int getMargin (); 00066 void setMargin (int); 00067 bool getCommissionType (); 00068 void setCommissionType (bool); 00069 00070 public slots: 00071 void symbolButtonPressed (); 00072 00073 protected: 00074 QCheckBox *tradeLong; 00075 QCheckBox *tradeShort; 00076 QCheckBox *commissionType; 00077 SymbolButton *symbolButton; 00078 QLineEdit *entryCom; 00079 QLineEdit *exitCom; 00080 QSpinBox *account; 00081 QSpinBox *volumePercent; 00082 QSpinBox *margin; 00083 QSpinBox *tradeDelay; 00084 QSpinBox *bars; 00085 QComboBox *priceField; 00086 QComboBox *barLength; 00087 QStringList fieldList; 00088 QStringList barLengthList; 00089 }; 00090 00091 #endif