summaryrefslogtreecommitdiff
path: root/fluid/widgets/Code_Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/widgets/Code_Editor.cxx')
-rw-r--r--fluid/widgets/Code_Editor.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/fluid/widgets/Code_Editor.cxx b/fluid/widgets/Code_Editor.cxx
index 1551ed3e2..b30b08db1 100644
--- a/fluid/widgets/Code_Editor.cxx
+++ b/fluid/widgets/Code_Editor.cxx
@@ -33,7 +33,7 @@
Lookup table for all supported styles.
Every table entry describes a rendering style for the corresponding text.
*/
-Fl_Text_Display::Style_Table_Entry fld::widget::Code_Editor::styletable[] = { // Style table
+Fl_Text_Display::Style_Table_Entry Code_Editor::styletable[] = { // Style table
{ FL_FOREGROUND_COLOR, FL_COURIER, 11 }, // A - Plain
{ FL_DARK_GREEN, FL_COURIER_ITALIC, 11 }, // B - Line comments
{ FL_DARK_GREEN, FL_COURIER_ITALIC, 11 }, // C - Block comments
@@ -51,7 +51,7 @@ Fl_Text_Display::Style_Table_Entry fld::widget::Code_Editor::styletable[] = {
\param[in] in_len byte length to parse
\param[in] in_style starting style letter
*/
-void fld::widget::Code_Editor::style_parse(const char *in_tbuff, // text buffer to parse
+void Code_Editor::style_parse(const char *in_tbuff, // text buffer to parse
char *in_sbuff, // style buffer we modify
int in_len, // byte length to parse
char in_style) { // starting style letter
@@ -104,7 +104,7 @@ void fld::widget::Code_Editor::style_parse(const char *in_tbuff, // text
/**
Update unfinished styles.
*/
-void fld::widget::Code_Editor::style_unfinished_cb(int, void*) {
+void Code_Editor::style_unfinished_cb(int, void*) {
}
/**
@@ -114,7 +114,7 @@ void fld::widget::Code_Editor::style_unfinished_cb(int, void*) {
\param[in] nDeleted number of bytes deleted
\param[in] cbArg pointer back to the code editor
*/
-void fld::widget::Code_Editor::style_update(int pos, int nInserted, int nDeleted,
+void Code_Editor::style_update(int pos, int nInserted, int nDeleted,
int /*nRestyled*/, const char * /*deletedText*/,
void *cbArg) {
Code_Editor *editor = (Code_Editor*)cbArg;
@@ -165,7 +165,7 @@ void fld::widget::Code_Editor::style_update(int pos, int nInserted, int nDeleted
Find the right indentation depth after pressing the Enter key.
\param[in] e pointer back to the code editor
*/
-int fld::widget::Code_Editor::auto_indent(int, Code_Editor* e) {
+int Code_Editor::auto_indent(int, Code_Editor* e) {
if (e->buffer()->selected()) {
e->insert_position(e->buffer()->primary_selection()->start());
e->buffer()->remove_selection();
@@ -203,7 +203,7 @@ int fld::widget::Code_Editor::auto_indent(int, Code_Editor* e) {
\param[in] X, Y, W, H position and size of the widget
\param[in] L optional label
*/
-fld::widget::Code_Editor::Code_Editor(int X, int Y, int W, int H, const char *L) :
+Code_Editor::Code_Editor(int X, int Y, int W, int H, const char *L) :
Fl_Text_Editor(X, Y, W, H, L) {
buffer(new Fl_Text_Buffer);
@@ -231,7 +231,7 @@ fld::widget::Code_Editor::Code_Editor(int X, int Y, int W, int H, const char *L)
/**
Destroy a Code_Editor widget.
*/
-fld::widget::Code_Editor::~Code_Editor() {
+Code_Editor::~Code_Editor() {
Fl_Text_Buffer *buf = mStyleBuffer;
mStyleBuffer = 0;
delete buf;
@@ -246,7 +246,7 @@ fld::widget::Code_Editor::~Code_Editor() {
This works by updating the fontsizes in the style table.
\param[in] s the new general height of the text font
*/
-void fld::widget::Code_Editor::textsize(Fl_Fontsize s) {
+void Code_Editor::textsize(Fl_Fontsize s) {
Fl_Text_Editor::textsize(s); // call base class method
// now attempt to update our styletable to honor the new size...
int entries = sizeof(styletable) / sizeof(styletable[0]);