Debian Codegraph @

CutDialog.h

raw symbols SCIP
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 <QDialog>
25
26 namespace Ui {
27 class CutDialog;
28 }
29
30 // This dialog asks the user what settings to use for cutting.
31 class CutDialog : public QDialog
32 {
33 Q_OBJECT
34
35 public:
36 explicit CutDialog(QWidget *parent = 0);
37 ~CutDialog();
38
39 // The media code. See CutDialog.ui for a list.
40 int media() const;
41 // The speed (1-10).
42 int speed() const;
43 // The cutting pressure (1-33).
44 int pressure() const;
45 // Track enhancing. This is when the cutter rolls the media backwards and forwards
46 // a few times before cutting in order to indent it with tracks where the rollors are.
47 // The idea is that it will slip less after that is done.
48 bool trackEnhancing() const;
49
50 // Whether to search.
51 bool regMark() const;
52 bool regSearch() const;
53 // Positions of the registration marks.
54 double regWidth() const;
55 double regHeight() const;
56
57 protected:
58 void changeEvent(QEvent *e);
59
60 private slots:
61 // When they change the media selection, update the default speed and pressure.
62 void onMediaChanged(int idx);
63 private:
64 Ui::CutDialog *ui;
65 };