Changeset 21 in tspsg-svn for trunk/src/tspmodel.h


Ignore:
Timestamp:
Jun 22, 2009, 1:37:12 AM (15 years ago)
Author:
laleppa
Message:

+ Settings are now saved and restored.
+ Font color selection in settings.
+ Primitive about dialog.
+ Automatic resizing of cells to its contents in wince.

  • No "Save window position" checkbox in wince.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        11*.idb
         2*.ini
        23*.ncb
        34*.pdb
  • trunk/src/tspmodel.h

    r17 r21  
    3131#define MAX_CITIES 100
    3232// This value means infinity :-)
    33 #define INFINITY 1.7E+308
     33#ifndef INFINITY
     34        #define INFINITY 1.7E+308
     35#endif
    3436// This is string, which represents infinite value in table
    3537#define INFSTR "---"
    3638
    3739#include <QAbstractTableModel>
     40#include <QSettings>
    3841
    3942class CTSPModel: public QAbstractTableModel
     
    5154        void setNumCities(int);
    5255        void randomize();
    53         int randMin;
    54         int randMax;
    5556private:
     57        QSettings *settings;
    5658        double table[MAX_CITIES][MAX_CITIES];
    5759        int nCities;
Note: See TracChangeset for help on using the changeset viewer.