Changeset 899d1b8e15 in tspsg for src/mainwindow.h


Ignore:
Timestamp:
Jun 24, 2009, 6:54:10 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:
ac4cb71650
Parents:
78282ec778
Message:

+ Selected application language is now saved and restored.
+ Added language selection entries to main menu.
+ On-the-fly language switching.
+ Loading corresponding Qt library language, if exists.

  • File/New? sets all table cells to zeros.
  • Translation updates to reflect recent changes.
  • Renamed language files from language names to language codes.
  • Renamed some slot to have unified signal/slot naming.
  • Printer settings are now persistant until application close.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mainwindow.h

    r78282ec778 r899d1b8e15  
    4343        void closeEvent(QCloseEvent *event);
    4444private slots:
    45         void ChangeSettings();
    46         void showAbout();
     45        void actionFileNewTriggered();
     46        void actionSettingsPreferencesTriggered();
     47        void actionSettingsLanguageAutodetectTriggered(bool checked);
     48        void groupSettingsLanguageListTriggered(QAction *action);
     49        void actionHelpAboutTriggered();
    4750#ifndef Q_OS_WINCE
    48         void PrintSetup();
     51        void actionFilePrintSetupTriggered();
    4952#endif // Q_OS_WINCE
    50         void Solve();
    51         void Random();
    52         void CitiesNumberChanged(int n);
     53        void buttonSolveClicked();
     54        void buttonRandomClicked();
     55        void spinCitiesValueChanged(int n);
    5356private:
    5457        QSettings *settings;
     58        QPrinter *printer;
    5559        CTSPModel *tspmodel;
     60        QActionGroup *groupSettingsLanguageList;
     61        bool loadLanguage();
     62        void loadLangList();
    5663};
    5764
Note: See TracChangeset for help on using the changeset viewer.