Changeset 67e53c96d7 in tspsg


Ignore:
Timestamp:
Oct 20, 2007, 9:16:42 PM (17 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
e664262f7d
Parents:
fc9f661ded
Message:

Started writing solving algorithm

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.cpp

    rfc9f661ded r67e53c96d7  
    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}
  • src/mainwindow.h

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

    rfc9f661ded r67e53c96d7  
    4141};
    4242
    43 #endif //  SETTINGSDIALOG_H
     43#endif // SETTINGSDIALOG_H
    4444
  • tspsg.pro

    rfc9f661ded r67e53c96d7  
    11######################################################################
    2 # Automatically generated by qmake (2.01a) ?? 13. ??? 03:18:10 2007
     2# Automatically generated by qmake (2.01a) ?? 20. ??? 18:37:06 2007
    33######################################################################
    44
     
    99
    1010# Input
    11 HEADERS += src/mainwindow.h src/settingsdialog.h
     11HEADERS += src/mainwindow.h src/settingsdialog.h src/tspsolver.h
    1212FORMS += ui/mainwindow.ui ui/settingsdialog.ui
    13 SOURCES += src/main.cpp src/mainwindow.cpp src/settingsdialog.cpp
     13SOURCES += src/main.cpp \
     14           src/mainwindow.cpp \
     15           src/settingsdialog.cpp \
     16           src/tspsolver.cpp
    1417RESOURCES += resources/tspsg.qrc
    1518TRANSLATIONS += i18n/English.ts i18n/Ukrainian.ts
Note: See TracChangeset for help on using the changeset viewer.