From ab18912676b7211f18e7782141383d2fffa304eb Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 13 Dec 2011 16:43:30 +0000 Subject: [PATCH] indent git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1969 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/8ed0fe202a9375938327e7af21a312a94eb28dbb Author: [CST] Focus Date: 2011-12-13 (Tue, 13 Dec 2011) --- src/gui/widget/textbox.h | 56 +++++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 29 deletions(-) diff --git a/src/gui/widget/textbox.h b/src/gui/widget/textbox.h index 7d70e7113..b639b75b9 100644 --- a/src/gui/widget/textbox.h +++ b/src/gui/widget/textbox.h @@ -67,19 +67,19 @@ class CBox { - private: + private: - public: - /* Constructor */ - inline CBox(){;}; - inline CBox( const int _iX, const int _iY, const int _iWidth, const int _iHeight){iX=_iX; iY=_iY; iWidth=_iWidth; iHeight=_iHeight;}; - inline ~CBox(){;}; - /* Functions */ - /* Variables */ - int iX; - int iY; - int iWidth; - int iHeight; + public: + /* Constructor */ + inline CBox(){;}; + inline CBox( const int _iX, const int _iY, const int _iWidth, const int _iHeight){iX=_iX; iY=_iY; iWidth=_iWidth; iHeight=_iHeight;}; + inline ~CBox(){;}; + /* Functions */ + /* Variables */ + int iX; + int iY; + int iWidth; + int iHeight; }; class CTextBox @@ -112,7 +112,7 @@ class CTextBox int m_nNrOfPages; int m_nNrOfLines; int m_nNrOfNewLine; - int m_nMaxLineWidth; + int m_nMaxLineWidth; int m_nLinesPerPage; int m_nCurrentLine; int m_nCurrentPage; @@ -140,29 +140,27 @@ class CTextBox void scrollPageDown(const int pages); void scrollPageUp(const int pages); bool setText(const std::string* newText, int _max_width = 0); -inline bool isPainted(void){if( frameBuffer == NULL) return (false); else return (true);}; -inline CBox getWindowsPos(void) {return(m_cFrame);}; -inline int getMaxLineWidth(void) {return(m_nMaxLineWidth);}; -inline int getLines(void) {return(m_nNrOfLines);}; -inline int getPages(void) {return(m_nNrOfPages);}; -inline void movePosition(int x, int y){m_cFrame.iX = x; m_cFrame.iY = y;}; + inline bool isPainted(void) {if( frameBuffer == NULL) return (false); else return (true);}; + inline CBox getWindowsPos(void) {return(m_cFrame);}; + inline int getMaxLineWidth(void) {return(m_nMaxLineWidth);}; + inline int getLines(void) {return(m_nNrOfLines);}; + inline int getPages(void) {return(m_nNrOfPages);}; + inline void movePosition(int x, int y) {m_cFrame.iX = x; m_cFrame.iY = y;}; void paint (void); void hide (void); /* Variables */ - typedef enum mode_ - { - AUTO_WIDTH = 0x01, - AUTO_HIGH = 0x02, - SCROLL = 0x04, - CENTER = 0x40, - NO_AUTO_LINEBREAK = 0x80 - }mode; + typedef enum mode_ + { + AUTO_WIDTH = 0x01, + AUTO_HIGH = 0x02, + SCROLL = 0x04, + CENTER = 0x40, + NO_AUTO_LINEBREAK = 0x80 + } mode; }; - - #endif // !defined(AFX_TEXTBOX_H__208DED01_ABEC_491C_A632_5B21057DC5D8__INCLUDED_)