root/trunk/Elephant.h

Revision 5, 2.8 kB (checked in by qbert, 6 years ago)

Initial ( and last :( ) commit

Line 
1 // Elephant.h : main header file for the ELEPHANT application
2 //
3
4 #if !defined(AFX_ELEPHANT_H__39F66096_6061_4422_A4E9_EB67A8682C98__INCLUDED_)
5 #define AFX_ELEPHANT_H__39F66096_6061_4422_A4E9_EB67A8682C98__INCLUDED_
6
7 #if _MSC_VER > 1000
8 #pragma once
9 #endif // _MSC_VER > 1000
10
11 #ifndef __AFXWIN_H__
12     #error include 'stdafx.h' before including this file for PCH
13 #endif
14
15 #include "resource.h"       // main symbols
16 #include "ElephantParser/ElephantParser/eparser.h"
17 #include "file_glob\filesearch.h"
18 #include "logging.h"
19 /////////////////////////////////////////////////////////////////////////////
20 // CElephantApp:
21 // See Elephant.cpp for the implementation of this class
22 //
23
24
25 class CElephantApp : public CWinApp
26 {
27 public:
28     CElephantApp();
29    
30     void SelectFileItem(const string& title);
31 // Overrides
32     // ClassWizard generated virtual function overrides
33     //{{AFX_VIRTUAL(CElephantApp)
34     public:
35     virtual BOOL InitInstance();
36     virtual int ExitInstance();
37     //}}AFX_VIRTUAL
38     void SetStatusBarText(const string& text);
39     void StartProject(ProjectSettings* project);
40     vector<string> GetAddOnFiles(ProjectSettings* project);
41        
42     void UpdateProjectParser(ProjectSettings* project, bool clear = false);
43     void UpdateFileCodeCombo(vector<SymbolListing*> & listings );
44     void UpdateImportDirs(bool updateSupplementParser = false);
45
46
47     void OpenFile(const string& name , int lineNumber = -1);
48     void AddFileHistory(CDocument* d);
49     void RemoveFileHistory(CDocument* d);
50     void AddPersistentFileHistory(const string & path );
51
52     void ShowHelperInfo(vector<SymbolListing*>& listings);
53     void ShowHelperInfo(const string& line, int pos , const string& file  = "");
54    
55     void AddImportToCurrentProject(const string& import );
56     void RemoveImportToCurrentProject(const string& import );
57
58     CMultiDocTemplate* m_pDocTemplate; 
59
60     void ElephantMessageBox(const string& msg);
61     void UpdateFileParser();
62
63     void SwitchToAddOnProject(const string& path);
64
65     void LogEvent(ActionCode c , string d = "", string s ="");
66     //string m_directory;
67 // Implementation
68     //{{AFX_MSG(CElephantApp)
69     afx_msg void OnAppAbout();
70     //}}AFX_MSG
71     DECLARE_MESSAGE_MAP()
72
73         HINSTANCE   m_hSciDLL;
74     vector<string> importDirs;
75     ElephantFileGlob glob;
76    
77 };
78
79 string getCurDir();
80 void ElephantMessageBox(const string& msg, CWnd* parent = NULL);
81 bool ElephantMessageBoxYesNo(const string& msg);
82 void elephant_log(const string& str, const string& file, int line);
83
84 //#define log(p) elephant_log(p,__FILE__,__LINE__)
85
86 //  extern CElephantApp theApp;
87 //  extern Globals *globalSettings;
88
89 /////////////////////////////////////////////////////////////////////////////
90
91 //{{AFX_INSERT_LOCATION}}
92 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
93
94 #endif // !defined(AFX_ELEPHANT_H__39F66096_6061_4422_A4E9_EB67A8682C98__INCLUDED_)
Note: See TracBrowser for help on using the browser.