Put Frame_Resizer_{Base,Extended} modules into GParted namespace (!20)

All the other modules are in the GParted namespace, except for main()
which has to be in the global namespace, so put these in the GParted
namespace too.

Closes !20 - Minor namespace and scope operator tidy-ups
This commit is contained in:
Mike Fleetwood 2018-11-22 19:44:42 +00:00 committed by Curtis Gedak
parent 5d0ea7a853
commit 2c10dd2caa
4 changed files with 30 additions and 0 deletions

View File

@ -22,6 +22,11 @@
#include <gtkmm/drawingarea.h> #include <gtkmm/drawingarea.h>
#include <gdkmm/cursor.h> #include <gdkmm/cursor.h>
namespace GParted
{
class Frame_Resizer_Base : public Gtk::Frame class Frame_Resizer_Base : public Gtk::Frame
{ {
public: public:
@ -87,4 +92,7 @@ private:
}; };
} //GParted
#endif /* GPARTED_FRAME_RESIZER_BASE_H */ #endif /* GPARTED_FRAME_RESIZER_BASE_H */

View File

@ -20,6 +20,11 @@
#include "Frame_Resizer_Base.h" #include "Frame_Resizer_Base.h"
namespace GParted
{
class Frame_Resizer_Extended : public Frame_Resizer_Base class Frame_Resizer_Extended : public Frame_Resizer_Base
{ {
public: public:
@ -36,4 +41,7 @@ private:
virtual void draw_partition(const Cairo::RefPtr<Cairo::Context>& cr); virtual void draw_partition(const Cairo::RefPtr<Cairo::Context>& cr);
}; };
} //GParted
#endif /* GPARTED_FRAME_RESIZER_EXTENDED_H */ #endif /* GPARTED_FRAME_RESIZER_EXTENDED_H */

View File

@ -20,6 +20,10 @@
#include <gdkmm/general.h> #include <gdkmm/general.h>
namespace GParted
{
Frame_Resizer_Base::Frame_Resizer_Base() Frame_Resizer_Base::Frame_Resizer_Base()
{ {
BORDER = 8 ; BORDER = 8 ;
@ -450,3 +454,6 @@ Frame_Resizer_Base::~Frame_Resizer_Base()
delete cursor_resize; delete cursor_resize;
delete cursor_move; delete cursor_move;
} }
} //GParted

View File

@ -20,6 +20,10 @@
#include <gdkmm/general.h> #include <gdkmm/general.h>
namespace GParted
{
Frame_Resizer_Extended::Frame_Resizer_Extended() Frame_Resizer_Extended::Frame_Resizer_Extended()
{ {
} }
@ -186,3 +190,6 @@ void Frame_Resizer_Extended::draw_partition(const Cairo::RefPtr<Cairo::Context>&
draw_resize_grip(cr, ARROW_LEFT); draw_resize_grip(cr, ARROW_LEFT);
draw_resize_grip(cr, ARROW_RIGHT); draw_resize_grip(cr, ARROW_RIGHT);
} }
} //GParted