[SOLVED] CS代考计算机代写 #ifndef MAINWINDOW_H

30 $

File Name: CS代考计算机代写_#ifndef_MAINWINDOW_H.zip
File Size: 414.48 KB

SKU: 6539870541 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include
class CanvasWidget;

// No fancy color picker by default. It depends on another library.
#ifndef FANCY_COLOR_PICKER
#define FANCY_COLOR_PICKER 0
#endif

#if FANCY_COLOR_PICKER
namespace color_widgets { class ColorDialog; }
#endif

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
Q_OBJECT

public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();

protected:
// Overload the close event to ask the user about saving.
void closeEvent( QCloseEvent* event ) override;

private slots:
bool open();
bool saveAs();
void chooseColor();

void updateBrushPreview( const QImage& brush );

private:
bool saveChangesIfNeeded();

private:
Ui::MainWindow* ui;
CanvasWidget* canvas;

#if FANCY_COLOR_PICKER
color_widgets::ColorDialog* colorPicker;
#endif
};

#endif // MAINWINDOW_H

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS代考计算机代写 #ifndef MAINWINDOW_H
30 $