This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void QwtArrayPlotItem::draw( QPainter *painter, | |
const QwtScaleMap &xMap, const QwtScaleMap &yMap, | |
const QRectF &canvasRect ) const | |
{ | |
//some data checks first | |
if(!m_data) | |
return; | |
if(m_size<2) | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QRectF QwtArrayPlotItem::boundingRect() const | |
{ | |
//if we have valid rect, return it | |
if( m_boundingRect.isValid()) | |
return m_boundingRect; | |
//need to calculate | |
else if(m_data != 0 && m_size>1) | |
{ | |
double min =0.0; | |
double max =0.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QwtArrayPlotItem::QwtArrayPlotItem(const QwtText &title): | |
QwtPlotItem(title), | |
m_dt(1.0), | |
m_size(0), | |
m_data(0), | |
m_plotColor(Qt::red) | |
{ | |
setItemAttribute(QwtPlotItem::AutoScale, true); | |
setRenderHint(QwtPlotItem::RenderAntialiased,true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!define /date BUILD_YEAR "%Y" | |
!define PRODUCT_VERSION "${PRODUCT_MAJOR}.${PRODUCT_MINOR}.${PRODUCT_TIMESTAMP}.${PRODUCT_BUILD}" | |
!define PRODUCT_NAME "AwesomeProgram" | |
!define OUT_FILE_NAME "${PPRODUCT_NAME}_${PRODUCT_VERSION}_setup.exe" | |
;version info | |
VIProductVersion "${PRODUCT_VERSION}" | |
VIAddVersionKey "ProductName" "Awesome Program Installer" | |
VIAddVersionKey "OriginalFilename" "${OUT_FILE_NAME}" | |
VIAddVersionKey "CompanyName" "Awesomness Inc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!searchparse /file ${PATH_TO_SOURCE}\Properties\AssemblyInfo.cs `[assembly: AssemblyFileVersion("` PRODUCT_VERSION `")]` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!define PATH_TO_SOURCE "d:\path\to\source" | |
!searchparse /file ${PATH_TO_SOURCE}\version.h `#define APP_VERSION ` MAJOR `,` MINOR `,` TIMESTAMP `,` BUILD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!define PRODUCT_MAJOR "1" | |
!define PRODUCT_MINOR "0" | |
!define /date PRODUCT_TIMESTAMP "%y%j" | |
!define BUILDFILE "LastBuild.txt" | |
!include "${BUILDFILE}" | |
!if ${LAST_TIMESTAMP} != ${PRODUCT_TIMESTAMP} | |
!define NEW_BUILD_NUMBER 0 | |
!else | |
!define /math NEW_BUILD_NUMBER ${LAST_BUILD_NUMBER} + 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!define PRODUCT_MAJOR "1" | |
!define PRODUCT_MINOR "0" | |
!define /date PRODUCT_TIMESTAMP "%y%j" | |
!define /date PRODUCT_BUILD "%H%M" | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!define PRODUCT_MAJOR "1" | |
!define PRODUCT_MINOR "0" | |
!define PRODUCT_TIMESTAMP "13293" | |
!define PRODUCT_BUILD "1" | |
!define PRODUCT_VERSION "${PRODUCT_MAJOR}.${PRODUCT_MINOR}.${PRODUCT_TIMESTAMP}.${PRODUCT_BUILD}" | |
!define PRODUCT_NAME "AwesomeProgram" | |
!define OUT_FILE_NAME "${PPRODUCT_NAME}_${PRODUCT_VERSION}_setup.exe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!define MSVS_DIR "d:\MSVS2010" | |
;Request application privileges for Windows Vista, 7, 8 | |
RequestExecutionLevel admin | |
... | |
Section "MyApp" MyApp |
NewerOlder