1 // -*- C++ -*- 2 /** 3 * \file GuiDelimiter.h 4 * This file is part of LyX, the document processor. 5 * Licence details can be found in the file COPYING. 6 * 7 * \author John Levon 8 * 9 * Full author contact details are available in file CREDITS. 10 */ 11 12 #ifndef GUIDELIMITERDIALOG_H 13 #define GUIDELIMITERDIALOG_H 14 15 #include "GuiDialog.h" 16 17 #include "ui_DelimiterUi.h" 18 19 class QListWidgetItem; 20 21 namespace lyx { 22 namespace frontend { 23 24 class GuiDelimiter : public GuiDialog, public Ui::DelimiterUi 25 { 26 Q_OBJECT 27 28 public: 29 GuiDelimiter(GuiView & lv); 30 initialiseParams(std::string const &)31 bool initialiseParams(std::string const &) { return true; } clearParams()32 void clearParams() {} dispatchParams()33 void dispatchParams() {} isBufferDependent()34 bool isBufferDependent() const { return true; } 35 36 public Q_SLOTS: 37 void on_leftLW_itemActivated(QListWidgetItem *); 38 void on_rightLW_itemActivated(QListWidgetItem *); 39 void on_leftLW_currentRowChanged(int); 40 void on_rightLW_currentRowChanged(int); 41 void on_matchCB_stateChanged(int); 42 void on_insertPB_clicked(); 43 void on_swapPB_clicked(); 44 void on_sizeCO_activated(int); 45 46 private: 47 /// 48 char_type doMatch(char_type const symbol); 49 /// 50 void updateTeXCode(int size); 51 52 /// TeX code that will be inserted. 53 docstring tex_code_; 54 }; 55 56 } // namespace frontend 57 } // namespace lyx 58 59 #endif // GUIDELIMITERDIALOG_H 60