2002-09-24 13:57:09 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-14 23:59:19 +00:00
|
|
|
/**
|
|
|
|
* \file QDelimiterDialog.h
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-09-14 23:59:19 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
2002-09-14 23:59:19 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QDELIMITERDIALOG_H
|
|
|
|
#define QDELIMITERDIALOG_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "ui/QDelimiterDialogBase.h"
|
2002-09-24 13:57:09 +00:00
|
|
|
#include "LString.h"
|
2002-09-14 23:59:19 +00:00
|
|
|
|
2003-06-17 00:30:47 +00:00
|
|
|
class QMathDelimiter;
|
2002-09-14 23:59:19 +00:00
|
|
|
class IconPalette;
|
|
|
|
class QLabel;
|
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
class QDelimiterDialog : public QDelimiterDialogBase {
|
2002-09-14 23:59:19 +00:00
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2003-06-17 00:30:47 +00:00
|
|
|
QDelimiterDialog(QMathDelimiter * form);
|
2002-09-14 23:59:19 +00:00
|
|
|
public slots:
|
2002-12-07 18:09:39 +00:00
|
|
|
void ldelim_clicked(const string & str);
|
|
|
|
void rdelim_clicked(const string & str);
|
2002-09-14 23:59:19 +00:00
|
|
|
void insertClicked();
|
|
|
|
protected:
|
|
|
|
//needed ? virtual void closeEvent(QCloseEvent * e);
|
|
|
|
private:
|
2003-06-28 01:23:11 +00:00
|
|
|
void set_label(QLabel * label, const string & str);
|
2002-09-14 23:59:19 +00:00
|
|
|
|
2002-09-24 13:57:09 +00:00
|
|
|
/// symbol of left delimiter
|
2002-09-14 23:59:19 +00:00
|
|
|
string left_;
|
|
|
|
|
|
|
|
/// symbol of right delimiter
|
|
|
|
string right_;
|
2002-09-24 13:57:09 +00:00
|
|
|
|
2002-09-14 23:59:19 +00:00
|
|
|
/// owning form
|
2003-06-17 00:30:47 +00:00
|
|
|
QMathDelimiter * form_;
|
2002-09-14 23:59:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QDELIMITERDIALOG_H
|