mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
42015a8ebd
- LFUN_INSET_APPLY handling goes to GuiView. - Dialog needs a GuiView instead of a LyXView. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21734 a592a061-630c-0410-9148-cb99ea01b6c8
53 lines
1.0 KiB
C++
53 lines
1.0 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file GuiDelimiter.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 GUIDELIMITERDIALOG_H
|
|
#define GUIDELIMITERDIALOG_H
|
|
|
|
#include "GuiMath.h"
|
|
#include "ui_DelimiterUi.h"
|
|
|
|
class QListWidgetItem;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GuiDelimiter : public GuiMath, public Ui::DelimiterUi
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GuiDelimiter(GuiView & lv);
|
|
|
|
public Q_SLOTS:
|
|
void on_leftLW_itemActivated(QListWidgetItem *);
|
|
void on_rightLW_itemActivated(QListWidgetItem *);
|
|
void on_leftLW_currentRowChanged(int);
|
|
void on_rightLW_currentRowChanged(int);
|
|
void on_matchCB_stateChanged(int);
|
|
void on_insertPB_clicked();
|
|
void on_sizeCO_activated(int);
|
|
|
|
private:
|
|
///
|
|
char_type doMatch(char_type const symbol);
|
|
///
|
|
void updateTeXCode(int size);
|
|
|
|
/// TeX code that will be inserted.
|
|
QString tex_code_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // GUIDELIMITERDIALOG_H
|