Class: Ui_Generic_commands

Inherits:
Object
  • Object
show all
Defined in:
lib/gui/gui_generic_commands.rb

Overview

** Form generated from reading ui file ‘gui_generic_commands.ui’ ** ** Created: jeu. mai 26 15:29:15 2016 ** by: Qt User Interface Compiler version 4.8.6 ** ** WARNING! All changes made in this file will be lost when recompiling ui file!

Direct Known Subclasses

Ui::Generic_commands

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionConcatenateObject (readonly)

Returns the value of attribute actionConcatenate.



15
16
17
# File 'lib/gui/gui_generic_commands.rb', line 15

def actionConcatenate
  @actionConcatenate
end

#actionDeleteObject (readonly)

Returns the value of attribute actionDelete.



14
15
16
# File 'lib/gui/gui_generic_commands.rb', line 14

def actionDelete
  @actionDelete
end

#actionEditObject (readonly)

Returns the value of attribute actionEdit.



12
13
14
# File 'lib/gui/gui_generic_commands.rb', line 12

def actionEdit
  @actionEdit
end

#actionExecuteObject (readonly)

Returns the value of attribute actionExecute.



11
12
13
# File 'lib/gui/gui_generic_commands.rb', line 11

def actionExecute
  @actionExecute
end

#actionTemplateObject (readonly)

Returns the value of attribute actionTemplate.



13
14
15
# File 'lib/gui/gui_generic_commands.rb', line 13

def actionTemplate
  @actionTemplate
end

#btn_new_cmdObject (readonly)

Returns the value of attribute btn_new_cmd.



31
32
33
# File 'lib/gui/gui_generic_commands.rb', line 31

def btn_new_cmd
  @btn_new_cmd
end

#centralwidgetObject (readonly)

Returns the value of attribute centralwidget.



16
17
18
# File 'lib/gui/gui_generic_commands.rb', line 16

def centralwidget
  @centralwidget
end

#check_resultObject (readonly)

Returns the value of attribute check_result.



29
30
31
# File 'lib/gui/gui_generic_commands.rb', line 29

def check_result
  @check_result
end

#gridLayoutObject (readonly)

Returns the value of attribute gridLayout.



17
18
19
# File 'lib/gui/gui_generic_commands.rb', line 17

def gridLayout
  @gridLayout
end

#hlObject (readonly)

Returns the value of attribute hl.



19
20
21
# File 'lib/gui/gui_generic_commands.rb', line 19

def hl
  @hl
end

#hl3Object (readonly)

Returns the value of attribute hl3.



28
29
30
# File 'lib/gui/gui_generic_commands.rb', line 28

def hl3
  @hl3
end

#hsObject (readonly)

Returns the value of attribute hs.



22
23
24
# File 'lib/gui/gui_generic_commands.rb', line 22

def hs
  @hs
end

#hs2Object (readonly)

Returns the value of attribute hs2.



30
31
32
# File 'lib/gui/gui_generic_commands.rb', line 30

def hs2
  @hs2
end

#labelObject (readonly)

Returns the value of attribute label.



27
28
29
# File 'lib/gui/gui_generic_commands.rb', line 27

def label
  @label
end

#lbl_chipObject (readonly)

Returns the value of attribute lbl_chip.



24
25
26
# File 'lib/gui/gui_generic_commands.rb', line 24

def lbl_chip
  @lbl_chip
end

#lbl_current_chipObject (readonly)

Returns the value of attribute lbl_current_chip.



23
24
25
# File 'lib/gui/gui_generic_commands.rb', line 23

def lbl_current_chip
  @lbl_current_chip
end

#lbl_searchObject (readonly)

Returns the value of attribute lbl_search.



20
21
22
# File 'lib/gui/gui_generic_commands.rb', line 20

def lbl_search
  @lbl_search
end

#lie_searchObject (readonly)

Returns the value of attribute lie_search.



21
22
23
# File 'lib/gui/gui_generic_commands.rb', line 21

def lie_search
  @lie_search
end

Returns the value of attribute menubar.



32
33
34
# File 'lib/gui/gui_generic_commands.rb', line 32

def menubar
  @menubar
end

Returns the value of attribute menuCommandes.



33
34
35
# File 'lib/gui/gui_generic_commands.rb', line 33

def menuCommandes
  @menuCommandes
end

#statusbarObject (readonly)

Returns the value of attribute statusbar.



