summaryrefslogtreecommitdiff
path: root/fluid/widgets/Text_Viewer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/widgets/Text_Viewer.cxx')
-rw-r--r--fluid/widgets/Text_Viewer.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/fluid/widgets/Text_Viewer.cxx b/fluid/widgets/Text_Viewer.cxx
index 310fa6919..3cd89d4d8 100644
--- a/fluid/widgets/Text_Viewer.cxx
+++ b/fluid/widgets/Text_Viewer.cxx
@@ -20,15 +20,15 @@
#include "widgets/Text_Viewer.h"
-using namespace fld;
-using namespace fld::widget;
+
+
/**
Create a fld::widget::Text_Viewer widget.
\param[in] X, Y, W, H position and size of the widget
\param[in] L optional label
*/
-Text_Viewer::Text_Viewer(int X, int Y, int W, int H, const char *L)
+fld::widget::Text_Viewer::Text_Viewer(int X, int Y, int W, int H, const char *L)
: Fl_Text_Display(X, Y, W, H, L)
{
buffer(new Fl_Text_Buffer);
@@ -37,7 +37,7 @@ Text_Viewer::Text_Viewer(int X, int Y, int W, int H, const char *L)
/**
Avoid memory leaks.
*/
-Text_Viewer::~Text_Viewer() {
+fld::widget::Text_Viewer::~Text_Viewer() {
Fl_Text_Buffer *buf = mBuffer;
buffer(0);
delete buf;
@@ -46,7 +46,7 @@ Text_Viewer::~Text_Viewer() {
/**
Tricking Fl_Text_Display into using bearable colors for this specific task.
*/
-void Text_Viewer::draw()
+void fld::widget::Text_Viewer::draw()
{
Fl_Color c = Fl::get_color(FL_SELECTION_COLOR);
Fl::set_color(FL_SELECTION_COLOR, fl_color_average(FL_BACKGROUND_COLOR, FL_FOREGROUND_COLOR, 0.9f));