Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
oormicreations committed Mar 24, 2018
1 parent 48175ce commit 758d502
Show file tree
Hide file tree
Showing 45 changed files with 8,998 additions and 0 deletions.
Empty file added .hgignore
Empty file.
55 changes: 55 additions & 0 deletions AboutNaadDlg.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// AboutNaadDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Naadh.h"
#include "AboutNaadDlg.h"


// CAboutNaadDlg dialog

IMPLEMENT_DYNAMIC(CAboutNaadDlg, CDialog)
CAboutNaadDlg::CAboutNaadDlg(CWnd* pParent /*=NULL*/)
: CDialog(CAboutNaadDlg::IDD, pParent)
{
}

CAboutNaadDlg::~CAboutNaadDlg()
{
}

void CAboutNaadDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_STATIC_ABT, m_zoomCtrl);
}


BEGIN_MESSAGE_MAP(CAboutNaadDlg, CDialog)
END_MESSAGE_MAP()


// CAboutNaadDlg message handlers
BOOL CAboutNaadDlg::OnInitDialog()
{
CDialog::OnInitDialog();

m_AboutText.Format("%.1f", (float)VERSION/10.0);
m_AboutText = "Naad version " + m_AboutText + ", " + VERMONTH + " \r\n\r\n" + "By\r\nOormi Creations\r\nhttp://oormi.in\r\noormicreations@gmail.com";

m_AboutText += "\r\n\r\n\r\n\r\nCredits :\r\n* Multiline List Control\tCopyright(C) 2006 Dave Calkins (coder1024@gmail.com)\r\n";
m_AboutText += "* UpdateCheck Class\tCopyright(C) 2003 Alexander Bischofberger (www.bluescreen.de)\r\n";
m_AboutText += "* Image Support\tJim Dill (jim@jimdill.net) and Tobias Eiseler (tobias.eiseler@sisternicky.com)\r\n";
m_AboutText += "* WaveBox Class\tZenith__";
m_AboutText += "\r\n\r\nNaad is a freeware and open source software.";

m_zoomCtrl.m_ImageName = m_AboutText;
m_zoomCtrl.m_About = true;

if(!m_zoomCtrl.LoadFromFile(m_ImageFileName))
{
//CDialog::OnCancel();
}

return TRUE; // return TRUE unless you set the focus to a control
}
25 changes: 25 additions & 0 deletions AboutNaadDlg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#pragma once
#include "zoomctrl.h"


// CAboutNaadDlg dialog

class CAboutNaadDlg : public CDialog
{
DECLARE_DYNAMIC(CAboutNaadDlg)

public:
CAboutNaadDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CAboutNaadDlg();

// Dialog Data
enum { IDD = IDD_DIALOG_ABT };
CZoomCtrl m_zoomCtrl;
CString m_ImageFileName, m_AboutText;

protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();

DECLARE_MESSAGE_MAP()
};
71 changes: 71 additions & 0 deletions Bol.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#include "StdAfx.h"
#include ".\bol.h"

CBol::CBol(void)
{
m_BolId = BOL_NONE;
m_Status = BOL_NORMAL;
m_Species = 0;
m_Row = 0;
m_Col = 0;
m_Selected = FALSE;
}

CBol::~CBol(void)
{
}

BOOL CBol::SetBolType(UINT id, UINT col, UINT row)
{
if(id > BOL_NONE) return FALSE;

CString bols[MAXBOLVARS*MAXBOLS] = BOLVARS;

m_BolId = id;
m_Row = row;
m_Col = col;
m_Species = id/MAXBOLVARS;

if(id == BOL_NONE) m_BolName = "";
else if(id == BOL_SILENCE) m_BolName = "~ o ~";
else m_BolName = bols[id];

return TRUE;
}

BOOL CBol::SetBolType(UINT id)
{
if(id > BOL_NONE) return FALSE;

CString bols[MAXBOLVARS*MAXBOLS] = BOLVARS;

m_BolId = id;
m_Species = id/MAXBOLVARS;

//TRACE("%d\r\n",id);
if(id == BOL_NONE) m_BolName = "";
else if(id == BOL_SILENCE) m_BolName = "~ o ~";
else m_BolName = bols[id];

return TRUE;
}


BOOL CBol::SetBolStatus(UINT status)
{
m_Status = status;
if(status<MAXSTATUS)
{
CString stat[MAXSTATUS] = BOLSTATUS;
m_BolStatusName = stat[status];
return TRUE;
}
return FALSE;
}

void CBol::Clone(CBol srcbol)
{
SetBolType(srcbol.m_BolId, srcbol.m_Col, srcbol.m_Row);
SetBolStatus(srcbol.m_Status);
}

58 changes: 58 additions & 0 deletions Bol.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#pragma once

#define MC 24 //max cols
#define MR 24 //max rows

