2011-08-28 10:58:26 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 2011 Birunthan Mohanathas
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
2012-01-23 06:36:15 +00:00
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2011-08-28 10:58:26 +00:00
|
|
|
*/
|
|
|
|
|
2011-11-21 12:53:55 +00:00
|
|
|
#ifndef __DIALOGABOUT_H__
|
|
|
|
#define __DIALOGABOUT_H__
|
2011-08-28 10:58:26 +00:00
|
|
|
|
|
|
|
#include "Dialog.h"
|
|
|
|
|
|
|
|
class CDialogAbout : public CDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CDialogAbout(HWND window);
|
|
|
|
virtual ~CDialogAbout();
|
|
|
|
|
|
|
|
static INT_PTR CALLBACK DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR OnInitDialog(WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR OnNotify(WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR OnCommand(WPARAM wParam, LPARAM lParam);
|
|
|
|
|
2011-10-29 10:36:07 +00:00
|
|
|
static void Open(const WCHAR* name);
|
2011-08-28 10:58:26 +00:00
|
|
|
static void Open(int tab = 0);
|
2011-09-08 17:05:48 +00:00
|
|
|
static void ShowAboutLog();
|
2011-08-28 10:58:26 +00:00
|
|
|
|
|
|
|
static void AddLogItem(int level, LPCWSTR time, LPCWSTR message);
|
|
|
|
static void UpdateSkins();
|
2011-11-21 12:53:55 +00:00
|
|
|
static void UpdateMeasures(CMeterWindow* meterWindow);
|
2011-08-28 10:58:26 +00:00
|
|
|
|
|
|
|
static WINDOWPLACEMENT c_WindowPlacement;
|
|
|
|
static CDialogAbout* c_Dialog;
|
|
|
|
|
2012-02-21 09:03:16 +00:00
|
|
|
protected:
|
|
|
|
virtual CTab& GetActiveTab();
|
|
|
|
|
2011-08-28 10:58:26 +00:00
|
|
|
private:
|
|
|
|
// Log tab
|
|
|
|
class CTabLog : public CTab
|
|
|
|
{
|
|
|
|
public:
|
2011-11-21 12:53:55 +00:00
|
|
|
CTabLog(HWND owner);
|
2011-08-28 10:58:26 +00:00
|
|
|
|
|
|
|
virtual void Initialize();
|
|
|
|
virtual void Resize(int w, int h);
|
|
|
|
|
|
|
|
static INT_PTR CALLBACK DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR OnCommand(WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
void AddItem(int level, LPCWSTR time, LPCWSTR message);
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool m_Error;
|
|
|
|
bool m_Warning;
|
|
|
|
bool m_Notice;
|
|
|
|
bool m_Debug;
|
|
|
|
};
|
|
|
|
|
|
|
|
// Measures tab
|
2012-02-20 17:27:00 +00:00
|
|
|
class CTabSkins : public CTab
|
2011-08-28 10:58:26 +00:00
|
|
|
{
|
|
|
|
public:
|
2012-02-20 17:27:00 +00:00
|
|
|
CTabSkins(HWND owner);
|
2011-08-28 10:58:26 +00:00
|
|
|
|
|
|
|
virtual void Initialize();
|
|
|
|
virtual void Resize(int w, int h);
|
|
|
|
|
|
|
|
static INT_PTR CALLBACK DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR OnCommand(WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
void UpdateSkinList();
|
2011-11-21 12:53:55 +00:00
|
|
|
void UpdateMeasureList(CMeterWindow* meterWindow);
|
|
|
|
|
|
|
|
private:
|
|
|
|
CMeterWindow* m_SkinWindow;
|
2011-08-28 10:58:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Plugins tab
|
|
|
|
class CTabPlugins : public CTab
|
|
|
|
{
|
|
|
|
public:
|
2011-11-21 12:53:55 +00:00
|
|
|
CTabPlugins(HWND owner);
|
2011-08-28 10:58:26 +00:00
|
|
|
|
|
|
|
virtual void Initialize();
|
|
|
|
virtual void Resize(int w, int h);
|
|
|
|
|
|
|
|
static INT_PTR CALLBACK DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
private:
|
|
|
|
typedef LPCTSTR (*GETPLUGINAUTHOR)();
|
|
|
|
typedef UINT (*GETPLUGINVERSION)();
|
|
|
|
};
|
2011-08-28 12:28:00 +00:00
|
|
|
|
|
|
|
// Version tab
|
|
|
|
class CTabVersion : public CTab
|
|
|
|
{
|
|
|
|
public:
|
2011-11-21 12:53:55 +00:00
|
|
|
CTabVersion(HWND owner);
|
2011-08-28 12:28:00 +00:00
|
|
|
|
|
|
|
virtual void Initialize();
|
|
|
|
virtual void Resize(int w, int h);
|
|
|
|
|
|
|
|
static INT_PTR CALLBACK DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR OnNotify(WPARAM wParam, LPARAM lParam);
|
|
|
|
INT_PTR OnCommand(WPARAM wParam, LPARAM lParam);
|
|
|
|
};
|
2011-11-21 12:53:55 +00:00
|
|
|
|
|
|
|
CTabLog m_TabLog;
|
2012-02-20 17:27:00 +00:00
|
|
|
CTabSkins m_TabSkins;
|
2011-11-21 12:53:55 +00:00
|
|
|
CTabPlugins m_TabPlugins;
|
|
|
|
CTabVersion m_TabVersion;
|
2011-08-28 10:58:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|