summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--COPYING2
-rw-r--r--KLogDlg.cpp30
-rw-r--r--KLogDlg.h3
-rw-r--r--help/klog.rtf4
-rw-r--r--help/klog.xml5
-rw-r--r--install/install.cpp2
-rw-r--r--install/install.rc10
-rw-r--r--klog.clw2
-rw-r--r--klog.mak39
-rw-r--r--klog.rc32
-rw-r--r--resource.h2
11 files changed, 83 insertions, 48 deletions
diff --git a/COPYING b/COPYING
index 9abe63f..b71fe11 100644
--- a/COPYING
+++ b/COPYING
@@ -1,3 +1,3 @@
-Copyright (c) 1998-2004 Klever Group (http://www.klever.net/)
+Copyright (c) 1998-2005 Klever Group (http://www.klever.net/)
Permission is hereby granted, free of charge, to any person obtaining a copy of
diff --git a/KLogDlg.cpp b/KLogDlg.cpp
index 5f1c6c0..bdcb881 100644
--- a/KLogDlg.cpp
+++ b/KLogDlg.cpp
@@ -103,4 +103,5 @@ void CKLogDlg::DoDataExchange(CDataExchange* pDX)
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CKLogDlg)
+ DDX_Control(pDX, IDCANCEL, m_CancelCtl);
DDX_Control(pDX, IDC_LOGPATTERN, m_LogPatternCtl);
DDX_Control(pDX, IDC_FILES, m_FilesCtl);
@@ -182,4 +183,5 @@ BEGIN_MESSAGE_MAP(CKLogDlg, CDialog)
ON_WM_WINDOWPOSCHANGING()
ON_BN_CLICKED(IDC_LOGPATTERN, OnLogpattern)
+ ON_WM_GETMINMAXINFO()
ON_BN_CLICKED(IDC_CRIT, OnPriority)
ON_BN_CLICKED(IDC_DEBUG, OnPriority)
@@ -191,4 +193,5 @@ BEGIN_MESSAGE_MAP(CKLogDlg, CDialog)
ON_BN_CLICKED(IDC_TYPE_HOST, OnLogto)
ON_BN_CLICKED(IDC_TYPE_NONE, OnLogto)
+ ON_WM_SIZE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
@@ -1366,2 +1369,29 @@ void CLogger::LookupHost(CKLogDlg *daddy)
}
}
+
+void CKLogDlg::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
+{
+ CDialog::OnGetMinMaxInfo(lpMMI);
+ WINDOWPLACEMENT wp;
+ if(IsWindow(m_CancelCtl.m_hWnd) && m_CancelCtl.GetWindowPlacement(&wp)) {
+ CRect wr; GetWindowRect(wr);
+ CRect cr; GetClientRect(cr);
+ CSize ncs = (wr-cr).Size();
+ CRect ctlr = wp.rcNormalPosition;
+ CSize corner = ctlr.BottomRight()+ncs;
+ lpMMI->ptMaxTrackSize.x = lpMMI->ptMinTrackSize.x = corner.cx;
+ lpMMI->ptMinTrackSize.y = corner.cy;
+ }
+}
+
+void CKLogDlg::OnSize(UINT nType, int cx, int cy)
+{
+ CDialog::OnSize(nType, cx, cy);
+ if(!IsWindow(m_Log.m_hWnd))
+ return;
+ WINDOWPLACEMENT lp; m_Log.GetWindowPlacement(&lp);
+ CRect lr = lp.rcNormalPosition;
+ lr.bottom = cy-2;
+ CSize ls = lr.Size();
+ m_Log.SetWindowPos(0,0,0,ls.cx,ls.cy,SWP_NOACTIVATE|SWP_NOMOVE|SWP_NOOWNERZORDER|SWP_NOZORDER);
+}
diff --git a/KLogDlg.h b/KLogDlg.h
index f6fed53..043fd30 100644
--- a/KLogDlg.h
+++ b/KLogDlg.h
@@ -106,4 +106,5 @@ public:
//{{AFX_DATA(CKLogDlg)
enum { IDD = IDD_KLOG_DIALOG };
+ CButton m_CancelCtl;
CButton m_LogPatternCtl;
CButton m_FilesCtl;
@@ -194,4 +195,6 @@ protected:
afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);
afx_msg void OnLogpattern();
+ afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
+ afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
diff --git a/help/klog.rtf b/help/klog.rtf
index 9531c73..0f72570 100644
--- a/help/klog.rtf
+++ b/help/klog.rtf
@@ -18,5 +18,5 @@ ${\footnote About KLog}
\par\sa120\sb120\qj\pard \f1\fs18\sb120 {\b {\i Enjoy!}}
{
-\par\pard\plain\sb360\sa120 \f1\fs16 Copyright (c) 1998-2004 {\uldb\cf0 Klever Group (http://www.klever.net/)}{\v %!ExecFile("http://www.klever.net/")}
+\par\pard\plain\sb360\sa120 \f1\fs16 Copyright (c) 1998-2005 {\uldb\cf0 Klever Group (http://www.klever.net/)}{\v %!ExecFile("http://www.klever.net/")}
\par\qj\sb120\sa120Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
\par The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
@@ -30,4 +30,6 @@ ${\footnote About KLog}
#{\footnote News}
${\footnote What's New}
+\par\pard\plain\f1\fs24\qc\cf2\b 1.1.1-trunk -
+\par\pard\plain\fi0\li0\f1\fs18 \bullet Added vertical resizability
\par\pard\plain\f1\fs24\qc\cf2\b 1.1 - July 11th, 2004
\par\pard\plain\fi0\li0\f1\fs18 \bullet Change of license and opening the source code
diff --git a/help/klog.xml b/help/klog.xml
index 830b297..08daf61 100644
--- a/help/klog.xml
+++ b/help/klog.xml
@@ -6,8 +6,11 @@
<p/>
<p><b><i>Enjoy!</i></b></p>
- <license years="1998-2004"/>
+ <license years="1998-2005"/>
<credits/>
</topic>
<topic id="News" title="What's New">
+ <newsfor version="1.1.1-trunk">
+ <ni>Added vertical resizability</ni>
+ </newsfor>
<newsfor version="1.1" date="July 11th, 2004">
<ni>Change of license and opening the source code</ni>
diff --git a/install/install.cpp b/install/install.cpp
index c0e0bb8..81d5a7e 100644
--- a/install/install.cpp
+++ b/install/install.cpp
@@ -2,5 +2,5 @@
#include "../shared-code/install.h"
-#define KINAME "KLog 1.1"
+#define KINAME "KLog 1.1.1-trunk"
#define SKINAME "KLog"
diff --git a/install/install.rc b/install/install.rc
index 6a3fd3e..cee7f66 100644
--- a/install/install.rc
+++ b/install/install.rc
@@ -132,6 +132,6 @@ IDI_ICON ICON DISCARDABLE "../shared-data/install-icon.ico
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,1,0,0
- PRODUCTVERSION 1,1,0,0
+ FILEVERSION 1,1,1,0
+ PRODUCTVERSION 1,1,1,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
@@ -150,11 +150,11 @@ BEGIN
VALUE "CompanyName", "Klever Group (http://www.klever.net/)\0"
VALUE "FileDescription", "INSTALL: KLog, logging daemon\0"
- VALUE "FileVersion", "1, 1, 0, 0\0"
+ VALUE "FileVersion", "1, 1, 1, 0\0"
VALUE "InternalName", "INSTALL\0"
- VALUE "LegalCopyright", "Copyright © 1998-2004 Klever Group (http://www.klever.net/)\0"
+ VALUE "LegalCopyright", "Copyright © 1998-2005 Klever Group (http://www.klever.net/)\0"
VALUE "LegalTrademarks", "Klever Group (http://www.klever.net/)\0"
VALUE "OriginalFilename", "INSTALL.EXE\0"
VALUE "ProductName", "KLog\0"
- VALUE "ProductVersion", "1, 1, 0, 0\0"
+ VALUE "ProductVersion", "1, 1, 1, 0\0"
END
END
diff --git a/klog.clw b/klog.clw
index 81ae255..0dfdb8f 100644
--- a/klog.clw
+++ b/klog.clw
@@ -41,5 +41,5 @@ Filter=W
BaseClass=CDialog
VirtualFilter=dWC
-LastObject=IDC_HL_ADD
+LastObject=IDC_LOG
[CLS:CAboutDlg]
diff --git a/klog.mak b/klog.mak
index 23ac3fe..323d0a4 100644
--- a/klog.mak
+++ b/klog.mak
@@ -73,5 +73,5 @@ CLEAN :
-@erase "$(INTDIR)\KLog.obj"
-@erase "$(INTDIR)\klog.pch"
- -@erase "$(INTDIR)\KLog.res"
+ -@erase "$(INTDIR)\klog.res"
-@erase "$(INTDIR)\KLogDlg.obj"
-@erase "$(INTDIR)\LogPattern.obj"
@@ -100,5 +100,5 @@ MTL_PROJ=/nologo /D "NDEBUG" /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)/KLog.res" /d "NDEBUG" /d "_AFXDLL"
+RSC_PROJ=/l 0x409 /fo"$(INTDIR)/klog.res" /d "NDEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
@@ -114,5 +114,5 @@ LINK32_FLAGS=/nologo /subsystem:windows /incremental:no\
LINK32_OBJS= \
"$(INTDIR)\KLog.obj" \
- "$(INTDIR)\KLog.res" \
+ "$(INTDIR)\klog.res" \
"$(INTDIR)\KLogDlg.obj" \
"$(INTDIR)\LogPattern.obj" \
@@ -170,5 +170,5 @@ CLEAN :
-@erase "$(INTDIR)\KLog.obj"
-@erase "$(INTDIR)\klog.pch"
- -@erase "$(INTDIR)\KLog.res"
+ -@erase "$(INTDIR)\klog.res"
-@erase "$(INTDIR)\KLogDlg.obj"
-@erase "$(INTDIR)\LogPattern.obj"
@@ -202,5 +202,5 @@ MTL_PROJ=/nologo /D "_DEBUG" /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL"
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)/KLog.res" /d "_DEBUG" /d "_AFXDLL"
+RSC_PROJ=/l 0x409 /fo"$(INTDIR)/klog.res" /d "_DEBUG" /d "_AFXDLL"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
@@ -216,5 +216,5 @@ LINK32_FLAGS=/nologo /subsystem:windows /incremental:yes\
LINK32_OBJS= \
"$(INTDIR)\KLog.obj" \
- "$(INTDIR)\KLog.res" \
+ "$(INTDIR)\klog.res" \
"$(INTDIR)\KLogDlg.obj" \
"$(INTDIR)\LogPattern.obj" \
@@ -262,6 +262,6 @@ TargetName=klog
# End Custom Macros
-ALL : "$(OUTDIR)\klog.exe" "$(OUTDIR)\klog.hlp" "$(OUTDIR)\klog.cnt"\
- "$(OUTDIR)\klog.hl_" "$(OUTDIR)\klog.cn_" "$(OUTDIR)\klog.ex_"
+ALL : "$(OUTDIR)\klog.exe" "$(OUTDIR)\klog.ex_" "$(OUTDIR)\klog.hlp"\
+ "$(OUTDIR)\klog.cnt" "$(OUTDIR)\klog.hl_" "$(OUTDIR)\klog.cn_"
CLEAN :
@@ -272,5 +272,5 @@ CLEAN :
-@erase "$(INTDIR)\KLog.obj"
-@erase "$(INTDIR)\klog.pch"
- -@erase "$(INTDIR)\KLog.res"
+ -@erase "$(INTDIR)\klog.res"
-@erase "$(INTDIR)\KLogDlg.obj"
-@erase "$(INTDIR)\LogPattern.obj"
@@ -299,5 +299,5 @@ MTL_PROJ=/nologo /D "NDEBUG" /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL"
# ADD RSC /l 0x409 /d "NDEBUG"
-RSC_PROJ=/l 0x409 /fo"$(INTDIR)/KLog.res" /d "NDEBUG"
+RSC_PROJ=/l 0x409 /fo"$(INTDIR)/klog.res" /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
@@ -313,5 +313,5 @@ LINK32_FLAGS=/nologo /subsystem:windows /incremental:no\
LINK32_OBJS= \
"$(INTDIR)\KLog.obj" \
- "$(INTDIR)\KLog.res" \
+ "$(INTDIR)\klog.res" \
"$(INTDIR)\KLogDlg.obj" \
"$(INTDIR)\LogPattern.obj" \
@@ -770,5 +770,5 @@ DEP_RSC_KLOG_R=\
-"$(INTDIR)\KLog.res" : $(SOURCE) $(DEP_RSC_KLOG_R) "$(INTDIR)"
+"$(INTDIR)\klog.res" : $(SOURCE) $(DEP_RSC_KLOG_R) "$(INTDIR)"
$(RSC) $(RSC_PROJ) $(SOURCE)
@@ -777,5 +777,5 @@ DEP_RSC_KLOG_R=\
-"$(INTDIR)\KLog.res" : $(SOURCE) $(DEP_RSC_KLOG_R) "$(INTDIR)"
+"$(INTDIR)\klog.res" : $(SOURCE) $(DEP_RSC_KLOG_R) "$(INTDIR)"
$(RSC) $(RSC_PROJ) $(SOURCE)
@@ -784,5 +784,5 @@ DEP_RSC_KLOG_R=\
-"$(INTDIR)\KLog.res" : $(SOURCE) $(DEP_RSC_KLOG_R) "$(INTDIR)"
+"$(INTDIR)\klog.res" : $(SOURCE) $(DEP_RSC_KLOG_R) "$(INTDIR)"
$(RSC) $(RSC_PROJ) $(SOURCE)
@@ -1196,12 +1196,9 @@ DEP_RSC_INSTA=\
SOURCE=.\Install\install.cpp
-DEP_CPP_INSTAL=\
- ".\shared-code\install.h"\
-
!IF "$(CFG)" == "Install - Win32 Debug"
-"$(INTDIR)\install.obj" : $(SOURCE) $(DEP_CPP_INSTAL) "$(INTDIR)"
+"$(INTDIR)\install.obj" : $(SOURCE) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE)
@@ -1210,5 +1207,5 @@ DEP_CPP_INSTAL=\
-"$(INTDIR)\install.obj" : $(SOURCE) $(DEP_CPP_INSTAL) "$(INTDIR)"
+"$(INTDIR)\install.obj" : $(SOURCE) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE)
@@ -1217,5 +1214,5 @@ DEP_CPP_INSTAL=\
-"$(INTDIR)\install.obj" : $(SOURCE) $(DEP_CPP_INSTAL) "$(INTDIR)"
+"$(INTDIR)\install.obj" : $(SOURCE) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE)
@@ -1224,5 +1221,5 @@ DEP_CPP_INSTAL=\
-"$(INTDIR)\install.obj" : $(SOURCE) $(DEP_CPP_INSTAL) "$(INTDIR)"
+"$(INTDIR)\install.obj" : $(SOURCE) "$(INTDIR)"
$(CPP) $(CPP_PROJ) $(SOURCE)
diff --git a/klog.rc b/klog.rc
index 92755ed..6685059 100644
--- a/klog.rc
+++ b/klog.rc
@@ -51,5 +51,5 @@ BEGIN
"#pragma code_page(1252)\r\n"
"#endif\r\n"
- "#include ""res\\KLog.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
+ "#include ""res\\klog.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#endif\0"
@@ -84,16 +84,16 @@ FONT 8, "MS Sans Serif"
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,7,17,18,20
- LTEXT "KLog, Version 1.1",IDC_STATIC,40,16,119,8,
- SS_NOPREFIX
- LTEXT "Copyright © 1998-2004 Klever Group",IDC_STATIC,40,31,119,8
+ LTEXT "KLog, Version 1.1.1-trunk",IDC_STATIC,40,16,119,8,SS_NOPREFIX
+ LTEXT "Copyright © 1998-2005 Klever Group",IDC_STATIC,40,31,
+ 119,8
DEFPUSHBUTTON "OK",IDOK,178,13,32,14,WS_GROUP
PUSHBUTTON "http://www.klever.net/",IDC_KLEVERNET,125,49,85,14
END
-IDD_KLOG_DIALOG DIALOGEX 0, 0, 291, 286
-STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
+IDD_KLOG_DIALOG DIALOGEX 0, 0, 293, 286
+STYLE WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
EXSTYLE WS_EX_CLIENTEDGE | WS_EX_CONTEXTHELP | WS_EX_APPWINDOW
CAPTION "KLog"
-FONT 8, "MS Sans Serif", 0, 0, 0x1
+FONT 8, "MS Sans Serif"
BEGIN
CTEXT "Short de&scription:",IDC_STATIC,11,48,78,8,SS_NOTIFY
@@ -156,11 +156,11 @@ BEGIN
PUSHBUTTON "..",IDC_PLAYSOUND,264,173,12,12,BS_ICON | BS_CENTER |
BS_VCENTER | BS_NOTIFY,WS_EX_STATICEDGE
- LISTBOX IDC_LOG,7,192,277,87,LBS_USETABSTOPS | LBS_NOSEL |
+ LISTBOX IDC_LOG,7,192,279,87,LBS_USETABSTOPS | LBS_NOSEL |
WS_VSCROLL | WS_HSCROLL | WS_TABSTOP,WS_EX_DLGMODALFRAME |
WS_EX_CLIENTEDGE | WS_EX_STATICEDGE
PUSHBUTTON "&Add",IDC_ADD,7,7,39,18,BS_NOTIFY,WS_EX_CLIENTEDGE
PUSHBUTTON "&Remove",IDC_REMOVE,48,7,39,18,0,WS_EX_CLIENTEDGE
- PUSHBUTTON "E&xit",IDC_EXIT,245,7,39,18,0,WS_EX_CLIENTEDGE
- CONTROL "Tab1",IDC_TABS,"SysTabControl32",TCS_TOOLTIPS,7,31,277,
+ PUSHBUTTON "E&xit",IDC_EXIT,247,7,39,18,0,WS_EX_CLIENTEDGE
+ CONTROL "Tab1",IDC_TABS,"SysTabControl32",TCS_TOOLTIPS,7,31,279,
161,WS_EX_CLIENTEDGE
CTEXT "10",IDC_LOGLENGTH,166,11,33,12,SS_NOPREFIX | SS_NOTIFY,
@@ -172,5 +172,5 @@ BEGIN
SS_NOPREFIX | SS_NOTIFY,WS_EX_DLGMODALFRAME
DEFPUSHBUTTON "",IDOK,0,279,6,7,NOT WS_VISIBLE
- PUSHBUTTON "",IDCANCEL,285,279,6,7,NOT WS_VISIBLE | WS_DISABLED
+ PUSHBUTTON "",IDCANCEL,286,279,6,7,NOT WS_VISIBLE | WS_DISABLED
PUSHBUTTON "Files",IDC_FILES,204,7,39,18,BS_CENTER | BS_VCENTER |
BS_NOTIFY | NOT WS_TABSTOP,WS_EX_CLIENTEDGE
@@ -805,5 +805,5 @@ END
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1,1,0,0
+ FILEVERSION 1,1,1,0
PRODUCTVERSION 1,1,0,0
FILEFLAGSMASK 0x3fL
@@ -823,11 +823,11 @@ BEGIN
VALUE "CompanyName", "Klever Group (http://www.klever.net/)\0"
VALUE "FileDescription", "KLog, logging daemon\0"
- VALUE "FileVersion", "1, 1, 0, 0\0"
+ VALUE "FileVersion", "1, 1, 1, 0\0"
VALUE "InternalName", "KLOG\0"
- VALUE "LegalCopyright", "Copyright © 1998-2004 Klever Group (http://www.klever.net/)\0"
+ VALUE "LegalCopyright", "Copyright © 1998-2005 Klever Group (http://www.klever.net/)\0"
VALUE "LegalTrademarks", "Klever Group (http://www.klever.net/)\0"
VALUE "OriginalFilename", "KLOG.EXE\0"
VALUE "ProductName", "KLog\0"
- VALUE "ProductVersion", "1, 0, 0, 2\0"
+ VALUE "ProductVersion", "1, 1, 1, 0\0"
END
END
@@ -860,5 +860,5 @@ BEGIN
BEGIN
LEFTMARGIN, 7
- RIGHTMARGIN, 284
+ RIGHTMARGIN, 286
VERTGUIDE, 12
VERTGUIDE, 278
diff --git a/resource.h b/resource.h
index 33cf881..3c04188 100644
--- a/resource.h
+++ b/resource.h
@@ -1,5 +1,5 @@
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
-// Used by KLog.rc
+// Used by klog.rc
//
#define IDM_ABOUTBOX 0x0010