forked from githubofhuo/KARNAUGH-MAP-MINIMIZER
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BLAMFRAME.H
67 lines (57 loc) · 1.51 KB
/
BLAMFRAME.H
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
#ifndef _BLAMFRAME_H_
#define _BLAMFRAME_H_
#include <wx/wx.h>
#include <wx/spinctrl.h>
#include <wx/treectrl.h>
#include "truthTable.h"
#include "KarnaughMap.h"
#include "kmap.h"
class blamFrame : public wxFrame
{
public:
blamFrame( const wxString& title, const wxPoint& pos, const wxSize& pos, wxLocale& locale );
void OnQuit( wxCommandEvent& event );
void OnAbout( wxCommandEvent& event );
void OnCellAdresses( wxCommandEvent& event );
void OnShowZeros( wxCommandEvent& event );
void OnLangCroatian( wxCommandEvent& event );
void OnLangDefault( wxCommandEvent& event );
void OnVarsChange( wxSpinEvent& event );
private:
void OnTruthTChange( wxGridEvent& event );
void OnKMapChange( wxGridEvent& event );
void OnSolve( wxCommandEvent& event );
void OnSolSelect( wxTreeEvent& event );
void OnSolutionTypeChange( wxCommandEvent& event );
wxSpinCtrl* numberOfVariables;
KMap* kmap;
TruthTable* truthTable;
wxTreeCtrl* solution;
wxChoice* solutionType;
list <KarnaughNode> solutionsList;
bool solveSOP;
wxLocale& m_locale;
DECLARE_EVENT_TABLE()
};
class SolveTreeItemData : public wxTreeItemData
{
public:
SolveTreeItemData();
vector<unsigned short int> values;
};
enum
{
Menu_File_Quit = 100,
Menu_File_About,
Menu_Language_Croatian,
Menu_Language_Default,
Menu_Cell_Adresses,
Menu_Show_Zeros,
Vars_Count,
Truth_Table,
Karnaugh_Map,
Solve_Button,
Sol_Tree,
Solution_Type
};
#endif // _BLAMFRAME_H_