File: projectmissinglibs.h

package info (click to toggle)
codeblocks 25.03%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 93,984 kB
  • sloc: cpp: 695,462; xml: 32,163; ansic: 28,821; sh: 12,117; makefile: 9,126; asm: 3,827; python: 2,289; f90: 1,619; perl: 261; sed: 16; java: 4
file content (82 lines) | stat: -rw-r--r-- 2,401 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef PROJECTMISSINGLIBS_H
#define PROJECTMISSINGLIBS_H

//(*Headers(ProjectMissingLibs)
#include "scrollingdialog.h"
class wxButton;
class wxFlexGridSizer;
class wxPanel;
class wxStaticBoxSizer;
class wxStaticLine;
class wxStaticText;
//*)

#include <wx/stattext.h>
#include <wx/choice.h>

#include "libraryresult.h"
#include "librarydetectionmanager.h"
#include "webresourcesmanager.h"

class ProjectMissingLibs: public wxScrollingDialog, public WebResourcesManager::ProgressHandler
{
	public:

		ProjectMissingLibs( wxWindow* parent,wxArrayString& missingList, TypedResults& currentResults );
		virtual ~ProjectMissingLibs();

	private:

		//(*Declarations(ProjectMissingLibs)
		wxButton* Button1;
		wxButton* m_MissingDefsBtn;
		wxFlexGridSizer* m_LibsContainer;
		wxPanel* m_LibsBack;
		wxStaticText* m_StatusText;
		//*)

		//(*Identifiers(ProjectMissingLibs)
		static const wxWindowID ID_STATICTEXT1;
		static const wxWindowID ID_STATICLINE2;
		static const wxWindowID ID_STATICTEXT2;
		static const wxWindowID ID_STATICLINE3;
		static const wxWindowID ID_STATICTEXT3;
		static const wxWindowID ID_STATICLINE10;
		static const wxWindowID ID_STATICLINE11;
		static const wxWindowID ID_STATICLINE12;
		static const wxWindowID ID_STATICLINE13;
		static const wxWindowID ID_STATICLINE14;
		static const wxWindowID ID_PANEL1;
		static const wxWindowID ID_BUTTON1;
		static const wxWindowID ID_BUTTON2;
		static const wxWindowID ID_STATICTEXT4;
		//*)

		//(*Handlers(ProjectMissingLibs)
		void OnButton1Click(wxCommandEvent& event);
		void OnButton1Click1(wxCommandEvent& event);
		//*)

		void InsertLibEntry( const wxString& lib, bool hasSearchFilter, bool isDetected );
		void TryDownloadMissing();
		bool StoreLibraryConfig( const wxString& lib, const std::vector< char >& content );
		bool AreMissingSearchFilters();
		void RecreateLibsList();

        // Implementation of download progress handler
        virtual int  StartDownloading( const wxString& Url );
        virtual void SetProgress( float progress, int id );
        virtual void JobFinished( int id );
        virtual void Error( const wxString& info, int id );
        wxString m_CurrentUrl;
        int      m_CurrentUrlId;

		wxArrayString           m_Libs;
		TypedResults&           m_CurrentResults;
		LibraryDetectionManager m_DetectionManager;
		wxWindowList            m_SearchFlags;

		DECLARE_EVENT_TABLE()
};

#endif