mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 11:30:29 +02:00
Alpha Version
it dose something right but let's see
This commit is contained in:
@@ -10,11 +10,11 @@ IntelliRasterImage::IntelliRasterImage(int width, int height, bool fastRendererO
|
||||
}
|
||||
|
||||
|
||||
IntelliRasterImage::Copy(const IntelliRasterImage& image)
|
||||
: IntelliImage(image.getWidth(), image.getHeight(), image.isFastRendering()){
|
||||
IntelliRasterImage* IntelliRasterImage::copy(const IntelliRasterImage& image){
|
||||
this->TypeOfImage = ImageType::RASTERIMAGE;
|
||||
IntelliRasterImage* raster = new IntelliRasterImage(imageData.width(), imageData.height(), this->fastRenderering);
|
||||
raster->imageData.copy(0,0,image.getWidth(),image.getWidth());
|
||||
return raster;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ public:
|
||||
*/
|
||||
IntelliRasterImage(int width, int height, bool fastRendererOn);
|
||||
|
||||
void copy(const IntelliRasterImage& image);
|
||||
IntelliRasterImage* copy(const IntelliRasterImage& image);
|
||||
|
||||
/*!
|
||||
* \brief An Destructor.
|
||||
|
||||
@@ -10,11 +10,11 @@ IntelliShapedImage::IntelliShapedImage(int width, int height, bool fastRendererO
|
||||
this->fastRenderering = fastRendererOn;
|
||||
}
|
||||
|
||||
IntelliShapedImage::Copy(const IntelliShapedImage& image)
|
||||
: IntelliRasterImage(image.getWidth(), image.getHeight(), image.isFastRendering()){
|
||||
IntelliShapedImage* IntelliShapedImage::copy(const IntelliShapedImage& image){
|
||||
this->TypeOfImage = ImageType::SHAPEDIMAGE;
|
||||
IntelliShapedImage* shaped = new IntelliShapedImage(imageData.width(), imageData.height(), this->fastRenderering);
|
||||
shaped->imageData.copy(0,0,image.getWidth(),image.getWidth());
|
||||
return shaped;
|
||||
}
|
||||
|
||||
IntelliShapedImage::~IntelliShapedImage(){
|
||||
|
||||
@@ -38,7 +38,7 @@ public:
|
||||
*/
|
||||
IntelliShapedImage(int width, int height, bool fastRendererOn);
|
||||
|
||||
void copy(const IntelliShapedImage& image);
|
||||
IntelliShapedImage* copy(const IntelliShapedImage& image);
|
||||
/*!
|
||||
* \brief An Destructor.
|
||||
*/
|
||||
|
||||
@@ -471,7 +471,7 @@ void PaintingArea::updateTools(){
|
||||
}
|
||||
|
||||
void PaintingArea::historyadd(){
|
||||
/*
|
||||
/*
|
||||
if (++historyPresent == 100) historyPresent = 0;
|
||||
historyMaxFuture = historyPresent;
|
||||
if (historyPresent == historyMaxPast) if (++historyMaxPast == 100) historyMaxPast = 0;
|
||||
@@ -480,7 +480,6 @@ void PaintingArea::historyadd(){
|
||||
for (unsigned long long i=0;i < layerBundle.size();i++) {
|
||||
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
void PaintingArea::historyGoBack(){
|
||||
|
||||
@@ -7,11 +7,6 @@
|
||||
int main(int argc, char*argv[]){
|
||||
// The main application
|
||||
QApplication app(argc, argv);
|
||||
|
||||
std::fstream file("test.txt");
|
||||
file << "Hallo welt";
|
||||
file.close();
|
||||
|
||||
// Create and open the main window
|
||||
IntelliPhotoGui window;
|
||||
window.show();
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
#include "GUI/IntelliPhotoGui.h"
|
||||
#include <QApplication>
|
||||
#include <QDebug>
|
||||
#include <vector>
|
||||
|
||||
int main(int argc, char*argv[]){
|
||||
// The main application
|
||||
QApplication app(argc, argv);
|
||||
|
||||
// Create and open the main window
|
||||
IntelliPhotoGui window;
|
||||
window.show();
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user