2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QDelimiterDialog.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QDELIMITERDIALOG_H
|
|
|
|
#define QDELIMITERDIALOG_H
|
|
|
|
|
|
|
|
#include "ui/QDelimiterUi.h"
|
2007-04-05 09:26:09 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
#include <string>
|
|
|
|
|
2007-04-05 12:12:07 +00:00
|
|
|
class QListWidgetItem;
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
|
|
|
class QMathDelimiter;
|
|
|
|
|
|
|
|
class QDelimiterDialog : public QDialog, public Ui::QDelimiterUi {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
QDelimiterDialog(QMathDelimiter * form);
|
2006-06-30 14:37:33 +00:00
|
|
|
public Q_SLOTS:
|
2007-04-05 12:12:07 +00:00
|
|
|
void on_leftLW_itemActivated(QListWidgetItem *);
|
2007-04-05 12:39:22 +00:00
|
|
|
void on_rightLW_itemActivated(QListWidgetItem *);
|
2007-04-05 12:12:07 +00:00
|
|
|
void on_leftLW_currentRowChanged(int);
|
|
|
|
void on_rightLW_currentRowChanged(int);
|
2006-08-16 14:22:47 +00:00
|
|
|
void on_matchCB_stateChanged(int);
|
2007-04-17 20:04:15 +00:00
|
|
|
void on_insertPB_clicked();
|
|
|
|
void on_sizeCO_activated(int);
|
2006-03-05 17:24:44 +00:00
|
|
|
private:
|
2007-04-12 16:49:01 +00:00
|
|
|
///
|
|
|
|
char_type doMatch(char_type const symbol) const;
|
2007-04-17 20:04:15 +00:00
|
|
|
///
|
|
|
|
void updateTeXCode(int size);
|
2006-03-05 17:24:44 +00:00
|
|
|
/// owning form
|
|
|
|
QMathDelimiter * form_;
|
2007-04-17 20:04:15 +00:00
|
|
|
/// TeX code that will be inserted.
|
|
|
|
QString tex_code_;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // QDELIMITERDIALOG_H
|