Changeset 104 in tspsg-svn for trunk/src/mainwindow.h


Ignore:
Timestamp:
Apr 19, 2010, 10:33:02 PM (15 years ago)
Author:
laleppa
Message:
  • Improved the solution output generation algorithm. Now it works directly with QTextDocument instead of "feeding" it with HTML. Thanks to this the solution output generation is now about 1.65 times faster.
  • Added .txt extension to ChangeLog?, INSTALL and README files to simplify opening these files in Windows.
  • Made a small improvement to Settings Dialog to follow the current application palette.
  • Output text color if not set is now determmined based on the current application palette.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mainwindow.h

    r100 r104  
    101101#endif // Q_OS_WINCE_WM
    102102
     103        // Formats
     104        QTextTableFormat fmt_table;
     105        QTextBlockFormat fmt_paragraph,
     106                fmt_center;
     107        QTextCharFormat fmt_default,
     108                fmt_selected,
     109                fmt_alternate,
     110                fmt_altlist;
     111
    103112        void closeEvent(QCloseEvent *ev);
    104113        bool hasUpdater() const;
     
    107116        bool loadLanguage(const QString &lang = QString());
    108117        bool maybeSave();
    109         QString outputMatrix(const TMatrix &matrix) const;
    110         QString outputMatrix(const SStep &step) const;
     118        void outputMatrix(QTextCursor &cur, const TMatrix &matrix);
     119        void outputMatrix(QTextCursor &cur, const SStep &step);
    111120        void retranslateUi(bool all = true);
    112121        bool saveTask();
Note: See TracChangeset for help on using the changeset viewer.