scrollpad: adjust indentation in header file

This commit is contained in:
Andrzej Rybczak
2012-09-03 15:32:20 +02:00
parent af2cdca3d0
commit 1a4151b189
2 changed files with 106 additions and 106 deletions

View File

@@ -24,13 +24,12 @@
#include "window.h" #include "window.h"
#include "strbuffer.h" #include "strbuffer.h"
namespace NC namespace NC {//
/// Scrollpad is specialized window that can hold large portion of text and
/// supports scrolling if the amount of it is bigger than the window area.
struct Scrollpad: public Window
{ {
/// Scrollpad is specialized window that can hold large portion of text and
/// supports scrolling if the amount of it is bigger than the window area.
class Scrollpad: public Window
{
public:
/// Constructs an empty scrollpad with given parameters /// Constructs an empty scrollpad with given parameters
/// @param startx X position of left upper corner of constructed window /// @param startx X position of left upper corner of constructed window
/// @param starty Y position of left upper corner of constructed window /// @param starty Y position of left upper corner of constructed window
@@ -118,7 +117,7 @@ namespace NC
Scrollpad &operator<<(const std::string &s); Scrollpad &operator<<(const std::string &s);
# endif // _UTF8 # endif // _UTF8
private: private:
basic_buffer<my_char_t> m_buffer; basic_buffer<my_char_t> m_buffer;
int m_beginning; int m_beginning;
@@ -130,7 +129,8 @@ namespace NC
std::basic_string<my_char_t> m_found_pattern; std::basic_string<my_char_t> m_found_pattern;
size_t m_real_height; size_t m_real_height;
}; };
} }
#endif #endif

View File

@@ -32,7 +32,7 @@ namespace NC {//
/// window or taken as raw string at any time. /// window or taken as raw string at any time.
template <typename C> class basic_buffer template <typename C> class basic_buffer
{ {
friend class Scrollpad; friend struct Scrollpad;
/// Struct used for storing information about /// Struct used for storing information about
/// one color/format flag along with its position /// one color/format flag along with its position