#define MAXBOLS 12
#define MAXBOLVARS 10 //varieties of bols
#define MAXSTATUS 4 //0123

#define LOOP_NONE 0xFFFD

#define BOLS {"Na", "Ta", "Ti", "Tin", "Tun", "Dha", "Dhin", "Dhit", "Dhun", "Ga", "Ge", "Ke"}
#define BOLSTATUS {"", "~S~", "~T~", "~K~"}
#define BOL_NONE 0xFFFF
#define BOL_SILENCE 0xFFFE

#define BOL_NORMAL 0
#define BOL_SAM 1
#define BOL_TALI 2
#define BOL_KHALI 3

#define BOLVARS {\
/*000*/ "Na01", "Na02", "Na03", "Na04", "Na05", "Na06", "Na07", "Na08", "Na09", "Na10",\
/*010*/ "Ta01", "Ta02", "Ta03", "Ta04", "Ta05", "Ta06", "Ta07", "Ta08", "Ta09", "Ta10",\
/*020*/ "Ti01", "Ti02", "Ti03", "Ti04", "Ti05", "Ti06", "Ti07", "Ti08", "Ti09", "Ti10",\
/*030*/ "Tin01", "Tin02", "Tin03", "Tin04", "Tin05", "Tin06", "Tin07", "Tin08", "Tin09", "Tin10",\
/*040*/ "Tun01", "Tun02", "Tun03", "Tun04", "Tun05", "Tun06", "Tun07", "Tun08", "Tun09", "Tun10",\
/*050*/ "Dha01", "Dha02", "Dha03", "Dha04", "Dha05", "Dha06", "Dha07", "Dha08", "Dha09", "Dha10",\
/*060*/ "Dhin01", "Dhin02", "Dhin03", "Dhin04", "Dhin05", "Dhin06", "Dhin07", "Dhin08", "Dhin09", "Dhin10",\
/*070*/ "Dhit01", "Dhit02", "Dhit03", "Dhit04", "Dhit05", "Dhit06", "Dhit07", "Dhit08", "Dhit09", "Dhit10",\
/*080*/ "Dhun01", "Dhun02", "Dhun03", "Dhun04", "Dhun05", "Dhun06", "Dhun07", "Dhun08", "Dhun09", "Dhun10",\
/*090*/ "Ga01", "Ga02", "Ga03", "Ga04", "Ga05", "Ga06", "Ga07", "Ga08", "Ga09", "Ga10",\
/*100*/ "Ge01", "Ge02", "Ge03", "Ge04", "Ge05", "Ge06", "Ge07", "Ge08", "Ge09", "Ge10",\
/*110*/ "Ke01", "Ke02", "Ke03", "Ke04", "Ke05", "Ke06", "Ke07", "Ke08", "Ke09", "Ke10" }
// 0 1 2 3 4 5 6 7 8 9


class CBol
{
public:
CBol(void);
~CBol(void);
//------------------------------------------------------------------------------------------------------------------------------------
CString m_BolName;
CString m_BolStatusName;
UINT m_BolId;
UINT m_Status;
UINT m_Species;
UINT m_Row, m_Col;
BOOL m_Selected;
//------------------------------------------------------------------------------------------------------------------------------------

BOOL SetBolType(UINT id, UINT col, UINT row);
BOOL SetBolType(UINT id);
BOOL SetBolStatus(UINT status);
void Clone(CBol srcbol);

};
34 changes: 34 additions & 0 deletions CompPropDlg.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// CompPropDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Naadh.h"
#include "CompPropDlg.h"


// CCompPropDlg dialog

IMPLEMENT_DYNAMIC(CCompPropDlg, CDialog)
CCompPropDlg::CCompPropDlg(CWnd* pParent /*=NULL*/)
: CDialog(CCompPropDlg::IDD, pParent)
{
}

CCompPropDlg::~CCompPropDlg()
{
}

void CCompPropDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Text(pDX,IDC_EDIT_COMPNAME,m_Name);
DDX_Text(pDX,IDC_EDIT_COMPOSER,m_Composer);
DDX_Text(pDX,IDC_EDIT_COMPNOTES,m_Notes);
}


BEGIN_MESSAGE_MAP(CCompPropDlg, CDialog)
END_MESSAGE_MAP()


// CCompPropDlg message handlers
23 changes: 23 additions & 0 deletions CompPropDlg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#pragma once


// CCompPropDlg dialog

class CCompPropDlg : public CDialog
{
DECLARE_DYNAMIC(CCompPropDlg)

public:
CCompPropDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CCompPropDlg();

// Dialog Data
enum { IDD = IDD_DIALOG_PROPCOMP };

CString m_Name, m_Composer, m_Notes;

protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support

DECLARE_MESSAGE_MAP()
};
Loading

0 comments on commit 758d502

Please sign in to comment.