OSDN Git Service

2011/11/23 1:45:50
authorqwerty2501 <riot313@gmail.com>
Tue, 22 Nov 2011 16:45:50 +0000 (01:45 +0900)
committerqwerty2501 <riot313@gmail.com>
Tue, 22 Nov 2011 16:45:50 +0000 (01:45 +0900)
nlite/nlite_common.h
nlite/nlite_include.h
nlite/nlite_mailframe.h

index 8171477..d09e367 100644 (file)
@@ -13,11 +13,18 @@ namespace nlite{
 
        struct CommentViewProperty{
 
+               
+               enum CommentTimeType{
+                       WriteTimeType,
+                       StreamingTimeType
+
+               };
+               
 
        public:
                INT_PTR headerholSize[5];
                BOOL commentFoldingFlag;
-               UINT_PTR commentTimeType;
+               CommentTimeType commentTimeType;
                COLORREF backColor;
                COLORREF lineColor;
                COLORREF baseStringColor;
@@ -25,87 +32,118 @@ namespace nlite{
                COLORREF anonymousIDLinkColor;
 
 
-               CommentViewProperty(){
+               CommentViewProperty():
+                       commentFoldingFlag(TRUE),
+                       commentTimeType(StreamingTimeType)
 
-                       this->Initialize();
-               }
+               {
 
-               VOID Initialize(){
                        memset(headerholSize,-1,sizeof(headerholSize));
-                       commentFoldingFlag = FALSE;
-                       
-
                }
-               
+       };
+
+       ///
+       ///\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\90Ý\92è
+       ///
+       struct CommentReadProperty{
+
+               BOOL commentReadFlag;                                                           //\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\83t\83\89\83O
+               BOOL ngWordReadFlag;                                                            //NG\83\8f\81[\83h\93Ç\82Ý\8fã\82°\83t\83\89\83O
+               BOOL ngUserReadFlag;                                                            //NG\83\86\81[\83U\81[\93Ç\82Ý\8fã\82°\83t\83\89\83O
+               BOOL managementReadFlag;                                                        //\89^\89c\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\83t\83\89\83O
+               BOOL bspReadFlag;                                                                       //\83o\83b\83N\83X\83e\81[\83W\83p\83X\93Ç\82Ý\8fã\82°\83t\83\89\83O
+               BOOL userCommentReadFlag;                                                       //\83\86\81[\83U\81[\83R\83\81\83\93\83g\93Ç\82Ý\8fã\82°\83t\83\89\83O
+               BOOL teropReadFlag;                                                                     //\83e\83\8d\83b\83v\93Ç\82Ý\8fã\82°\83t\83\89\83O
+               BOOL newLineReadFlag;                                                           //\89ü\8ds\93Ç\82Ý\8fã\82°\83t\83\89\83O
+               BOOL besideLengthFlag;                                                          //\93Ç\82Ý\8fã\82°\83T\83C\83Y\8c\88\92è\83t\83\89\83O
+               UINT_PTR maxCommentLength;                                                      //\93Ç\82Ý\8fã\82°\83T\83C\83Y\90Ý\92è\8e\9e\82Ì\8dÅ\91å\83T\83C\83Y
+               tstring shortComment;                                                           //\8fÈ\97ª\8e\9e\82É\93Ç\82Ý\8fã\82°\82é\95\8e\9a\97ñ
+               tstring outString;                                                                      //\93Ç\82Ý\8fã\82°\8f\9c\8aO\95\8e\9a\97ñ
+
+               CommentReadProperty():
+                       commentReadFlag(FALSE),
+                       ngWordReadFlag(TRUE),
+                       ngUserReadFlag(TRUE),
+                       managementReadFlag(TRUE),
+                       bspReadFlag(TRUE),
+                       userCommentReadFlag(TRUE),
+                       teropReadFlag(TRUE)
+
+
+               {}
 
        };
 
+       ///
+       ///\88ê\94Ê\90Ý\92è
+       ///
        struct GeneralProperty{
-               TCHAR browserPath[_MAX_PATH];                                           //\83u\83\89\83E\83U\82Ì\83p\83X
+               tstring browserPath;                                            //\83u\83\89\83E\83U\82Ì\83p\83X
                BOOL userCountUpdateFlag;                                                       //\97\88\8fê\8eÒ\90\94\82ð\8dX\90V\82·\82é\82©\82Ì\83t\83\89\83O
                BOOL commentLogAutoSaveFlag;                                            //\83R\83\81\83\93\83g\8e©\93®\95Û\91\97p\82Ì\83t\83\89\83O
-               TCHAR commentPath[_MAX_PATH];                                           //\83R\83\81\83\93\83g\83\8d\83O\95Û\91\8fê\8f\8a
+               tstring commentPath;                                                            //\83R\83\81\83\93\83g\83\8d\83O\95Û\91\8fê\8f\8a
                BOOL defaultBroserFlag;                                                         //\83\8a\83\93\83N\82ð\8aJ\82­\8dÛ\82É\8aî\92ê\82Ì\83u\83\89\83E\83U\82ð\8eg\97p\82·\82é\82©\82Ì\83t\83\89\83O
                BOOL autoNameRegisterFlag;                                                      //\83\86\81[\83U\96¼\8e©\93®\93o\98^\83t\83\89\83O
                BOOL autoNameUpdateFlag;                                                        //\8e©\93®\93o\98^\8e\9e\82É\8dX\90V\82·\82é\83t\83\89\83O
                BOOL numberNameFlag;                                                            //\90\94\8e\9a\82Ì\82Ý\82Ì\96¼\91O\82ð\8b\96\89Â\82·\82é\82©\82Ì\83t\83\89\83O
                BOOL  autoColorRegisterFlag;                                            //\96¼\91O\93o\98^\8e\9d\82É\90F\82ð\8e©\93®\93I\82É\8ew\92è\82·\82é\82©\82Ì\83t\83\89\83O
-               time_t activeCountTime;                                                         //\83A\83N\83e\83B\83u\90l\90\94\82ð\8e©\93®\8dX\90V\82·\82é\82©\82Ì\83t\83\89\83O
-
-
-               GeneralProperty(){
-                       Initialize();
+               BOOL activeCountTimeFlag;                                                       //\83A\83N\83e\83B\83u\90l\90\94\82ð\8e©\93®\8dX\90V\82·\82é\82©\82Ì\83t\83\89\83O
 
-               }
-
-               VOID Initialize(){
 
-                       ZeroMemory(browserPath,sizeof(browserPath));
-                       userCountUpdateFlag = TRUE;
-                       commentLogAutoSaveFlag = FALSE;
+               GeneralProperty():
+                       userCountUpdateFlag(TRUE),
+                       commentLogAutoSaveFlag(FALSE),
+                       defaultBroserFlag(TRUE),
+                       autoNameRegisterFlag(FALSE),
+                       autoNameUpdateFlag(FALSE),
+                       numberNameFlag(FALSE),
+                       autoColorRegisterFlag(FALSE),
+                       activeCountTimeFlag(TRUE)
+               {
 
                }
-
-
        };
        
+
+       ///
+       ///\83\81\83C\83\93\90Ý\92è
+       ///
        struct MainFrameProperty{
 
        public:
 
-               SIZE windowSize;
-               BOOL windowFrontFlag;
-
-               MainFrameProperty(){
-
-                       Initialize();
-
-               }
+               SIZE windowSize;                                                        //\83E\83B\83\93\83h\83E\83T\83C\83Y
+               BOOL windowFrontFlag;                                           //\83E\83B\83\93\83h\83E\8dÅ\91O\96Ê\95\\8e¦\83t\83\89\83O
 
-
-               VOID Initialize(){
+               ///
+               ///\83R\83\93\83X\83g\83\89\83N\83^
+               ///
+               MainFrameProperty():
+               windowFrontFlag(TRUE)
+               {
 
                        ZeroMemory(&windowSize,sizeof(windowSize));
-                       windowFrontFlag = TRUE;
-               }
 
+               }
 
        };
 
-       class Property{
+       ///
+       ///nlite\90Ý\92è
+       ///
+       struct Property{
 
        public:
                CommentViewProperty cvp;
                MainFrameProperty mfp;
                GeneralProperty generalProperty;
-               Property(){
+               CommentReadProperty commentReadPropety;
 
-                       
-               }
+               ~Property(){}
 
                VOID Initialize(){
-
-                       cvp.Initialize();
+                       this->~Property();
+                       new(this) Property;
 
                }
 
index 1f7f1d8..8ac0fb1 100644 (file)
@@ -7,12 +7,13 @@
 #include <nlib_define.h>
 #include <vcmpool.h>
 #include "resource.h"
+#include "nlite_define.h"
 #include "nlite_common.h"
 
 #include "nlite_listviewex.h"
 #include "nlite_commentview.h"
 //#include "nlite_controlPaine.h"
-#include "nlite_define.h"
+
 #include "nlite_exception.h"
 #include "nlite_appinfo.h"
 #include "nlite.h"
index b083a17..8914004 100644 (file)
@@ -246,7 +246,6 @@ namespace nlite{
 
                
                VOID OnDestroy(){
-
                        commentView.DestroyWindow();
                        PostQuitMessage(0);
                        return;