tmis 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/COPYING +674 -0
- data/README.md +44 -0
- data/Rakefile +64 -0
- data/bin/tmis +4 -0
- data/lib/tmis/engine/database.rb +58 -0
- data/lib/tmis/engine/export/timetable_exporter.rb +366 -0
- data/lib/tmis/engine/import/abstract_spreadsheet.rb +53 -0
- data/lib/tmis/engine/import/spreadsheet_roo.rb +136 -0
- data/lib/tmis/engine/import/timetable_manager.rb +110 -0
- data/lib/tmis/engine/import/timetable_reader.rb +79 -0
- data/lib/tmis/engine/mailer/mailer.rb +51 -0
- data/lib/tmis/engine/migrations/10_create_speciality_subjects.rb +17 -0
- data/lib/tmis/engine/migrations/11_create_emails.rb +10 -0
- data/lib/tmis/engine/migrations/12_add_indexes.rb +32 -0
- data/lib/tmis/engine/migrations/1_create_groups.rb +11 -0
- data/lib/tmis/engine/migrations/2_create_subgroups.rb +10 -0
- data/lib/tmis/engine/migrations/3_create_subjects.rb +11 -0
- data/lib/tmis/engine/migrations/4_create_cabinets.rb +12 -0
- data/lib/tmis/engine/migrations/5_create_lecturers.rb +14 -0
- data/lib/tmis/engine/migrations/6_create_studies.rb +15 -0
- data/lib/tmis/engine/migrations/7_create_courses.rb +9 -0
- data/lib/tmis/engine/migrations/8_create_specialities.rb +9 -0
- data/lib/tmis/engine/migrations/9_create_semesters.rb +10 -0
- data/lib/tmis/engine/models/cabinet.rb +18 -0
- data/lib/tmis/engine/models/course.rb +11 -0
- data/lib/tmis/engine/models/email.rb +19 -0
- data/lib/tmis/engine/models/group.rb +31 -0
- data/lib/tmis/engine/models/lecturer.rb +45 -0
- data/lib/tmis/engine/models/semester.rb +4 -0
- data/lib/tmis/engine/models/speciality.rb +3 -0
- data/lib/tmis/engine/models/speciality_subject.rb +6 -0
- data/lib/tmis/engine/models/study.rb +56 -0
- data/lib/tmis/engine/models/subgroup.rb +21 -0
- data/lib/tmis/engine/models/subject.rb +19 -0
- data/lib/tmis/engine/verificator.rb +96 -0
- data/lib/tmis/interface/forms/about.rb +24 -0
- data/lib/tmis/interface/forms/console.rb +28 -0
- data/lib/tmis/interface/forms/debug_console.rb +32 -0
- data/lib/tmis/interface/forms/edit_study.rb +110 -0
- data/lib/tmis/interface/forms/expand_changes.rb +128 -0
- data/lib/tmis/interface/forms/export_general_timetable.rb +68 -0
- data/lib/tmis/interface/forms/export_group_timetable.rb +158 -0
- data/lib/tmis/interface/forms/export_lecturer_timetable.rb +171 -0
- data/lib/tmis/interface/forms/find.rb +71 -0
- data/lib/tmis/interface/forms/import.rb +36 -0
- data/lib/tmis/interface/forms/settings.rb +125 -0
- data/lib/tmis/interface/forms/ui_about.rb +88 -0
- data/lib/tmis/interface/forms/ui_console.rb +68 -0
- data/lib/tmis/interface/forms/ui_debug_console.rb +82 -0
- data/lib/tmis/interface/forms/ui_edit_study.rb +202 -0
- data/lib/tmis/interface/forms/ui_expand_changes.rb +134 -0
- data/lib/tmis/interface/forms/ui_export_general_timetable.rb +142 -0
- data/lib/tmis/interface/forms/ui_export_group_timetable.rb +160 -0
- data/lib/tmis/interface/forms/ui_export_lecturer_timetable.rb +160 -0
- data/lib/tmis/interface/forms/ui_find.rb +77 -0
- data/lib/tmis/interface/forms/ui_import.rb +134 -0
- data/lib/tmis/interface/forms/ui_settings.rb +417 -0
- data/lib/tmis/interface/mainwindow.rb +933 -0
- data/lib/tmis/interface/models/cabinet_table_model.rb +133 -0
- data/lib/tmis/interface/models/course_table_model.rb +87 -0
- data/lib/tmis/interface/models/group_table_model.rb +190 -0
- data/lib/tmis/interface/models/lecturer_table_model.rb +111 -0
- data/lib/tmis/interface/models/semester_table_model.rb +137 -0
- data/lib/tmis/interface/models/speciality_subject_table_model.rb +288 -0
- data/lib/tmis/interface/models/speciality_table_model.rb +87 -0
- data/lib/tmis/interface/models/study_table_model.rb +323 -0
- data/lib/tmis/interface/models/subgroup_table_model.rb +136 -0
- data/lib/tmis/interface/models/subject_table_model.rb +90 -0
- data/lib/tmis/interface/ui_mainwindow.rb +928 -0
- data/lib/tmis.rb +45 -0
- data/spec/config.rb +49 -0
- data/spec/database_spec.rb +18 -0
- data/spec/export/timetable_exporter_mocks.rb +20 -0
- data/spec/export/timetable_exporter_spec.rb +34 -0
- data/spec/factories/factories.rb +65 -0
- data/spec/import/test_data/raspisanie_2013.csv +104 -0
- data/spec/import/timetable_importer_mocks.rb +6 -0
- data/spec/import/timetable_manager_spec.rb +16 -0
- data/spec/import/timetable_reader_spec.rb +111 -0
- data/spec/import/timetable_roo_spec.rb +48 -0
- data/spec/mailer/mailer_spec.rb +37 -0
- data/spec/mainwindow_spec.rb +18 -0
- data/spec/models/cabinet_spec.rb +33 -0
- data/spec/models/course_spec.rb +26 -0
- data/spec/models/group_spec.rb +33 -0
- data/spec/models/lecturer_spec.rb +38 -0
- data/spec/models/semester_spec.rb +26 -0
- data/spec/models/speciality_spec.rb +26 -0
- data/spec/models/speciality_subject_spec.rb +9 -0
- data/spec/models/study_spec.rb +9 -0
- data/spec/models/subgroup_spec.rb +26 -0
- data/spec/models/subject_spec.rb +39 -0
- metadata +290 -0
@@ -0,0 +1,68 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'console.ui'
|
3
|
+
**
|
4
|
+
** Created: Wed Sep 4 00:30:33 2013
|
5
|
+
** by: Qt User Interface Compiler version 4.8.5
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_ConsoleDialog
|
11
|
+
attr_reader :gridLayout_2
|
12
|
+
attr_reader :gridLayout
|
13
|
+
attr_reader :verticalLayout
|
14
|
+
attr_reader :textBrowser
|
15
|
+
|
16
|
+
def setupUi(consoleDialog)
|
17
|
+
if consoleDialog.objectName.nil?
|
18
|
+
consoleDialog.objectName = "consoleDialog"
|
19
|
+
end
|
20
|
+
consoleDialog.resize(804, 218)
|
21
|
+
consoleDialog.locale = Qt::Locale.new(Qt::Locale::Russian, Qt::Locale::RussianFederation)
|
22
|
+
@gridLayout_2 = Qt::GridLayout.new(consoleDialog)
|
23
|
+
@gridLayout_2.objectName = "gridLayout_2"
|
24
|
+
@gridLayout = Qt::GridLayout.new()
|
25
|
+
@gridLayout.objectName = "gridLayout"
|
26
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
27
|
+
@verticalLayout.objectName = "verticalLayout"
|
28
|
+
@textBrowser = Qt::TextBrowser.new(consoleDialog)
|
29
|
+
@textBrowser.objectName = "textBrowser"
|
30
|
+
|
31
|
+
@verticalLayout.addWidget(@textBrowser)
|
32
|
+
|
33
|
+
|
34
|
+
@gridLayout.addLayout(@verticalLayout, 0, 0, 1, 1)
|
35
|
+
|
36
|
+
|
37
|
+
@gridLayout_2.addLayout(@gridLayout, 0, 0, 1, 1)
|
38
|
+
|
39
|
+
|
40
|
+
retranslateUi(consoleDialog)
|
41
|
+
|
42
|
+
Qt::MetaObject.connectSlotsByName(consoleDialog)
|
43
|
+
end # setupUi
|
44
|
+
|
45
|
+
def setup_ui(consoleDialog)
|
46
|
+
setupUi(consoleDialog)
|
47
|
+
end
|
48
|
+
|
49
|
+
def retranslateUi(consoleDialog)
|
50
|
+
consoleDialog.windowTitle = Qt::Application.translate("ConsoleDialog", "Dialog", nil, Qt::Application::UnicodeUTF8)
|
51
|
+
@textBrowser.html = Qt::Application.translate("ConsoleDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" \
|
52
|
+
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" \
|
53
|
+
"p, li { white-space: pre-wrap; }\n" \
|
54
|
+
"</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;\">\n" \
|
55
|
+
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>", nil, Qt::Application::UnicodeUTF8)
|
56
|
+
end # retranslateUi
|
57
|
+
|
58
|
+
def retranslate_ui(consoleDialog)
|
59
|
+
retranslateUi(consoleDialog)
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
|
64
|
+
module Ui
|
65
|
+
class ConsoleDialog < Ui_ConsoleDialog
|
66
|
+
end
|
67
|
+
end # module Ui
|
68
|
+
|
@@ -0,0 +1,82 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'debug_console.ui'
|
3
|
+
**
|
4
|
+
** Created: Wed Sep 4 00:30:33 2013
|
5
|
+
** by: Qt User Interface Compiler version 4.8.5
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_DebugConsoleDialog
|
11
|
+
attr_reader :gridLayout_2
|
12
|
+
attr_reader :gridLayout
|
13
|
+
attr_reader :verticalLayout
|
14
|
+
attr_reader :textEdit
|
15
|
+
attr_reader :horizontalLayout
|
16
|
+
attr_reader :lineEdit
|
17
|
+
attr_reader :enterPushButton
|
18
|
+
|
19
|
+
def setupUi(debugConsoleDialog)
|
20
|
+
if debugConsoleDialog.objectName.nil?
|
21
|
+
debugConsoleDialog.objectName = "debugConsoleDialog"
|
22
|
+
end
|
23
|
+
debugConsoleDialog.resize(496, 190)
|
24
|
+
debugConsoleDialog.locale = Qt::Locale.new(Qt::Locale::Russian, Qt::Locale::RussianFederation)
|
25
|
+
@gridLayout_2 = Qt::GridLayout.new(debugConsoleDialog)
|
26
|
+
@gridLayout_2.objectName = "gridLayout_2"
|
27
|
+
@gridLayout = Qt::GridLayout.new()
|
28
|
+
@gridLayout.objectName = "gridLayout"
|
29
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
30
|
+
@verticalLayout.objectName = "verticalLayout"
|
31
|
+
@textEdit = Qt::TextEdit.new(debugConsoleDialog)
|
32
|
+
@textEdit.objectName = "textEdit"
|
33
|
+
|
34
|
+
@verticalLayout.addWidget(@textEdit)
|
35
|
+
|
36
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
37
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
38
|
+
@lineEdit = Qt::LineEdit.new(debugConsoleDialog)
|
39
|
+
@lineEdit.objectName = "lineEdit"
|
40
|
+
|
41
|
+
@horizontalLayout.addWidget(@lineEdit)
|
42
|
+
|
43
|
+
@enterPushButton = Qt::PushButton.new(debugConsoleDialog)
|
44
|
+
@enterPushButton.objectName = "enterPushButton"
|
45
|
+
|
46
|
+
@horizontalLayout.addWidget(@enterPushButton)
|
47
|
+
|
48
|
+
|
49
|
+
@verticalLayout.addLayout(@horizontalLayout)
|
50
|
+
|
51
|
+
|
52
|
+
@gridLayout.addLayout(@verticalLayout, 0, 1, 1, 1)
|
53
|
+
|
54
|
+
|
55
|
+
@gridLayout_2.addLayout(@gridLayout, 0, 0, 1, 1)
|
56
|
+
|
57
|
+
|
58
|
+
retranslateUi(debugConsoleDialog)
|
59
|
+
|
60
|
+
Qt::MetaObject.connectSlotsByName(debugConsoleDialog)
|
61
|
+
end # setupUi
|
62
|
+
|
63
|
+
def setup_ui(debugConsoleDialog)
|
64
|
+
setupUi(debugConsoleDialog)
|
65
|
+
end
|
66
|
+
|
67
|
+
def retranslateUi(debugConsoleDialog)
|
68
|
+
debugConsoleDialog.windowTitle = Qt::Application.translate("DebugConsoleDialog", "Dialog", nil, Qt::Application::UnicodeUTF8)
|
69
|
+
@enterPushButton.text = Qt::Application.translate("DebugConsoleDialog", "Enter", nil, Qt::Application::UnicodeUTF8)
|
70
|
+
end # retranslateUi
|
71
|
+
|
72
|
+
def retranslate_ui(debugConsoleDialog)
|
73
|
+
retranslateUi(debugConsoleDialog)
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
77
|
+
|
78
|
+
module Ui
|
79
|
+
class DebugConsoleDialog < Ui_DebugConsoleDialog
|
80
|
+
end
|
81
|
+
end # module Ui
|
82
|
+
|
@@ -0,0 +1,202 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'edit_study.ui'
|
3
|
+
**
|
4
|
+
** Created: Wed Sep 4 00:30:33 2013
|
5
|
+
** by: Qt User Interface Compiler version 4.8.5
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_EditStudyDialog
|
11
|
+
attr_reader :gridLayout_2
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :gridLayout
|
14
|
+
attr_reader :label_8
|
15
|
+
attr_reader :lecturerComboBox
|
16
|
+
attr_reader :label
|
17
|
+
attr_reader :cabinetComboBox
|
18
|
+
attr_reader :subjectComboBox
|
19
|
+
attr_reader :groupComboBox
|
20
|
+
attr_reader :numberComboBox
|
21
|
+
attr_reader :label_4
|
22
|
+
attr_reader :dateDateEdit
|
23
|
+
attr_reader :subgroupComboBox
|
24
|
+
attr_reader :label_6
|
25
|
+
attr_reader :label_2
|
26
|
+
attr_reader :label_7
|
27
|
+
attr_reader :label_5
|
28
|
+
attr_reader :label_3
|
29
|
+
attr_reader :horizontalLayout
|
30
|
+
attr_reader :selectColorPushButton
|
31
|
+
attr_reader :defaultColorPushButton
|
32
|
+
attr_reader :buttonBox
|
33
|
+
|
34
|
+
def setupUi(editStudyDialog)
|
35
|
+
if editStudyDialog.objectName.nil?
|
36
|
+
editStudyDialog.objectName = "editStudyDialog"
|
37
|
+
end
|
38
|
+
editStudyDialog.resize(327, 248)
|
39
|
+
editStudyDialog.locale = Qt::Locale.new(Qt::Locale::Russian, Qt::Locale::RussianFederation)
|
40
|
+
@gridLayout_2 = Qt::GridLayout.new(editStudyDialog)
|
41
|
+
@gridLayout_2.objectName = "gridLayout_2"
|
42
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
43
|
+
@verticalLayout.objectName = "verticalLayout"
|
44
|
+
@gridLayout = Qt::GridLayout.new()
|
45
|
+
@gridLayout.objectName = "gridLayout"
|
46
|
+
@label_8 = Qt::Label.new(editStudyDialog)
|
47
|
+
@label_8.objectName = "label_8"
|
48
|
+
|
49
|
+
@gridLayout.addWidget(@label_8, 8, 0, 1, 1)
|
50
|
+
|
51
|
+
@lecturerComboBox = Qt::ComboBox.new(editStudyDialog)
|
52
|
+
@lecturerComboBox.objectName = "lecturerComboBox"
|
53
|
+
@lecturerComboBox.editable = true
|
54
|
+
@lecturerComboBox.insertPolicy = Qt::ComboBox::NoInsert
|
55
|
+
@lecturerComboBox.sizeAdjustPolicy = Qt::ComboBox::AdjustToMinimumContentsLength
|
56
|
+
|
57
|
+
@gridLayout.addWidget(@lecturerComboBox, 4, 2, 1, 1)
|
58
|
+
|
59
|
+
@label = Qt::Label.new(editStudyDialog)
|
60
|
+
@label.objectName = "label"
|
61
|
+
|
62
|
+
@gridLayout.addWidget(@label, 1, 0, 1, 1)
|
63
|
+
|
64
|
+
@cabinetComboBox = Qt::ComboBox.new(editStudyDialog)
|
65
|
+
@cabinetComboBox.objectName = "cabinetComboBox"
|
66
|
+
@cabinetComboBox.editable = true
|
67
|
+
@cabinetComboBox.insertPolicy = Qt::ComboBox::NoInsert
|
68
|
+
@cabinetComboBox.sizeAdjustPolicy = Qt::ComboBox::AdjustToMinimumContentsLength
|
69
|
+
|
70
|
+
@gridLayout.addWidget(@cabinetComboBox, 5, 2, 1, 1)
|
71
|
+
|
72
|
+
@subjectComboBox = Qt::ComboBox.new(editStudyDialog)
|
73
|
+
@subjectComboBox.objectName = "subjectComboBox"
|
74
|
+
@subjectComboBox.editable = true
|
75
|
+
@subjectComboBox.insertPolicy = Qt::ComboBox::NoInsert
|
76
|
+
@subjectComboBox.sizeAdjustPolicy = Qt::ComboBox::AdjustToMinimumContentsLength
|
77
|
+
|
78
|
+
@gridLayout.addWidget(@subjectComboBox, 3, 2, 1, 1)
|
79
|
+
|
80
|
+
@groupComboBox = Qt::ComboBox.new(editStudyDialog)
|
81
|
+
@groupComboBox.objectName = "groupComboBox"
|
82
|
+
@groupComboBox.editable = true
|
83
|
+
@groupComboBox.insertPolicy = Qt::ComboBox::NoInsert
|
84
|
+
@groupComboBox.sizeAdjustPolicy = Qt::ComboBox::AdjustToMinimumContentsLength
|
85
|
+
|
86
|
+
@gridLayout.addWidget(@groupComboBox, 1, 2, 1, 1)
|
87
|
+
|
88
|
+
@numberComboBox = Qt::ComboBox.new(editStudyDialog)
|
89
|
+
@numberComboBox.objectName = "numberComboBox"
|
90
|
+
@numberComboBox.editable = true
|
91
|
+
@numberComboBox.insertPolicy = Qt::ComboBox::NoInsert
|
92
|
+
@numberComboBox.sizeAdjustPolicy = Qt::ComboBox::AdjustToMinimumContentsLength
|
93
|
+
|
94
|
+
@gridLayout.addWidget(@numberComboBox, 7, 2, 1, 1)
|
95
|
+
|
96
|
+
@label_4 = Qt::Label.new(editStudyDialog)
|
97
|
+
@label_4.objectName = "label_4"
|
98
|
+
|
99
|
+
@gridLayout.addWidget(@label_4, 5, 0, 1, 1)
|
100
|
+
|
101
|
+
@dateDateEdit = Qt::DateEdit.new(editStudyDialog)
|
102
|
+
@dateDateEdit.objectName = "dateDateEdit"
|
103
|
+
@dateDateEdit.calendarPopup = true
|
104
|
+
|
105
|
+
@gridLayout.addWidget(@dateDateEdit, 6, 2, 1, 1)
|
106
|
+
|
107
|
+
@subgroupComboBox = Qt::ComboBox.new(editStudyDialog)
|
108
|
+
@subgroupComboBox.objectName = "subgroupComboBox"
|
109
|
+
@subgroupComboBox.editable = true
|
110
|
+
@subgroupComboBox.insertPolicy = Qt::ComboBox::NoInsert
|
111
|
+
@subgroupComboBox.sizeAdjustPolicy = Qt::ComboBox::AdjustToMinimumContentsLength
|
112
|
+
|
113
|
+
@gridLayout.addWidget(@subgroupComboBox, 2, 2, 1, 1)
|
114
|
+
|
115
|
+
@label_6 = Qt::Label.new(editStudyDialog)
|
116
|
+
@label_6.objectName = "label_6"
|
117
|
+
|
118
|
+
@gridLayout.addWidget(@label_6, 7, 0, 1, 1)
|
119
|
+
|
120
|
+
@label_2 = Qt::Label.new(editStudyDialog)
|
121
|
+
@label_2.objectName = "label_2"
|
122
|
+
|
123
|
+
@gridLayout.addWidget(@label_2, 3, 0, 1, 1)
|
124
|
+
|
125
|
+
@label_7 = Qt::Label.new(editStudyDialog)
|
126
|
+
@label_7.objectName = "label_7"
|
127
|
+
|
128
|
+
@gridLayout.addWidget(@label_7, 2, 0, 1, 1)
|
129
|
+
|
130
|
+
@label_5 = Qt::Label.new(editStudyDialog)
|
131
|
+
@label_5.objectName = "label_5"
|
132
|
+
|
133
|
+
@gridLayout.addWidget(@label_5, 6, 0, 1, 1)
|
134
|
+
|
135
|
+
@label_3 = Qt::Label.new(editStudyDialog)
|
136
|
+
@label_3.objectName = "label_3"
|
137
|
+
|
138
|
+
@gridLayout.addWidget(@label_3, 4, 0, 1, 1)
|
139
|
+
|
140
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
141
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
142
|
+
@selectColorPushButton = Qt::PushButton.new(editStudyDialog)
|
143
|
+
@selectColorPushButton.objectName = "selectColorPushButton"
|
144
|
+
|
145
|
+
@horizontalLayout.addWidget(@selectColorPushButton)
|
146
|
+
|
147
|
+
@defaultColorPushButton = Qt::PushButton.new(editStudyDialog)
|
148
|
+
@defaultColorPushButton.objectName = "defaultColorPushButton"
|
149
|
+
|
150
|
+
@horizontalLayout.addWidget(@defaultColorPushButton)
|
151
|
+
|
152
|
+
|
153
|
+
@gridLayout.addLayout(@horizontalLayout, 8, 2, 1, 1)
|
154
|
+
|
155
|
+
|
156
|
+
@verticalLayout.addLayout(@gridLayout)
|
157
|
+
|
158
|
+
@buttonBox = Qt::DialogButtonBox.new(editStudyDialog)
|
159
|
+
@buttonBox.objectName = "buttonBox"
|
160
|
+
@buttonBox.standardButtons = Qt::DialogButtonBox::Cancel|Qt::DialogButtonBox::Reset|Qt::DialogButtonBox::Save
|
161
|
+
|
162
|
+
@verticalLayout.addWidget(@buttonBox)
|
163
|
+
|
164
|
+
|
165
|
+
@gridLayout_2.addLayout(@verticalLayout, 0, 0, 1, 1)
|
166
|
+
|
167
|
+
|
168
|
+
retranslateUi(editStudyDialog)
|
169
|
+
|
170
|
+
Qt::MetaObject.connectSlotsByName(editStudyDialog)
|
171
|
+
end # setupUi
|
172
|
+
|
173
|
+
def setup_ui(editStudyDialog)
|
174
|
+
setupUi(editStudyDialog)
|
175
|
+
end
|
176
|
+
|
177
|
+
def retranslateUi(editStudyDialog)
|
178
|
+
editStudyDialog.windowTitle = Qt::Application.translate("EditStudyDialog", "\320\240\320\265\320\264\320\260\320\272\321\202\320\270\321\200\320\276\320\262\320\260\320\275\320\270\320\265 \320\267\320\260\320\275\321\217\321\202\320\270\321\217", nil, Qt::Application::UnicodeUTF8)
|
179
|
+
@label_8.text = Qt::Application.translate("EditStudyDialog", "\320\246\320\262\320\265\321\202", nil, Qt::Application::UnicodeUTF8)
|
180
|
+
@label.text = Qt::Application.translate("EditStudyDialog", "\320\223\321\200\321\203\320\277\320\277\320\260", nil, Qt::Application::UnicodeUTF8)
|
181
|
+
@label_4.text = Qt::Application.translate("EditStudyDialog", "\320\232\320\260\320\261\320\270\320\275\320\265\321\202", nil, Qt::Application::UnicodeUTF8)
|
182
|
+
@dateDateEdit.displayFormat = Qt::Application.translate("EditStudyDialog", "dddd - d MMMM yy", nil, Qt::Application::UnicodeUTF8)
|
183
|
+
@label_6.text = Qt::Application.translate("EditStudyDialog", "\320\235\320\276\320\274\320\265\321\200", nil, Qt::Application::UnicodeUTF8)
|
184
|
+
@label_2.text = Qt::Application.translate("EditStudyDialog", "\320\237\321\200\320\265\320\264\320\274\320\265\321\202", nil, Qt::Application::UnicodeUTF8)
|
185
|
+
@label_7.text = Qt::Application.translate("EditStudyDialog", "\320\237\320\276\320\264\320\263\321\200\321\203\320\277\320\277\320\260", nil, Qt::Application::UnicodeUTF8)
|
186
|
+
@label_5.text = Qt::Application.translate("EditStudyDialog", "\320\224\320\260\321\202\320\260", nil, Qt::Application::UnicodeUTF8)
|
187
|
+
@label_3.text = Qt::Application.translate("EditStudyDialog", "\320\237\321\200\320\265\320\277\320\276\320\264\320\260\320\262\320\260\321\202\320\265\320\273\321\214", nil, Qt::Application::UnicodeUTF8)
|
188
|
+
@selectColorPushButton.text = Qt::Application.translate("EditStudyDialog", "\320\222\321\213\320\261\321\200\320\260\321\202\321\214", nil, Qt::Application::UnicodeUTF8)
|
189
|
+
@defaultColorPushButton.text = Qt::Application.translate("EditStudyDialog", "\320\241\321\202\320\260\320\275\320\264\320\260\321\200\321\202\320\275\321\213\320\271", nil, Qt::Application::UnicodeUTF8)
|
190
|
+
end # retranslateUi
|
191
|
+
|
192
|
+
def retranslate_ui(editStudyDialog)
|
193
|
+
retranslateUi(editStudyDialog)
|
194
|
+
end
|
195
|
+
|
196
|
+
end
|
197
|
+
|
198
|
+
module Ui
|
199
|
+
class EditStudyDialog < Ui_EditStudyDialog
|
200
|
+
end
|
201
|
+
end # module Ui
|
202
|
+
|
@@ -0,0 +1,134 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'expand_changes.ui'
|
3
|
+
**
|
4
|
+
** Created: Wed Sep 4 00:30:33 2013
|
5
|
+
** by: Qt User Interface Compiler version 4.8.5
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_ExpandChangesDialog
|
11
|
+
attr_reader :verticalLayout_2
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :gridLayout
|
14
|
+
attr_reader :horizontalLayout_2
|
15
|
+
attr_reader :label
|
16
|
+
attr_reader :evennessComboBox
|
17
|
+
attr_reader :horizontalLayout
|
18
|
+
attr_reader :label_2
|
19
|
+
attr_reader :toDateDateEdit
|
20
|
+
attr_reader :horizontalLayout_3
|
21
|
+
attr_reader :label_3
|
22
|
+
attr_reader :fromDateDateEdit
|
23
|
+
attr_reader :buttonBox
|
24
|
+
|
25
|
+
def setupUi(expandChangesDialog)
|
26
|
+
if expandChangesDialog.objectName.nil?
|
27
|
+
expandChangesDialog.objectName = "expandChangesDialog"
|
28
|
+
end
|
29
|
+
expandChangesDialog.resize(404, 141)
|
30
|
+
@verticalLayout_2 = Qt::VBoxLayout.new(expandChangesDialog)
|
31
|
+
@verticalLayout_2.objectName = "verticalLayout_2"
|
32
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
33
|
+
@verticalLayout.objectName = "verticalLayout"
|
34
|
+
@gridLayout = Qt::GridLayout.new()
|
35
|
+
@gridLayout.objectName = "gridLayout"
|
36
|
+
@gridLayout.setContentsMargins(-1, 20, -1, -1)
|
37
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
38
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
39
|
+
@label = Qt::Label.new(expandChangesDialog)
|
40
|
+
@label.objectName = "label"
|
41
|
+
|
42
|
+
@horizontalLayout_2.addWidget(@label)
|
43
|
+
|
44
|
+
@evennessComboBox = Qt::ComboBox.new(expandChangesDialog)
|
45
|
+
@evennessComboBox.objectName = "evennessComboBox"
|
46
|
+
@evennessComboBox.minimumSize = Qt::Size.new(270, 0)
|
47
|
+
|
48
|
+
@horizontalLayout_2.addWidget(@evennessComboBox)
|
49
|
+
|
50
|
+
|
51
|
+
@gridLayout.addLayout(@horizontalLayout_2, 2, 0, 1, 1)
|
52
|
+
|
53
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
54
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
55
|
+
@label_2 = Qt::Label.new(expandChangesDialog)
|
56
|
+
@label_2.objectName = "label_2"
|
57
|
+
|
58
|
+
@horizontalLayout.addWidget(@label_2)
|
59
|
+
|
60
|
+
@toDateDateEdit = Qt::DateEdit.new(expandChangesDialog)
|
61
|
+
@toDateDateEdit.objectName = "toDateDateEdit"
|
62
|
+
@toDateDateEdit.minimumSize = Qt::Size.new(0, 0)
|
63
|
+
@toDateDateEdit.calendarPopup = true
|
64
|
+
|
65
|
+
@horizontalLayout.addWidget(@toDateDateEdit)
|
66
|
+
|
67
|
+
|
68
|
+
@gridLayout.addLayout(@horizontalLayout, 1, 0, 1, 1)
|
69
|
+
|
70
|
+
@horizontalLayout_3 = Qt::HBoxLayout.new()
|
71
|
+
@horizontalLayout_3.objectName = "horizontalLayout_3"
|
72
|
+
@label_3 = Qt::Label.new(expandChangesDialog)
|
73
|
+
@label_3.objectName = "label_3"
|
74
|
+
|
75
|
+
@horizontalLayout_3.addWidget(@label_3)
|
76
|
+
|
77
|
+
@fromDateDateEdit = Qt::DateEdit.new(expandChangesDialog)
|
78
|
+
@fromDateDateEdit.objectName = "fromDateDateEdit"
|
79
|
+
@fromDateDateEdit.minimumSize = Qt::Size.new(0, 0)
|
80
|
+
@fromDateDateEdit.calendarPopup = true
|
81
|
+
|
82
|
+
@horizontalLayout_3.addWidget(@fromDateDateEdit)
|
83
|
+
|
84
|
+
|
85
|
+
@gridLayout.addLayout(@horizontalLayout_3, 0, 0, 1, 1)
|
86
|
+
|
87
|
+
|
88
|
+
@verticalLayout.addLayout(@gridLayout)
|
89
|
+
|
90
|
+
@buttonBox = Qt::DialogButtonBox.new(expandChangesDialog)
|
91
|
+
@buttonBox.objectName = "buttonBox"
|
92
|
+
@buttonBox.orientation = Qt::Horizontal
|
93
|
+
@buttonBox.standardButtons = Qt::DialogButtonBox::Cancel|Qt::DialogButtonBox::Ok
|
94
|
+
|
95
|
+
@verticalLayout.addWidget(@buttonBox)
|
96
|
+
|
97
|
+
|
98
|
+
@verticalLayout_2.addLayout(@verticalLayout)
|
99
|
+
|
100
|
+
|
101
|
+
retranslateUi(expandChangesDialog)
|
102
|
+
Qt::Object.connect(@buttonBox, SIGNAL('accepted()'), expandChangesDialog, SLOT('accept()'))
|
103
|
+
Qt::Object.connect(@buttonBox, SIGNAL('rejected()'), expandChangesDialog, SLOT('reject()'))
|
104
|
+
|
105
|
+
Qt::MetaObject.connectSlotsByName(expandChangesDialog)
|
106
|
+
end # setupUi
|
107
|
+
|
108
|
+
def setup_ui(expandChangesDialog)
|
109
|
+
setupUi(expandChangesDialog)
|
110
|
+
end
|
111
|
+
|
112
|
+
def retranslateUi(expandChangesDialog)
|
113
|
+
expandChangesDialog.windowTitle = Qt::Application.translate("ExpandChangesDialog", "\320\240\320\260\321\201\320\277\321\200\320\276\321\201\321\202\321\200\320\260\320\275\320\265\320\275\320\270\320\265 \320\270\320\267\320\274\320\265\320\275\320\265\320\275\320\270\320\271", nil, Qt::Application::UnicodeUTF8)
|
114
|
+
@label.text = Qt::Application.translate("ExpandChangesDialog", "\320\247\321\221\321\202\320\275\320\276\321\201\321\202\321\214:", nil, Qt::Application::UnicodeUTF8)
|
115
|
+
@evennessComboBox.insertItems(0, [Qt::Application.translate("ExpandChangesDialog", "\320\235\320\265 \320\262\320\260\320\266\320\275\320\276", nil, Qt::Application::UnicodeUTF8),
|
116
|
+
Qt::Application.translate("ExpandChangesDialog", "\320\237\320\276 \321\207\321\221\321\202\320\275\321\213\320\274", nil, Qt::Application::UnicodeUTF8),
|
117
|
+
Qt::Application.translate("ExpandChangesDialog", "\320\237\320\276 \320\275\320\265\321\207\321\221\321\202\320\275\321\213\320\274", nil, Qt::Application::UnicodeUTF8)])
|
118
|
+
@label_2.text = Qt::Application.translate("ExpandChangesDialog", "\320\224\320\276 \320\264\320\260\321\202\321\213:", nil, Qt::Application::UnicodeUTF8)
|
119
|
+
@toDateDateEdit.displayFormat = Qt::Application.translate("ExpandChangesDialog", "d.M.yy (dddd - d MMMM yy)", nil, Qt::Application::UnicodeUTF8)
|
120
|
+
@label_3.text = Qt::Application.translate("ExpandChangesDialog", "\320\241 \320\275\320\265\320\264\320\265\320\273\320\270:", nil, Qt::Application::UnicodeUTF8)
|
121
|
+
@fromDateDateEdit.displayFormat = Qt::Application.translate("ExpandChangesDialog", "d.M.yy (dddd - d MMMM yy)", nil, Qt::Application::UnicodeUTF8)
|
122
|
+
end # retranslateUi
|
123
|
+
|
124
|
+
def retranslate_ui(expandChangesDialog)
|
125
|
+
retranslateUi(expandChangesDialog)
|
126
|
+
end
|
127
|
+
|
128
|
+
end
|
129
|
+
|
130
|
+
module Ui
|
131
|
+
class ExpandChangesDialog < Ui_ExpandChangesDialog
|
132
|
+
end
|
133
|
+
end # module Ui
|
134
|
+
|
@@ -0,0 +1,142 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'export_general_timetable.ui'
|
3
|
+
**
|
4
|
+
** Created: Wed Sep 4 00:30:33 2013
|
5
|
+
** by: Qt User Interface Compiler version 4.8.5
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_ExportGeneralTimetableDialog
|
11
|
+
attr_reader :gridLayout_2
|
12
|
+
attr_reader :verticalLayout
|
13
|
+
attr_reader :horizontalLayout_3
|
14
|
+
attr_reader :weeklyRadioButton
|
15
|
+
attr_reader :dailyRadioButton
|
16
|
+
attr_reader :horizontalSpacer_2
|
17
|
+
attr_reader :gridLayout
|
18
|
+
attr_reader :horizontalLayout
|
19
|
+
attr_reader :dateDateEdit
|
20
|
+
attr_reader :horizontalSpacer
|
21
|
+
attr_reader :horizontalLayout_2
|
22
|
+
attr_reader :label
|
23
|
+
attr_reader :pathLineEdit
|
24
|
+
attr_reader :browsePushButton
|
25
|
+
attr_reader :exportButtonBox
|
26
|
+
attr_reader :verticalSpacer
|
27
|
+
|
28
|
+
def setupUi(exportGeneralTimetableDialog)
|
29
|
+
if exportGeneralTimetableDialog.objectName.nil?
|
30
|
+
exportGeneralTimetableDialog.objectName = "exportGeneralTimetableDialog"
|
31
|
+
end
|
32
|
+
exportGeneralTimetableDialog.resize(358, 125)
|
33
|
+
exportGeneralTimetableDialog.locale = Qt::Locale.new(Qt::Locale::Russian, Qt::Locale::RussianFederation)
|
34
|
+
@gridLayout_2 = Qt::GridLayout.new(exportGeneralTimetableDialog)
|
35
|
+
@gridLayout_2.objectName = "gridLayout_2"
|
36
|
+
@verticalLayout = Qt::VBoxLayout.new()
|
37
|
+
@verticalLayout.objectName = "verticalLayout"
|
38
|
+
@horizontalLayout_3 = Qt::HBoxLayout.new()
|
39
|
+
@horizontalLayout_3.objectName = "horizontalLayout_3"
|
40
|
+
@weeklyRadioButton = Qt::RadioButton.new(exportGeneralTimetableDialog)
|
41
|
+
@weeklyRadioButton.objectName = "weeklyRadioButton"
|
42
|
+
@weeklyRadioButton.checked = true
|
43
|
+
|
44
|
+
@horizontalLayout_3.addWidget(@weeklyRadioButton)
|
45
|
+
|
46
|
+
@dailyRadioButton = Qt::RadioButton.new(exportGeneralTimetableDialog)
|
47
|
+
@dailyRadioButton.objectName = "dailyRadioButton"
|
48
|
+
|
49
|
+
@horizontalLayout_3.addWidget(@dailyRadioButton)
|
50
|
+
|
51
|
+
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
52
|
+
|
53
|
+
@horizontalLayout_3.addItem(@horizontalSpacer_2)
|
54
|
+
|
55
|
+
|
56
|
+
@verticalLayout.addLayout(@horizontalLayout_3)
|
57
|
+
|
58
|
+
@gridLayout = Qt::GridLayout.new()
|
59
|
+
@gridLayout.objectName = "gridLayout"
|
60
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
61
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
62
|
+
@dateDateEdit = Qt::DateEdit.new(exportGeneralTimetableDialog)
|
63
|
+
@dateDateEdit.objectName = "dateDateEdit"
|
64
|
+
@dateDateEdit.minimumSize = Qt::Size.new(260, 0)
|
65
|
+
@dateDateEdit.calendarPopup = true
|
66
|
+
|
67
|
+
@horizontalLayout.addWidget(@dateDateEdit)
|
68
|
+
|
69
|
+
@horizontalSpacer = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
70
|
+
|
71
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
72
|
+
|
73
|
+
|
74
|
+
@gridLayout.addLayout(@horizontalLayout, 0, 0, 1, 1)
|
75
|
+
|
76
|
+
|
77
|
+
@verticalLayout.addLayout(@gridLayout)
|
78
|
+
|
79
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new()
|
80
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
81
|
+
@label = Qt::Label.new(exportGeneralTimetableDialog)
|
82
|
+
@label.objectName = "label"
|
83
|
+
|
84
|
+
@horizontalLayout_2.addWidget(@label)
|
85
|
+
|
86
|
+
@pathLineEdit = Qt::LineEdit.new(exportGeneralTimetableDialog)
|
87
|
+
@pathLineEdit.objectName = "pathLineEdit"
|
88
|
+
@pathLineEdit.minimumSize = Qt::Size.new(165, 0)
|
89
|
+
|
90
|
+
@horizontalLayout_2.addWidget(@pathLineEdit)
|
91
|
+
|
92
|
+
@browsePushButton = Qt::PushButton.new(exportGeneralTimetableDialog)
|
93
|
+
@browsePushButton.objectName = "browsePushButton"
|
94
|
+
|
95
|
+
@horizontalLayout_2.addWidget(@browsePushButton)
|
96
|
+
|
97
|
+
|
98
|
+
@verticalLayout.addLayout(@horizontalLayout_2)
|
99
|
+
|
100
|
+
@exportButtonBox = Qt::DialogButtonBox.new(exportGeneralTimetableDialog)
|
101
|
+
@exportButtonBox.objectName = "exportButtonBox"
|
102
|
+
@exportButtonBox.standardButtons = Qt::DialogButtonBox::Cancel|Qt::DialogButtonBox::Ok
|
103
|
+
|
104
|
+
@verticalLayout.addWidget(@exportButtonBox)
|
105
|
+
|
106
|
+
@verticalSpacer = Qt::SpacerItem.new(20, 40, Qt::SizePolicy::Minimum, Qt::SizePolicy::Expanding)
|
107
|
+
|
108
|
+
@verticalLayout.addItem(@verticalSpacer)
|
109
|
+
|
110
|
+
|
111
|
+
@gridLayout_2.addLayout(@verticalLayout, 0, 0, 1, 1)
|
112
|
+
|
113
|
+
|
114
|
+
retranslateUi(exportGeneralTimetableDialog)
|
115
|
+
|
116
|
+
Qt::MetaObject.connectSlotsByName(exportGeneralTimetableDialog)
|
117
|
+
end # setupUi
|
118
|
+
|
119
|
+
def setup_ui(exportGeneralTimetableDialog)
|
120
|
+
setupUi(exportGeneralTimetableDialog)
|
121
|
+
end
|
122
|
+
|
123
|
+
def retranslateUi(exportGeneralTimetableDialog)
|
124
|
+
exportGeneralTimetableDialog.windowTitle = Qt::Application.translate("ExportGeneralTimetableDialog", "\320\255\320\272\321\201\320\277\320\276\321\200\321\202 \320\276\320\261\321\211\320\265\320\263\320\276 \321\200\320\260\321\201\320\277\320\270\321\201\320\260\320\275\320\270\321\217", nil, Qt::Application::UnicodeUTF8)
|
125
|
+
@weeklyRadioButton.text = Qt::Application.translate("ExportGeneralTimetableDialog", "\320\235\320\260 \320\275\320\265\320\264\320\265\320\273\321\216", nil, Qt::Application::UnicodeUTF8)
|
126
|
+
@dailyRadioButton.text = Qt::Application.translate("ExportGeneralTimetableDialog", "\320\235\320\260 \320\264\320\265\320\275\321\214", nil, Qt::Application::UnicodeUTF8)
|
127
|
+
@dateDateEdit.displayFormat = Qt::Application.translate("ExportGeneralTimetableDialog", "dddd - d MMMM yy", nil, Qt::Application::UnicodeUTF8)
|
128
|
+
@label.text = Qt::Application.translate("ExportGeneralTimetableDialog", "\320\237\321\203\321\202\321\214 \320\272 \321\204\320\260\320\271\320\273\321\203:", nil, Qt::Application::UnicodeUTF8)
|
129
|
+
@browsePushButton.text = Qt::Application.translate("ExportGeneralTimetableDialog", "\320\222\321\213\320\261\321\200\320\260\321\202\321\214", nil, Qt::Application::UnicodeUTF8)
|
130
|
+
end # retranslateUi
|
131
|
+
|
132
|
+
def retranslate_ui(exportGeneralTimetableDialog)
|
133
|
+
retranslateUi(exportGeneralTimetableDialog)
|
134
|
+
end
|
135
|
+
|
136
|
+
end
|
137
|
+
|
138
|
+
module Ui
|
139
|
+
class ExportGeneralTimetableDialog < Ui_ExportGeneralTimetableDialog
|
140
|
+
end
|
141
|
+
end # module Ui
|
142
|
+
|