| 1 | /*************************************************************************** |
| 2 | * This file is part of Robocut. * |
| 3 | * Copyright (C) 2010 Tim Hutt <[email protected]> * |
| 4 | * Copyright (C) 2010 Markus Schulz <[email protected]> * |
| 5 | * * |
| 6 | * This program is free software; you can redistribute it and/or modify * |
| 7 | * it under the terms of the GNU General Public License as published by * |
| 8 | * the Free Software Foundation; either version 3 of the License, or * |
| 9 | * (at your option) any later version. * |
| 10 | * * |
| 11 | * This program is distributed in the hope that it will be useful, * |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 | * GNU General Public License for more details. * |
| 15 | * * |
| 16 | * You should have received a copy of the GNU General Public License * |
| 17 | * along with this program; if not, write to the * |
| 18 | * Free Software Foundation, Inc., * |
| 19 | * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. * |
| 20 | ***************************************************************************/ |
| 21 | |
| 22 | #pragma once |
| 23 | |
| 24 | #include <QMainWindow> |
| 25 | |
| 26 | #include <QGraphicsScene> |
| 27 | #include <QTimer> |
| 28 | #include <QGraphicsItem> |
| 29 | |
| 30 | #include "CutDialog.h"cxx . . $ `<file>/CutDialog.h`/ |
| 31 | |
| 32 | namespace Uicxx . . $ Ui/ |
| 33 | { |
| 34 | class MainWindowcxx . . $ Ui/MainWindow#; |
| 35 | } |
| 36 | |
| 37 | class MainWindowcxx . . $ MainWindow# : public QMainWindowcxx . . $ QMainWindow# |
| 38 | { |
| 39 | Q_OBJECTcxx . . $ MainWindow#QPrivateSignal# |
| 40 | |
| 41 | public: |
| 42 | MainWindowcxx . . $ MainWindow#MainWindow(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent = 0); |
| 43 | ~cxx . . $ MainWindow#`~MainWindow`(49f6e7a06ebc5aa8).MainWindowcxx . . $ MainWindow#(); |
| 44 | |
| 45 | private: |
| 46 | Uicxx . . $ Ui/::MainWindowcxx . . $ Ui/MainWindow# *uicxx . . $ MainWindow#ui.; |
| 47 | |
| 48 | // The cutting paths that were loaded from the SVG. |
| 49 | QListcxx . . $ QList#<QPolygonFcxx . . $ QPolygonF#> pathscxx . . $ MainWindow#paths.; |
| 50 | |
| 51 | // For displaying the cuts. |
| 52 | QGraphicsScenecxx . . $ QGraphicsScene#* scenecxx . . $ MainWindow#scene.; |
| 53 | |
| 54 | // The dialog that asks what settings to use. We keep this around and reuse it as necessary. |
| 55 | CutDialogcxx . . $ CutDialog#* cutDialogcxx . . $ MainWindow#cutDialog.; |
| 56 | |
| 57 | // The directory that the last file was opened from. |
| 58 | QStringcxx . . $ QString# lastOpenDircxx . . $ MainWindow#lastOpenDir.; |
| 59 | |
| 60 | // Timer for the cutting animation. |
| 61 | QTimercxx . . $ QTimer#* animationTimercxx . . $ MainWindow#animationTimer.; |
| 62 | // The circle that marks where the cutter blade is. |
| 63 | QGraphicsItemcxx . . $ QGraphicsItem#* cutMarkercxx . . $ MainWindow#cutMarker.; |
| 64 | // Cut marker progress. |
| 65 | int cutMarkerPathcxx . . $ MainWindow#cutMarkerPath.; // Current path. |
| 66 | int cutMarkerLinecxx . . $ MainWindow#cutMarkerLine.; // Current line in path |
| 67 | double cutMarkerDistancecxx . . $ MainWindow#cutMarkerDistance.; // Current distance along edge. |
| 68 | |
| 69 | QSizeFcxx . . $ QSizeF# mediaSizecxx . . $ MainWindow#mediaSize.; |
| 70 | |
| 71 | QStringcxx . . $ QString# filenamecxx . . $ MainWindow#filename.; |
| 72 | |
| 73 | public: |
| 74 | int sortFlagcxx . . $ MainWindow#sortFlag.; |
| 75 | int tspFlagcxx . . $ MainWindow#tspFlag.; |
| 76 | int cutFlagcxx . . $ MainWindow#cutFlag.; |
| 77 | char *fileValuecxx . . $ MainWindow#fileValue.; |
| 78 | |
| 79 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 80 | void on_actionZoom_Out_triggeredcxx . . $ MainWindow#on_actionZoom_Out_triggered(49f6e7a06ebc5aa8).(); |
| 81 | void on_actionZoom_In_triggeredcxx . . $ MainWindow#on_actionZoom_In_triggered(49f6e7a06ebc5aa8).(); |
| 82 | void on_actionReset_triggeredcxx . . $ MainWindow#on_actionReset_triggered(49f6e7a06ebc5aa8).(); |
| 83 | void on_actionAnimate_toggledcxx . . $ MainWindow#on_actionAnimate_toggled(b45ddcbc8423892c).(bool animate); |
| 84 | void on_actionManual_triggeredcxx . . $ MainWindow#on_actionManual_triggered(49f6e7a06ebc5aa8).(); |
| 85 | void on_actionCut_triggeredcxx . . $ MainWindow#on_actionCut_triggered(49f6e7a06ebc5aa8).(); |
| 86 | void on_actionExit_triggeredcxx . . $ MainWindow#on_actionExit_triggered(49f6e7a06ebc5aa8).(); |
| 87 | void on_actionAbout_triggeredcxx . . $ MainWindow#on_actionAbout_triggered(49f6e7a06ebc5aa8).(); |
| 88 | void on_actionOpen_triggeredcxx . . $ MainWindow#on_actionOpen_triggered(49f6e7a06ebc5aa8).(); |
| 89 | void on_actionReload_triggeredcxx . . $ MainWindow#on_actionReload_triggered(49f6e7a06ebc5aa8).(); |
| 90 | void on_actionIdentify_triggeredcxx . . $ MainWindow#on_actionIdentify_triggered(49f6e7a06ebc5aa8).(); |
| 91 | |
| 92 | // Advance the cutting animation frame. |
| 93 | void animatecxx . . $ MainWindow#animate(49f6e7a06ebc5aa8).(); |
| 94 | |
| 95 | private: |
| 96 | // Use empty string to indicate no file is loaded. |
| 97 | void setFileLoadedcxx . . $ MainWindow#setFileLoaded(7df51288a9ebd664).(QStringcxx . . $ QString# filename); |
| 98 | bool eventFiltercxx . . $ MainWindow#eventFilter(978aa4af1d030efa).(QObjectcxx . . $ QObject# *o, QEventcxx . . $ QEvent# *e); |
| 99 | void loadFilecxx . . $ MainWindow#loadFile(49f6e7a06ebc5aa8).(); |
| 100 | }; |