{
Q_OBJECT
public:
private:
Drawer *draw;
};
{
Q_OBJECT
public:
private slots:
void random();
void tableSize();
private:
};
{
Q_OBJECT
public:
private slots:
void network_cost();
void tariffChosen();
private:
void n_cost();
int BTSelected();
int FranceSelected();
int BelgSelected();
int ItaliaSelected();
int BTPath();
int FrancePath();
int BelgPath();
int ItaliaPath();
int tariffReturn();
int isChecked;
};
{
Q_OBJECT
public:
private slots:
void rentalCost();
void priceSlot();
private:
QLineEdit *cYear1,
*cYear2,
*cYear3,
*cYear4,
*cYear5;
QLineEdit *rYear1,
*rYear2,
*rYear3,
*rYear4,
*rYear5;
};
{
Q_OBJECT
public:
private:
void createActions();
void createMenu();
};
#endif
class CreatorTab : public QWidget
{
Q_OBJECT
public:
CreatorTab(const QFileInfo &fileInfo, QWidget *parent = 0);
private:
Drawer *draw;
};
class DemandsTab : public QWidget
{
Q_OBJECT
public:
DemandsTab(const QFileInfo &fileInfo, QWidget *parent = 0);
private slots:
void obtain_values(QTableWidgetItem *items);
void random();
void tableSize();
private:
void randGen(QTableWidgetItem *items);
void changeSize(QTableWidgetItem *items);
QTableWidget *demands;
};
class DesignTab : public QWidget
{
Q_OBJECT
public:
DesignTab(const QFileInfo &fileInfo, QWidget *parent = 0);
private slots:
void network_cost();
void tariffChosen();
private:
void n_cost();
int BTSelected();
int FranceSelected();
int BelgSelected();
int ItaliaSelected();
int BTPath();
int FrancePath();
int BelgPath();
int ItaliaPath();
int tariffReturn();
int isChecked;
QLineEdit *display;
QLineEdit *display2;
QLineEdit *display3;
QComboBox *tariff1;
QTableWidget *tariff;
QLabel *belgNote;
QRadioButton *radio1;
QRadioButton *radio2;
};
class PriceTab : public QWidget
{
Q_OBJECT
public:
PriceTab(const QFileInfo &fileInfo, QWidget *parent = 0);
private slots:
void rentalCost();
void priceSlot();
private:
QLabel *price;
QLineEdit *initialCost;
QLineEdit *cYear1, *cYear2, *cYear3, *cYear4, *cYear5;
QLineEdit *rYear1, *rYear2, *rYear3, *rYear4, *rYear5;
};
class TabDialog : public QDialog
{
Q_OBJECT
public:
TabDialog(const QString &fileName, QWidget *parent = 0);
private:
QTabWidget *tabWidget;
void createActions();
void createMenu();
};
#endif
To copy to clipboard, switch view to plain text mode
Bookmarks