Changeset 07e43cf61a in tspsg for src/mainwindow.h


Ignore:
Timestamp:
Oct 5, 2012, 5:30:23 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
47c811cc09
Parents:
7a39458d16
git-author:
Oleksii Serdiuk <contacts@…> (10/05/12 17:30:23)
git-committer:
Oleksii Serdiuk <contacts@…> (10/05/12 21:58:30)
Message:

Improved compilation time by about 30%.

By reducing number of includes to only required minimum.

NOTE: Compilation time comparison was done by measuring compilation time
while using only one thread (i.e., "make -j1").

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.h

    r7a39458d16 r07e43cf61a  
    3232
    3333#include "ui_mainwindow.h"
    34 #include "settingsdialog.h"
     34#include "tspsolver.h"
    3535
    36 #include "tspmodel.h"
     36#include <QPicture>
    3737
    3838#ifdef Q_OS_WIN32
     
    4141#endif
    4242
    43 using namespace TSPSolver;
     43class CTSPModel;
     44
     45#ifndef HANDHELD
     46    class QtToolbarDialog;
     47    class QtToolBarManager;
     48#endif
     49
     50#ifndef QT_NO_PRINTER
     51    class QPrinter;
     52#endif
    4453
    4554/*!
     
    143152    void closeEvent(QCloseEvent *ev);
    144153    void dragEnterEvent(QDragEnterEvent *ev);
    145     void drawNode(QPainter &pic, int nstep, bool left = false, SStep *step = NULL);
     154    void drawNode(QPainter &pic, int nstep, bool left = false, TSPSolver::SStep *step = NULL);
    146155    void dropEvent(QDropEvent *ev);
    147156    QByteArray generateImage(const QString &format);
     
    152161    void loadToolbarList();
    153162    bool maybeSave();
    154     void outputMatrix(QTextCursor &cur, const TMatrix &matrix);
    155     void outputMatrix(QTextCursor &cur, const SStep &step);
     163    void outputMatrix(QTextCursor &cur, const TSPSolver::TMatrix &matrix);
     164    void outputMatrix(QTextCursor &cur, const TSPSolver::SStep &step);
    156165#ifdef Q_OS_SYMBIAN
    157166    void resizeEvent(QResizeEvent *ev);
     
    166175
    167176#ifdef Q_OS_SYMBIAN
     177#include <QMessageBox>
    168178// A quickly hacked QMessageBox for Symbian that supports three buttons.
    169179class QSMessageBox: public QMessageBox {
Note: See TracChangeset for help on using the changeset viewer.