mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
TextItem editor has been refactored
This commit is contained in:
@@ -11,6 +11,8 @@ namespace LimeReport{
|
||||
|
||||
class ReportEnginePrivate;
|
||||
class BaseDesignIntf;
|
||||
class PageDesignIntf;
|
||||
class BandDesignIntf;
|
||||
|
||||
namespace Ui {
|
||||
class ScriptEditor;
|
||||
@@ -23,21 +25,26 @@ public:
|
||||
explicit ScriptEditor(QWidget *parent = 0);
|
||||
~ScriptEditor();
|
||||
void setReportEngine(ReportEnginePrivate* reportEngine);
|
||||
void setReportPage(PageDesignIntf* page);
|
||||
void setPageBand(BandDesignIntf* band);
|
||||
void initCompleter();
|
||||
QByteArray saveState();
|
||||
void restoreState(QByteArray state);
|
||||
void setPlainText(const QString &text);
|
||||
void setEditorFont(QFont font);
|
||||
QFont editorFont();
|
||||
QString toPlainText();
|
||||
signals:
|
||||
void splitterMoved(int, int);
|
||||
private slots:
|
||||
void on_twData_doubleClicked(const QModelIndex &index);
|
||||
|
||||
void on_twScriptEngine_doubleClicked(const QModelIndex &index);
|
||||
|
||||
private:
|
||||
void addItemToCompleater(const QString& pageName, BaseDesignIntf* item, QStringList& dataWords);
|
||||
private:
|
||||
Ui::ScriptEditor *ui;
|
||||
ReportEnginePrivate* m_reportEngine;
|
||||
PageDesignIntf* m_page;
|
||||
QCompleter* m_completer;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user