34
35
36
# File 'lib/gui/gui_generic_commands.rb', line 34

def statusbar
  @statusbar
end

#tbl_cmdObject (readonly)

Returns the value of attribute tbl_cmd.



26
27
28
# File 'lib/gui/gui_generic_commands.rb', line 26

def tbl_cmd
  @tbl_cmd
end

#vlObject (readonly)

Returns the value of attribute vl.



18
19
20
# File 'lib/gui/gui_generic_commands.rb', line 18

def vl
  @vl
end

#vl2Object (readonly)

Returns the value of attribute vl2.



25
26
27
# File 'lib/gui/gui_generic_commands.rb', line 25

def vl2
  @vl2
end

Instance Method Details

#retranslate_ui(generic_commands) ⇒ Object

retranslateUi



192
193
194
# File 'lib/gui/gui_generic_commands.rb', line 192

def retranslate_ui(generic_commands)
    retranslateUi(generic_commands)
end

#retranslateUi(generic_commands) ⇒ Object



164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# File 'lib/gui/gui_generic_commands.rb', line 164

def retranslateUi(generic_commands)
generic_commands.windowTitle = Qt::Application.translate("Generic_commands", "Hardsploit - Commands", nil, Qt::Application::UnicodeUTF8)
@actionExecute.text = Qt::Application.translate("Generic_commands", "Execute", nil, Qt::Application::UnicodeUTF8)
@actionEdit.text = Qt::Application.translate("Generic_commands", "Edit", nil, Qt::Application::UnicodeUTF8)
@actionTemplate.text = Qt::Application.translate("Generic_commands", "Template", nil, Qt::Application::UnicodeUTF8)
@actionDelete.text = Qt::Application.translate("Generic_commands", "Delete", nil, Qt::Application::UnicodeUTF8)
@actionConcatenate.text = Qt::Application.translate("Generic_commands", "Concatenate", nil, Qt::Application::UnicodeUTF8)
@lbl_search.text = Qt::Application.translate("Generic_commands", "Search", nil, Qt::Application::UnicodeUTF8)
@lie_search.inputMask = ''
@lbl_current_chip.text = Qt::Application.translate("Generic_commands", "Current chip:", nil, Qt::Application::UnicodeUTF8)
@lbl_chip.text = Qt::Application.translate("Generic_commands", "[CHIP]", nil, Qt::Application::UnicodeUTF8)
if @tbl_cmd.columnCount < 2
    @tbl_cmd.columnCount = 2
end

__colItem = Qt::TableWidgetItem.new
__colItem.setText(Qt::Application.translate("Generic_commands", "Name", nil, Qt::Application::UnicodeUTF8))
@tbl_cmd.setHorizontalHeaderItem(0, __colItem)

__colItem1 = Qt::TableWidgetItem.new
__colItem1.setText(Qt::Application.translate("Generic_commands", "Description", nil, Qt::Application::UnicodeUTF8))
@tbl_cmd.setHorizontalHeaderItem(1, __colItem1)
@label.text = Qt::Application.translate("Generic_commands", "Right click on a command to open the menu", nil, Qt::Application::UnicodeUTF8)
@check_result.text = Qt::Application.translate("Generic_commands", "Show command result", nil, Qt::Application::UnicodeUTF8)
@btn_new_cmd.text = Qt::Application.translate("Generic_commands", "New Command", nil, Qt::Application::UnicodeUTF8)
@menuCommandes.title = Qt::Application.translate("Generic_commands", "Commandes...", nil, Qt::Application::UnicodeUTF8)
end

#setup_ui(generic_commands) ⇒ Object

setupUi



160
161
162
# File 'lib/gui/gui_generic_commands.rb', line 160

def setup_ui(generic_commands)
    setupUi(generic_commands)
end

#setupUi(generic_commands) ⇒ Object



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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# File 'lib/gui/gui_generic_commands.rb', line 36

def setupUi(generic_commands)
if generic_commands.objectName.nil?
    generic_commands.objectName = "generic_commands"
