]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormColorpicker.h
Change the semantics of 'none' and 'auto' viewers/editors: 'none' means now
[lyx.git] / src / frontends / xforms / FormColorpicker.h
index 316fa79bbcb021a83e65b33d2eeae33de7ded733..8c335f39c81730e09274a8821e5e5abd00ca59be 100644 (file)
 #include "Color.h"
 #include "forms_fwd.h"
 
-#include "support/std_string.h"
 #include <boost/scoped_ptr.hpp>
 #include <X11/Xlib.h> // for Pixmap
 
+namespace lyx {
+namespace frontend {
 
-class Tooltips;
 class FD_colorpicker;
 class FD_colorpicker_rgb;
 class FD_colorpicker_hsv;
+class Tooltips;
 
-
-class FormColorpicker
-{
+class FormColorpicker {
 public:
        FormColorpicker();
        ~FormColorpicker();
@@ -36,7 +35,7 @@ public:
            a color is chosen (or the dialog is closed).
            \param color the color used to initialise the dialog.
         */
-       RGBColor const & requestColor(RGBColor const & color);
+       lyx::RGBColor const & requestColor(lyx::RGBColor const & color);
 
        /** Input callback function.
         *  Invoked only by the xforms callback interface
@@ -70,10 +69,10 @@ private:
        int minh_;
 
        /// The title displayed by the Window Manager.
-       string title_;
+       std::string title_;
 
-       RGBColor input_color_;
-       RGBColor color_;
+       lyx::RGBColor input_color_;
+       lyx::RGBColor color_;
        bool finished_;
 
        /// Passed to the window manager to give a pretty little symbol ;-)
@@ -86,4 +85,7 @@ private:
        boost::scoped_ptr<FD_colorpicker_hsv> hsv_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // FORMCOLORPICKER_H