AxChecker
Last updated
Last updated
The source code of AxChecker is available on GitHub. AxChecker is a helper application for checking json files used in WidgetBuilder to create forms in listener and agent plugins in Adaptix. AxChecker parses a JSON file, creates a dialog box based on it, and outputs data that will be sent to the Adaptix server.
The image of the near window is built according to the configuration file _ui_agent.json. In the main window, AXChecker displays the data entered in the dialog box.
The JSON file must contain this structure, which includes the required layout
and elements
fields.
All input elements have an id property. This field contains the name of the parameter in which the entered data will be sent to the server in JSON format.
A markup element that arranges widgets horizontally. Transforms into QHBoxLayout. Has the following properties:
elements - JSON array of elements.
A markup element that arranges widgets vertically. Transforms into QVBoxLayout. Has the following properties:
elements - JSON array of elements.
A markup element that arranges widgets in a grid. Transforms into QGridLayout. Has the following properties:
elements - JSON array of elements.
Each element in the elements array must have a position
property. This property is an array of 4 integers: [fromRow, fromColumn, rowSpan, columnSpan]. The element starts at FromRow, FromColumn and spans Rowspan and Columnspan.
A markup element that draws a horizontal (vertical) line.
The element provides text display. Transforms into QLabel. Has the following properties:
text
The element is a one-line text editor.Transforms into QLineEdit. Has the following properties:
id
text
placeholder
The element combines a button with a dropdown list. Transforms into QComboBox. Our following properties:
id
items - JSON array of strings.
text - сurrent text value.
The element represents an integer spin box. Transforms into QSpinBox. Our following properties:
id
min - minimum value of the spin box.
max - maximum value of the spin box.
value - сurrent value.
The element is used to edit and display plain text. Transforms into QPlainTextEdit. Our following properties:
id
text
placeholder
The element provides a checkbox with a text label. Transforms into QCheckBox. Our following properties:
id
text
checked - a boolean value that indicates whether the checkbox is checked or not.
The element provides an input field with a button to open the file launch window. After selecting a file, the path to it will be written to the input field. It has the following properties:
id
placeholder
When compiling data, the file contents are encoded in base64.
The element provides a stack of tabbed widgets. Transforms into QTabWidget. Our following properties:
tabs - JSON array of tab objects.
Each tab must have a title
and loyout
property, as well as an array of elements
.