Changeset 12 in tspsg-svn for trunk/src


Ignore:
Timestamp:
Oct 20, 2007, 9:16:42 PM (17 years ago)
Author:
laleppa
Message:

Started writing solving algorithm

Location:
trunk/src
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mainwindow.cpp

    r11 r12  
    2525#include "mainwindow.h"
    2626
    27 // TODO: Saving window state on close.
     27// TODO: Saving window state on close
    2828
    2929MainWindow::MainWindow(QWidget *parent)
     
    8383//              tableTask->setColumnWidth(k,tableTask->viewport()->width() / n);
    8484        // If number of cities increased we need to reset headers and set
    85         // appropriate sizes for new column and row.
     85        // appropriate sizes for new column and row
    8686        if (increased) {
    8787QTableWidgetItem *item = new QTableWidgetItem(trUtf8("Город ") + QVariant(n).toString());
     
    130130void MainWindow::Solve()
    131131{
    132         tabWidget->setCurrentIndex(1);
     132        // tabWidget->setCurrentIndex(1);
     133CTSPSolver solver;
     134        solver.solve(spinCities->value(),NULL);
    133135        // TODO: Task solving goes here :-)
    134136}
  • trunk/src/mainwindow.h

    r11 r12  
    2828#include "ui_mainwindow.h"
    2929#include "settingsdialog.h"
     30#include "tspsolver.h"
    3031
    3132class MainWindow: public QMainWindow, Ui::MainWindow
  • trunk/src/settingsdialog.h

    r9 r12  
    4141};
    4242
    43 #endif //  SETTINGSDIALOG_H
     43#endif // SETTINGSDIALOG_H
    4444
Note: See TracChangeset for help on using the changeset viewer.