|
|
#include <qfile.h> | #include <qfile.h> |
#include <qpainter.h> | #include <qpainter.h> |
#include <cstdio> // tmpfile | #include <cstdio> // tmpfile |
|
#include <cstdlib> |
| |
QString KSExportPictureDlg::m_file_name; | QString KSExportPictureDlg::m_file_name; |
int KSExportPictureDlg::m_file_format = 0; | int KSExportPictureDlg::m_file_format = 0; |
|
|
{ | { |
Q_OBJECT | Q_OBJECT |
public: | 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(); | ~KSWizardDlgSurface(); |
| |
public slots: | public slots: |
|
|
* MPSymbol *QSFormula::parse( const QString& formula, MPError& error, FactoryList *locals ) | * MPSymbol *QSFormula::parse( const QString& formula, MPError& error, FactoryList *locals ) |
* @author Kamil | * @author Kamil |
*/ | */ |
|
int yyparse( void *formula_ptr ); |
class MPFormula { | class MPFormula { |
friend int yylex( MPParserSymbol *symbol_value, void *location_info_ptr, void *formula_ptr ); | 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 ); | friend void yyerr( const char *message, void *location_info_ptr, void *formula_ptr ); |
|
|
#include"mpsymbols.h" | #include"mpsymbols.h" |
#include <cmath> | #include <cmath> |
#include <cstdio> | #include <cstdio> |
|
#include <cstdlib> |
| |
void yyerr( const char *message, void *location_info_ptr, void *formula_ptr ); | void yyerr( const char *message, void *location_info_ptr, void *formula_ptr ); |
int yylex( YYSTYPE *symbol_value, void *location_info_ptr, void *formula_ptr ); | int yylex( YYSTYPE *symbol_value, void *location_info_ptr, void *formula_ptr ); |
|
|
| |
#include"mpsymbol.h" | #include"mpsymbol.h" |
#include <string> | #include <string> |
|
#include <cstring> |
|
#include <cstdlib> |
| |
//--------------------------------------------------------------------------// | //--------------------------------------------------------------------------// |
| |
|
|
#include <qmessagebox.h> | #include <qmessagebox.h> |
#include <qpainter.h> | #include <qpainter.h> |
#include <qcursor.h> | #include <qcursor.h> |
|
#include <cstdlib> |
|
#include <climits> |
| |
//--------------------------------------------------------------------// | //--------------------------------------------------------------------// |
//--------------------------------------------------------------------// | //--------------------------------------------------------------------// |
|
|
***************************************************************************/ | ***************************************************************************/ |
| |
#include <cassert> | #include <cassert> |
|
#include <cstdlib> |
#include <cstdio> // P_tmpdir | #include <cstdio> // P_tmpdir |
#include <unistd.h> // unlink | #include <unistd.h> // unlink |
#include <fcntl.h> | #include <fcntl.h> |
|
|
#include"qsaxis.h" | #include"qsaxis.h" |
#include <qregexp.h> | #include <qregexp.h> |
#include <cassert> | #include <cassert> |
#include <algo.h> // this is needed for is_sorted |
#include <ext/algorithm> // this is needed for __gnu_cxx::is_sorted |
|
using namespace __gnu_cxx; |
|
|
| |
//-------------------------------------------------------------// | //-------------------------------------------------------------// |
//-------------------------------------------------------------// | //-------------------------------------------------------------// |
|
|
#include"qsdrvqt.h" | #include"qsdrvqt.h" |
#include"qsplotview.h" | #include"qsplotview.h" |
#include <qpainter.h> | #include <qpainter.h> |
|
#include <cstdlib> |
| |
QSTool::QSTool( QObject *parent ) | QSTool::QSTool( QObject *parent ) |
: QObject( parent ) | : QObject( parent ) |
|
|
friend QString toQString( const QSGColor& a ); | friend QString toQString( const QSGColor& a ); |
friend QSGColor toQSGColor( const QString& s ); | 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 ); |
| |
//-------------------------------------------------------------// | //-------------------------------------------------------------// |
| |
|
|
friend QString toQString( const QSGFont& font ); | friend QString toQString( const QSGFont& font ); |
friend QSGFont toQSGFont( const QString& string ); | 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 ); |
| |
//-------------------------------------------------------------// | //-------------------------------------------------------------// |
| |
|
|
friend QString toQString( const QSGLine& line ); | friend QString toQString( const QSGLine& line ); |
friend QSGLine toQSGLine( const QString& string ); | 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 ); |
| |
| |
//-------------------------------------------------------------// | //-------------------------------------------------------------// |
|
|
friend QString toQString( const QSGFill& fill ); | friend QString toQString( const QSGFill& fill ); |
friend QSGFill toQSGFill( const QString& string ); | 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 ); |
| |
| |
| |
|
|
friend QString toQString( const QSGPoint& point ); | friend QString toQString( const QSGPoint& point ); |
friend QSGPoint toQSGPoint( const QString& string ); | 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 ); |
| |
//-------------------------------------------------------------// | //-------------------------------------------------------------// |
| |
|
|
friend QString toQString( const QSGArrow& arrow ); | friend QString toQString( const QSGArrow& arrow ); |
friend QSGArrow toQSGArrow( const QString& string ); | 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 ); |
| |
//-------------------------------------------------------------// | //-------------------------------------------------------------// |
| |
|
|
bool m_all_colors; | bool m_all_colors; |
void set_default_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 ); |
| |
| |
//-------------------------------------------------------------// | //-------------------------------------------------------------// |
|
|
QSPt2f m_prev; | QSPt2f m_prev; |
QSPt2f m_prev_prev; | QSPt2f m_prev_prev; |
QSGLine curr_line; | QSGLine curr_line; |
void get_stair( const QSPt2f& pos, QSPt2f pos[3] ); |
void get_stair( const QSPt2f& pos, QSPt2f pts[3] ); |
}; | }; |
| |
#endif | #endif |