1999-02-03 19:38:33 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Netscape Public License
|
|
|
|
* Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
* compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
* http://www.mozilla.org/NPL/
|
|
|
|
*
|
|
|
|
* Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
* for the specific language governing rights and limitations under the
|
|
|
|
* NPL.
|
|
|
|
*
|
|
|
|
* The Initial Developer of this code under the NPL is Netscape
|
|
|
|
* Communications Corporation. Portions created by Netscape are
|
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
* Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// WizardMachine.h : main header file for the WIZARDMACHINE application
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef __AFXWIN_H__
|
|
|
|
#error include 'stdafx.h' before including this file for PCH
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "resource.h" // main symbols
|
1999-10-12 04:56:51 +04:00
|
|
|
//#include "WizardMachineDlg.h"
|
1999-09-30 04:36:54 +04:00
|
|
|
#include "WizardTypes.h"
|
1999-02-03 19:38:33 +03:00
|
|
|
|
1999-09-30 04:44:28 +04:00
|
|
|
|
1999-02-03 19:38:33 +03:00
|
|
|
//NODE WizardTree;
|
1999-05-25 11:42:48 +04:00
|
|
|
void CreateRshell();
|
|
|
|
//extern WIDGET GlobalWidgetArray[1000];
|
1999-02-03 19:38:33 +03:00
|
|
|
|
1999-05-25 11:42:48 +04:00
|
|
|
//extern int GlobalArrayIndex;
|
1999-02-03 19:38:33 +03:00
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// CWizardMachineApp:
|
|
|
|
// See WizardMachine.cpp for the implementation of this class
|
|
|
|
//
|
|
|
|
class CWizardMachineApp : public CWinApp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CWizardMachineApp();
|
|
|
|
void InitializeTree(CString rootIniFile);
|
|
|
|
NODE* CreateNode(NODE *parentNode, CString iniFileName);
|
|
|
|
void CreateNode();
|
|
|
|
void SetGlobalDefaults();
|
|
|
|
void CreateFirstLeaf(NODE *parent, CString iniFile);
|
|
|
|
BOOL SectionFound(CString iniFile, CString section);
|
|
|
|
int GetBufferCount(char *buffer);
|
|
|
|
char* GetBufferElement(const char *buffer, int index);
|
|
|
|
char* GetSectionBuffer(CString iniFile, CString section);
|
|
|
|
void ExecuteAction(char action);
|
1999-09-30 04:44:28 +04:00
|
|
|
BOOL GoToNextNode();
|
|
|
|
BOOL GoToPrevNode();
|
1999-02-03 19:38:33 +03:00
|
|
|
void ExitApp();
|
|
|
|
BOOL CheckForPreBuiltPath();
|
|
|
|
FILE* OpenAFile(CString outputFile, CString mode);
|
|
|
|
void PrintNodeInfo(NODE* node);
|
|
|
|
void CheckIniFileExistence(CString file);
|
|
|
|
BOOL FileExists(CString file);
|
1999-08-30 23:56:34 +04:00
|
|
|
BOOL FillGlobalWidgetArray(CString file);
|
|
|
|
BOOL FillGlobalWidgetArray();
|
1999-02-03 19:38:33 +03:00
|
|
|
void CreateNewCache();
|
|
|
|
BOOL IsLastNode(NODE* treeNode);
|
|
|
|
BOOL IsFirstNode(NODE* treeNode);
|
|
|
|
CString GetModulePath();
|
|
|
|
CString GetGlobalOptions(CString theName);
|
|
|
|
void BuildWidget(WIDGET* aWidget, CString iniSection, CString iniFile, int pageBaseIndex, BOOL readValue);
|
1999-05-19 07:31:11 +04:00
|
|
|
// void BuildHelpWidget(WIDGET* aWidget, CString iniSection, CString iniFile, int pageBaseIndex);
|
1999-02-03 19:38:33 +03:00
|
|
|
void GenerateList(CString action, WIDGET* targetWidget, CString ext);
|
1999-05-19 07:31:11 +04:00
|
|
|
void HelpWiz();
|
1999-02-03 19:38:33 +03:00
|
|
|
// Overrides
|
|
|
|
// ClassWizard generated virtual function overrides
|
|
|
|
//{{AFX_VIRTUAL(CWizardMachineApp)
|
|
|
|
public:
|
|
|
|
virtual BOOL InitInstance();
|
|
|
|
//}}AFX_VIRTUAL
|
|
|
|
|
|
|
|
// Implementation
|
|
|
|
|
|
|
|
//{{AFX_MSG(CWizardMachineApp)
|
|
|
|
// NOTE - the ClassWizard will add and remove member functions here.
|
|
|
|
// DO NOT EDIT what you see in these blocks of generated code !
|
|
|
|
//}}AFX_MSG
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|