Add function to smpackage that converts old theme format to new theme format
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
// MainMenuDlg.cpp : implementation file
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "smpackage.h"
|
||||
#include "MainMenuDlg.h"
|
||||
#include "EditInsallations.h"
|
||||
#include "SmpackageExportDlg.h"
|
||||
#include "onvertThemeDlg.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#undef THIS_FILE
|
||||
static char THIS_FILE[] = __FILE__;
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// MainMenuDlg dialog
|
||||
|
||||
|
||||
MainMenuDlg::MainMenuDlg(CWnd* pParent /*=NULL*/)
|
||||
: CDialog(MainMenuDlg::IDD, pParent)
|
||||
{
|
||||
//{{AFX_DATA_INIT(MainMenuDlg)
|
||||
// NOTE: the ClassWizard will add member initialization here
|
||||
//}}AFX_DATA_INIT
|
||||
}
|
||||
|
||||
|
||||
void MainMenuDlg::DoDataExchange(CDataExchange* pDX)
|
||||
{
|
||||
CDialog::DoDataExchange(pDX);
|
||||
//{{AFX_DATA_MAP(MainMenuDlg)
|
||||
// NOTE: the ClassWizard will add DDX and DDV calls here
|
||||
//}}AFX_DATA_MAP
|
||||
}
|
||||
|
||||
|
||||
BEGIN_MESSAGE_MAP(MainMenuDlg, CDialog)
|
||||
//{{AFX_MSG_MAP(MainMenuDlg)
|
||||
ON_BN_CLICKED(IDC_CONVERT_THEME, OnConvertTheme)
|
||||
ON_BN_CLICKED(IDC_EXPORT_PACKAGES, OnExportPackages)
|
||||
ON_BN_CLICKED(IDC_EDIT_INSTALLATIONS, OnEditInstallations)
|
||||
//}}AFX_MSG_MAP
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// MainMenuDlg message handlers
|
||||
|
||||
void MainMenuDlg::OnConvertTheme()
|
||||
{
|
||||
// TODO: Add your control notification handler code here
|
||||
ConvertThemeDlg dlg;
|
||||
int nResponse = dlg.DoModal();
|
||||
}
|
||||
|
||||
void MainMenuDlg::OnExportPackages()
|
||||
{
|
||||
// TODO: Add your control notification handler code here
|
||||
CSmpackageExportDlg dlg;
|
||||
int nResponse = dlg.DoModal();
|
||||
// if (nResponse == IDOK)
|
||||
}
|
||||
|
||||
void MainMenuDlg::OnEditInstallations()
|
||||
{
|
||||
// TODO: Add your control notification handler code here
|
||||
EditInsallations dlg;
|
||||
int nResponse = dlg.DoModal();
|
||||
}
|
||||
Reference in New Issue
Block a user