Changeset b424a7e320 in tspsg for src/mainwindow.h


Ignore:
Timestamp:
Aug 2, 2009, 9:47:45 PM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
6b3d3c1bbb
Parents:
9aa0e521ed
Message:

+ Current file name is displayed in main application window header.

  • Created a method for prompt for unsaved changes to unify it throughout the code.
  • Some stylistic README changes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.h

    r9aa0e521ed rb424a7e320  
    3838{
    3939        Q_OBJECT
     40
    4041public:
    4142        MainWindow(QWidget *parent = 0);
    4243        void closeEvent(QCloseEvent *);
     44
    4345private slots:
    4446        void actionFileNewTriggered();
     
    5860        void spinCitiesValueChanged(int);
    5961        void numCitiesChanged(int);
     62
    6063private:
    6164        QSettings *settings;
    6265        QPrinter *printer;
    6366        CTSPModel *tspmodel;
     67        QString fileName;
    6468        QActionGroup *groupSettingsLanguageList;
    6569        QStringList output;
     70        void enableSolutionActions(bool enable = true);
     71        void initDocStyleSheet();
    6672        bool loadLanguage(QString lang = "");
    6773        void loadLangList();
    68         void initDocStyleSheet();
     74        bool maybeSave();
     75        void outputMatrix(tMatrix, QStringList &, int nRow = -1, int nCol = -1);
     76        void setFileName(QString fileName = trUtf8("Untitled") + ".tspt");
    6977        bool saveTask();
    70         void outputMatrix(tMatrix, QStringList &, int nRow = -1, int nCol = -1);
    71         void enableSolutionActions(bool enable = true);
    7278};
    7379
Note: See TracChangeset for help on using the changeset viewer.