#include "GuiView.h"
#include "qt_helpers.h"
-#include "debug.h"
-
#include <QDockWidget>
#include <QString>
#include <QTextCharFormat>
public Q_SLOTS:
// update content
void updateView();
- ///
- void update(bool full_source);
private:
///
bool canApply() const { return true; }
bool canApplyToReadOnly() const { return true; }
void updateView();
+ void enableView(bool enable);
+ void saveSession() const;
+ void restoreSession();
///@}
/// The title displayed by the dialog reflects source type.
\param fullSource get full source code
*/
QString getContent(bool fullSource);
- /** get the cursor position in the source code
- */
- std::pair<int, int> getRows() const;
+ // cursor position in the source code
+ struct Row { int begin; int end; };
+ Row getRows() const;
private:
/// The encapsulated widget.