blob: ac95dd4e6d027f63f0703954069957d17d1a7cc5 (
plain)
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
|
// -*- C++ -*-
// pageSizeWidget.h
//
// Part of KVIEWSHELL - A framework for multipage text/gfx viewers
//
// (C) 2002 Stefan Kebekus
// Distributed under the GPL
// Add header files alphabetically
#ifndef PAGESIZEWIDGET_H
#define PAGESIZEWIDGET_H
#include "pageSize.h"
#include "pageSizeWidget_base.h"
class TQDoubleValidator;
class pageSizeWidget : public pageSizeWidget_base
{
Q_OBJECT
public:
pageSizeWidget( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
// Sets the page size. If the dialog is already shown, updates all
// the GUI. Accepts the same strings as input as the setPageSize()
// method of the pageSize() class.
void setPageSize(const TQString&);
void setOrientation(int ori);
const pageSize &pageSizeData() const {return chosenSize;}
protected slots:
void paperSize(int);
void fillTextFields();
// Dummy function, for convenience. Ignores the argument and calls
// the fillTextFields() slot.
void unitsChanged(int);
void orientationChanged(int = 0);
void input(const TQString &);
private:
pageSize chosenSize;
TQDoubleValidator *widthValidator;
TQDoubleValidator *heightValidator;
};
#endif // PAGESIZEWIDGET_H
|