-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainForm.h
143 lines (121 loc) · 4.03 KB
/
MainForm.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#pragma once
#include "DataManipulator.h"
#include "CreationForm.h"
#include "AppSettings.h"
#include "DeletionConfirmationForm.h"
#include "SettingsForm.h"
#include "ChangingForm.h"
#include <msclr/marshal_cppstd.h>
#include "CertificateForm.h"
namespace Notes {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Collections::Generic;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Ñâîäêà äëÿ MainForm
/// </summary>
public ref class MainForm : public System::Windows::Forms::Form
{
public:
MainForm(void)
{
InitializeComponent();
//
//TODO: äîáàâüòå êîä êîíñòðóêòîðà
//
}
protected:
/// <summary>
/// Îñâîáîäèòü âñå èñïîëüçóåìûå ðåñóðñû.
/// </summary>
~MainForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::MenuStrip^ menuStrip;
private: System::Windows::Forms::ToolStripMenuItem^ createBtn;
private: System::Windows::Forms::ToolStripMenuItem^ deleteBtn;
private: System::Windows::Forms::ToolStripMenuItem^ faqBtn;
private: System::Windows::Forms::ToolStripMenuItem^ settingsBtn;
private: System::Windows::Forms::ToolStripMenuItem^ displayMode;
private: System::Windows::Forms::ToolStripMenuItem^ byDate;
private: System::Windows::Forms::ToolStripMenuItem^ byTopic;
private: System::Windows::Forms::ListBox^ notesListBox;
private: System::Windows::Forms::ToolStripMenuItem^ choosingTopics;
private:
/// <summary>
/// Îáÿçàòåëüíàÿ ïåðåìåííàÿ êîíñòðóêòîðà.
/// </summary>
System::ComponentModel::Container^ components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Òðåáóåìûé ìåòîä äëÿ ïîääåðæêè êîíñòðóêòîðà — íå èçìåíÿéòå
/// ñîäåðæèìîå ýòîãî ìåòîäà ñ ïîìîùüþ ðåäàêòîðà êîäà.
/// </summary>
void InitializeComponent(void);
#pragma endregion
/*
Updating all interface objects, linked to the notes data.
*/
private: System::Void updateNotesDataMainForm();
/*
Function called when createBtn button is pressed.
*/
private: System::Void createBtn_Click(System::Object^ sender, System::EventArgs^ e);
/*
Function called when deleteBtn button is pressed.
*/
private: System::Void deleteBtn_Click(System::Object^ sender, System::EventArgs^ e);
/*
Function called when settingsBtn button is pressed.
*/
private: System::Void settingsBtn_Click(System::Object^ sender, System::EventArgs^ e);
/*
Function called when faqBtn button is pressed.
*/
private: System::Void faqBtn_Click(System::Object^ sender, System::EventArgs^ e);
/*
Function called when loading MainForm.
*/
private: System::Void MainForm_Load(System::Object^ sender, System::EventArgs^ e);
/*
Function called when drawing an object of the notesListBox list.
*/
private: System::Void notesListBox_DrawItem(System::Object^ sender, System::Windows::Forms::DrawItemEventArgs^ e);
/*
Function called when measuring an object of the notesListBox list.
*/
private: System::Void notesListBox_MeasureItem(System::Object^ sender, System::Windows::Forms::MeasureItemEventArgs^ e);
/*
Function called when resizing the notesListBox.
*/
private: System::Void notesListBox_Resize(System::Object^ sender, System::EventArgs^ e);
/*
Function called when list item is pressed twice.
*/
private: System::Void notesListBox_DoubleClick(System::Object^ sender, System::EventArgs^ e);
/*
Function called when the byDate button is pressed.
*/
private: System::Void byDate_Click(System::Object^ sender, System::EventArgs^ e);
/*
Function called when the byTopic button is pressed.
*/
private: System::Void byTopic_Click(System::Object^ sender, System::EventArgs^ e);
/*
Function is called when item in the list of topics to select is pressed
*/
private: System::Void choosingTopicsItem_Click(System::Object^ sender, System::EventArgs^ e);
/*
Clearing list of chones topics.
*/
private: System::Void clearChosenTopics(System::Object^ sender, System::EventArgs^ e);
};
}