-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes that were supposed to be commited in last commit
git-svn-id: http://svn.clifford.at/openscad/trunk@501 b57f626f-c46c-0410-a088-ec61d464b74c
- Loading branch information
kintel
committed
Apr 3, 2010
1 parent
1fb93c2
commit 9f58225
Showing
6 changed files
with
54 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,24 @@ | ||
#ifdef _QCODE_EDIT_ | ||
#include <qeditor.h> | ||
#define EDITOR QEditor | ||
class Editor : public QEditor | ||
#else | ||
#include <QTextEditor> | ||
#define EDITOR QTextEditor | ||
#include <QTextEdit> | ||
class Editor : public QTextEdit | ||
#endif | ||
{ | ||
public: | ||
#ifdef _QCODE_EDIT_ | ||
Editor(QWidget *parent) : QEditor(parent) {} | ||
QString toPlainText() const { return text(); } | ||
void setPlainText(const QString& text) { setText(text); } | ||
#else | ||
Editor(QWidget *parent) : QTextEdit(parent) {} | ||
void setLineWrapping(bool on) { if(on) setWordWrapMode(QTextOption::WrapAnywhere); } | ||
void setContentModified(bool y) { document()->setModified(y); } | ||
bool isContentModified() { return document()->isModified(); } | ||
void indentSelection(); | ||
void unindentSelection(); | ||
void commentSelection(); | ||
void uncommentSelection(); | ||
#endif | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters