pjs/cck/driver/WizardMachine.h

95 строки
3.0 KiB
C
Исходник Обычный вид История

1999-02-03 19:38:33 +03:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
1999-11-02 08:38:33 +03:00
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
1999-02-03 19:38:33 +03:00
*
1999-11-02 08:38:33 +03:00
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
1999-02-03 19:38:33 +03:00
*
1999-11-02 08:38:33 +03:00
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
1999-02-03 19:38:33 +03:00
* Communications Corporation. Portions created by Netscape are
1999-11-02 08:38:33 +03:00
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
1999-02-03 19:38:33 +03:00
*/
// 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"
#include "WizardTypes.h"
1999-02-03 19:38:33 +03: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);
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);
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);
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()
};
/////////////////////////////////////////////////////////////////////////////