File: guidemanager.h

package info (click to toggle)
scribus 1.2.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 29,928 kB
  • ctags: 8,814
  • sloc: cpp: 98,550; sh: 16,484; ansic: 10,295; perl: 2,818; makefile: 1,340; python: 1,177; xml: 83
file content (100 lines) | stat: -rw-r--r-- 1,705 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#ifndef GUIDEMANAGER_H
#define GUIDEMANAGER_H

#include <qdialog.h>
#include <qvaluelist.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qlistbox.h>
#include <qpushbutton.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include "mspinbox.h"
#include "page.h"


class GuideManager : public QDialog
{ 
    Q_OBJECT

public:
    GuideManager(
            QWidget* parent,
            QValueList<double> XGuides,
            QValueList<double> YGuides,
            double PageB,
            double PageH,
            bool GuideLock,
            int Einh
        );
    ~GuideManager() {};

	QValueList<double> LocHor;
	QValueList<double> LocVer;
	bool LocLocked;

private:
	double LocPageWidth;
	double LocPageHeight;
	int Einheit;
    QString tp[4];

	int selHor;
	int selVer;

	QGroupBox* VerGroup;
	QListBox* VerList;
	QLabel* TextLabel1;
	MSpinBox* VerSpin;
	QPushButton* VerSet;
	QPushButton* VerDel;
	
	QGroupBox* HorGroup;
	QListBox* HorList;
	QLabel* TextLabel2;
	MSpinBox* HorSpin;
	QPushButton* HorSet;
	QPushButton* HorDel;
	
	QCheckBox* Lock;
	
	QPushButton* OK;
	QPushButton* Cancel;

	QString GetUnit();
	void UnitChange();

	void UpdateHorList();
	void UpdateVerList();

	QVBoxLayout* GuideManagerLayout;
	QHBoxLayout* Layout6;
	QVBoxLayout* VerGroupLayout;
	QHBoxLayout* Layout2;
	QHBoxLayout* Layout1;
	
	QVBoxLayout* HorGroupLayout;
	QHBoxLayout* Layout4;
	QHBoxLayout* Layout3;
	
	QHBoxLayout* Layout5;

private slots:

	void DelHorVal();
	void DelVerVal();

	void AddHorVal();
	void AddVerVal();

	void HandleLock();

	void selHorIte(QListBoxItem *c);
	void selVerIte(QListBoxItem *c);

	void ChangeHorVal();
	void ChangeVerVal();
};

#endif // GUIDEMANAGER_H