summaryrefslogtreecommitdiffstats
path: root/kghostview/viewcontrol.h
blob: 93db268fe612efee16e302fe4ef02cf8b8747fa6 (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
#ifndef VIEWCONTROL_H
#define VIEWCONTROL_H

#include <tqdialog.h>
class TQComboBox;
class TQPushButton;


class ViewControl : public TQDialog
{
	TQ_OBJECT
  
public:
	ViewControl( TQWidget *parent, const char *name );
	TQComboBox* magComboBox;
	TQComboBox* mediaComboBox;
	TQComboBox* orientComboBox;
	TQPushButton *apply;

	/**
	 * Update the mag combo box.
	 **/
	void updateMag (int mag);

	/**
	 * Enable/disable the apply button.
	 **/
	void applyEnable (bool enable);

protected:
        int prevmag, prevmedia, prevorient;

public slots:
	void slotApplyClicked();
	void slotMagSelection (int i);
	void slotMediaSelection (int i);
	void slotOrientSelection (int i);

signals:
	void applyChanges();
};

#endif