--- src/dialogs/ksexportpicturedlg.cpp +++ src/dialogs/ksexportpicturedlg.cpp @@ -36,6 +36,7 @@ #include #include #include // tmpfile +#include QString KSExportPictureDlg::m_file_name; int KSExportPictureDlg::m_file_format = 0; --- src/dialogs/kswizarddlgs.h +++ src/dialogs/kswizarddlgs.h @@ -31,7 +31,7 @@ { Q_OBJECT public: - KSWizardDlgSurface( QWidget *parent, KSWorkbook *workbook, KSSheet *sheet, QSAxes *parent, bool surface = true ); + KSWizardDlgSurface( QWidget *parent, KSWorkbook *workbook, KSSheet *sheet, QSAxes *parentx, bool surface = true ); ~KSWizardDlgSurface(); public slots: --- src/formula/mpformula.h +++ src/formula/mpformula.h @@ -42,6 +42,7 @@ * MPSymbol *QSFormula::parse( const QString& formula, MPError& error, FactoryList *locals ) * @author Kamil */ +int yyparse( void *formula_ptr ); class MPFormula { friend int yylex( MPParserSymbol *symbol_value, void *location_info_ptr, void *formula_ptr ); friend void yyerr( const char *message, void *location_info_ptr, void *formula_ptr ); --- src/formula/mpparser.cpp +++ src/formula/mpparser.cpp @@ -26,6 +26,7 @@ #include"mpsymbols.h" #include #include +#include void yyerr( const char *message, void *location_info_ptr, void *formula_ptr ); int yylex( YYSTYPE *symbol_value, void *location_info_ptr, void *formula_ptr ); --- src/formula/mpsymbol.cpp +++ src/formula/mpsymbol.cpp @@ -17,6 +17,8 @@ #include"mpsymbol.h" #include +#include +#include //--------------------------------------------------------------------------// --- src/ksmatrixeditor.cpp +++ src/ksmatrixeditor.cpp @@ -35,7 +35,8 @@ #include #include #include - +#include +#include //--------------------------------------------------------------------// //--------------------------------------------------------------------// --- src/kssocketio.cpp +++ src/kssocketio.cpp @@ -16,6 +16,7 @@ ***************************************************************************/ #include +#include #include // P_tmpdir #include // unlink #include --- src/widgets/qsaxis.cpp +++ src/widgets/qsaxis.cpp @@ -19,7 +19,9 @@ #include"qsaxis.h" #include #include -#include // this is needed for is_sorted +#include // this is needed for __gnu_cxx::is_sorted +using namespace __gnu_cxx; + //-------------------------------------------------------------// //-------------------------------------------------------------// --- src/widgets/qsctool.cpp +++ src/widgets/qsctool.cpp @@ -19,6 +19,7 @@ #include"qsdrvqt.h" #include"qsplotview.h" #include +#include QSTool::QSTool( QObject *parent ) : QObject( parent ) --- src/widgets/qsgattr.h +++ src/widgets/qsgattr.h @@ -62,6 +62,10 @@ friend QString toQString( const QSGColor& a ); friend QSGColor toQSGColor( const QString& s ); }; +bool operator==( const QSGColor&, const QSGColor& ); +bool operator!=( const QSGColor&, const QSGColor& ); +QString toQString( const QSGColor& a ); +QSGColor toQSGColor( const QString& s ); //-------------------------------------------------------------// @@ -87,6 +91,10 @@ friend QString toQString( const QSGFont& font ); friend QSGFont toQSGFont( const QString& string ); }; +bool operator==( const QSGFont&, const QSGFont& ); +bool operator!=( const QSGFont&, const QSGFont& ); +QString toQString( const QSGFont& font ); +QSGFont toQSGFont( const QString& string ); //-------------------------------------------------------------// @@ -120,7 +128,10 @@ friend QString toQString( const QSGLine& line ); friend QSGLine toQSGLine( const QString& string ); }; - +bool operator==( const QSGLine&, const QSGLine& ); +bool operator!=( const QSGLine&, const QSGLine& ); +QString toQString( const QSGLine& line ); +QSGLine toQSGLine( const QString& string ); //-------------------------------------------------------------// @@ -159,6 +170,10 @@ friend QString toQString( const QSGFill& fill ); friend QSGFill toQSGFill( const QString& string ); }; +bool operator==( const QSGFill&, const QSGFill& ); +bool operator!=( const QSGFill&, const QSGFill& ); +QString toQString( const QSGFill& fill ); +QSGFill toQSGFill( const QString& string ); @@ -202,6 +217,10 @@ friend QString toQString( const QSGPoint& point ); friend QSGPoint toQSGPoint( const QString& string ); }; +bool operator==( const QSGPoint&, const QSGPoint& ); +bool operator!=( const QSGPoint&, const QSGPoint& ); +QString toQString( const QSGPoint& point ); +QSGPoint toQSGPoint( const QString& string ); //-------------------------------------------------------------// @@ -243,6 +262,10 @@ friend QString toQString( const QSGArrow& arrow ); friend QSGArrow toQSGArrow( const QString& string ); }; +bool operator==( const QSGArrow&, const QSGArrow& ); +bool operator!=( const QSGArrow&, const QSGArrow& ); +QString toQString( const QSGArrow& arrow ); +QSGArrow toQSGArrow( const QString& string ); //-------------------------------------------------------------// @@ -287,6 +310,10 @@ bool m_all_colors; void set_default_colors(); }; +bool operator==( const QSGGradient&, const QSGGradient& ); +bool operator!=( const QSGGradient&, const QSGGradient& ); +QString toQString( const QSGGradient& arrow ); +QSGGradient toQSGGradient( const QString& string ); //-------------------------------------------------------------// --- src/widgets/qssegment.h +++ src/widgets/qssegment.h @@ -205,7 +205,7 @@ QSPt2f m_prev; QSPt2f m_prev_prev; QSGLine curr_line; - void get_stair( const QSPt2f& pos, QSPt2f pos[3] ); + void get_stair( const QSPt2f& pos, QSPt2f pts[3] ); }; #endif