end
generic_commands.windowModality = Qt::ApplicationModal
generic_commands.resize(542, 383)
@actionExecute = Qt::Action.new(generic_commands)
@actionExecute.objectName = "actionExecute"
@actionEdit = Qt::Action.new(generic_commands)
@actionEdit.objectName = "actionEdit"
@actionTemplate = Qt::Action.new(generic_commands)
@actionTemplate.objectName = "actionTemplate"
@actionDelete = Qt::Action.new(generic_commands)
@actionDelete.objectName = "actionDelete"
@actionConcatenate = Qt::Action.new(generic_commands)
@actionConcatenate.objectName = "actionConcatenate"
@centralwidget = Qt::Widget.new(generic_commands)
@centralwidget.objectName = "centralwidget"
@gridLayout = Qt::GridLayout.new(@centralwidget)
@gridLayout.objectName = "gridLayout"
@vl = Qt::VBoxLayout.new()
@vl.objectName = "vl"
@hl = Qt::HBoxLayout.new()
@hl.objectName = "hl"
@lbl_search = Qt::Label.new(@centralwidget)
@lbl_search.objectName = "lbl_search"

@hl.addWidget(@lbl_search)

@lie_search = Qt::LineEdit.new(@centralwidget)
@lie_search.objectName = "lie_search"
@lie_search.maxLength = 10

@hl.addWidget(@lie_search)

@hs = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)

@hl.addItem(@hs)

@lbl_current_chip = Qt::Label.new(@centralwidget)
@lbl_current_chip.objectName = "lbl_current_chip"

@hl.addWidget(@lbl_current_chip)

@lbl_chip = Qt::Label.new(@centralwidget)
@lbl_chip.objectName = "lbl_chip"

@hl.addWidget(@lbl_chip)


@vl.addLayout(@hl)

@vl2 = Qt::VBoxLayout.new()
@vl2.objectName = "vl2"
@tbl_cmd = Qt::TableWidget.new(@centralwidget)
@tbl_cmd.objectName = "tbl_cmd"
@font = Qt::Font.new
@font.family = "Arial"
@tbl_cmd.font = @font
@tbl_cmd.sortingEnabled = true

@vl2.addWidget(@tbl_cmd)

@label = Qt::Label.new(@centralwidget)
@label.objectName = "label"

@vl2.addWidget(@label)

@hl3 = Qt::HBoxLayout.new()
@hl3.objectName = "hl3"
@check_result = Qt::CheckBox.new(@centralwidget)
@check_result.objectName = "check_result"
@check_result.checked = true

@hl3.addWidget(@check_result)

@hs2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)

@hl3.addItem(@hs2)

@btn_new_cmd = Qt::PushButton.new(@centralwidget)
@btn_new_cmd.objectName = "btn_new_cmd"

@hl3.addWidget(@btn_new_cmd)


@vl2.addLayout(@hl3)


@vl.addLayout(@vl2)


@gridLayout.addLayout(@vl, 0, 0, 1, 1)

generic_commands.centralWidget = @centralwidget
@menubar = Qt::MenuBar.new(generic_commands)
@menubar.objectName = "menubar"
@menubar.geometry = Qt::Rect.new(0, 0, 542, 21)
@menuCommandes = Qt::Menu.new(@menubar)
@menuCommandes.objectName = "menuCommandes"
generic_commands.setMenuBar(@menubar)
@statusbar = Qt::StatusBar.new(generic_commands)
@statusbar.objectName = "statusbar"
generic_commands.statusBar = @statusbar

@menubar.addAction(@menuCommandes.menuAction())
@menuCommandes.addAction(@actionExecute)
@menuCommandes.addAction(@actionEdit)
@menuCommandes.addAction(@actionTemplate)
@menuCommandes.addAction(@actionDelete)
@menuCommandes.addAction(@actionConcatenate)

retranslateUi(generic_commands)
Qt::Object.connect(@lie_search, SIGNAL('textChanged(QString)'), generic_commands, SLOT('feed_cmd_array()'))
Qt::Object.connect(@btn_new_cmd, SIGNAL('clicked()'), generic_commands, SLOT('create()'))
Qt::Object.connect(@actionExecute, SIGNAL('triggered()'), generic_commands, SLOT('execute()'))
Qt::Object.connect(@actionEdit, SIGNAL('triggered()'), generic_commands, SLOT('edit()'))
Qt::Object.connect(@actionDelete, SIGNAL('triggered()'), generic_commands, SLOT('delete()'))
Qt::Object.connect(@actionTemplate, SIGNAL('triggered()'), generic_commands, SLOT('template()'))
Qt::Object.connect(@actionConcatenate, SIGNAL('triggered()'), generic_commands, SLOT('concatenate()'))

Qt::MetaObject.connectSlotsByName(generic_commands)
end