2001-08-29 02:08:04 +00:00
|
|
|
/**
|
|
|
|
* \file lengthcombo.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LENGTHCOMBO_H
|
|
|
|
#define LENGTHCOMBO_H
|
|
|
|
|
|
|
|
#include <config.h>
|
2002-03-21 21:21:28 +00:00
|
|
|
|
|
|
|
#include <qcombobox.h>
|
|
|
|
|
|
|
|
#include "vspace.h"
|
2001-08-29 02:08:04 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A combo box for selecting LyXLength::UNIT types.
|
|
|
|
*/
|
|
|
|
class LengthCombo : public QComboBox {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
LengthCombo(QWidget * parent, char * name);
|
|
|
|
|
|
|
|
/// set the current item
|
|
|
|
virtual void setCurrentItem(LyXLength::UNIT unit);
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-29 02:08:04 +00:00
|
|
|
/// get the current item
|
|
|
|
LyXLength::UNIT currentLengthItem() const;
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-29 02:08:04 +00:00
|
|
|
protected slots:
|
|
|
|
virtual void has_activated(int index);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
/// the current selection has changed
|
|
|
|
void selectionChanged(LyXLength::UNIT unit);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|