porting to QT by Eduard Kalinowski
189
SrcPony/CMakeLists.txt
Normal file
@ -0,0 +1,189 @@
|
||||
#CMakeLists.txt
|
||||
|
||||
SET(PONY_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/aboutmdlg.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2app.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at25xxx.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at93cbus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/crc.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e24xx-1.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e24xx-2.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e24xx.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e24xx-5.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2profil.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fusemdlg.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/intfbuf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lpt_io_interf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pgminter.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/picbus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/progoption.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sernumdlg.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/x2444.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at17xxx.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at89sbus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at93cxx8.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/csmfbuf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2cmdw.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2awinfo.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/easyi2c_interf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/i2cbus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ispinterf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/microbus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pic125xx.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/picbusnew.cpp
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/retrymdlg.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spi-bus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at250bus2.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at89sxx.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at93cxx.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device.cpp
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/e2cnv.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/eeptypes.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/imbus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/linuxsysfsint.cpp
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/modaldlg_utilities.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pic12bus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ponyioint.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/rs232int.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sxbus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at250bus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at90sbus.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/binfbuf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/dt006interf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2dlg.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/filebuf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/infomdlg.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lpt_ext_interf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/motsfbuf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pic168xx.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/portint.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sde2506.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/wait.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at250xx.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at90sxx.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/busio.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2401.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2pfbuf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/filldlg.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/interfconv.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lptinterf.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/nvm3060.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pic16xx.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/x2444bus.cpp
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/profile.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sdebus.cpp)
|
||||
|
||||
|
||||
SET(PONY_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/e2app.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2awinfo.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2cmdw.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/globals.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/microbus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aboutmdlg.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at25xxx.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at93cbus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/busio.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/dt006interf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e24xx.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2dlg.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/eeptypes.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ispinterf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lpt_io_interf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pgminter.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/picbus.h
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/profile.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sde2506.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sxbus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at17xxx.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at89sbus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at93cxx8.h
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/cmdenum.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2401.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2pfbuf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/errcode.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/i2cbus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/jdminter.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pic125xx.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/picbusnew.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/progoption.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sdebus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/types.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at250bus2.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at89sxx.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at93cxx.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/crc.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e24xx-1.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2phead.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/filebuf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/imbus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/linuxsysfsint.h
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/modaldlg_utilities.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pic12bus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ponyioint.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/resource.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/sernumdlg.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/wait.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at250bus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at90sbus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/binfbuf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/csmfbuf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e24xx-2.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e2profil.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/filldlg.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/infomdlg.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lpt_ext_interf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/motsfbuf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pic168xx.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/portint.h
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/retrymdlg.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/spi-bus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/x2444bus.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at250xx.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/at90sxx.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/businter.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/e24xx-5.h
|
||||
# ${CMAKE_CURRENT_SOURCE_DIR}/e2cnv.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/easyi2c_interf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fusemdlg.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/intfbuf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lptinterf.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/nvm3060.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/pic16xx.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/ppuser.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/rs232int.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/string_table.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/x2444.h)
|
||||
|
||||
SET(PONY_FORMS ${CMAKE_CURRENT_SOURCE_DIR}/forms/aboutdlg.ui
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/forms/blockdlg.ui
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/forms/editdlg.ui
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/forms/notesdlg.ui
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/forms/e2dlg.ui
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/forms/fusedlg.ui
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/forms/mainwindow.ui
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/forms/osccalibr.ui
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/forms/progoption.ui
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/forms/sernumcfg.ui
|
||||
PARENT_SCOPE)
|
||||
|
||||
|
||||
SET(PONY_SOURCES ${PONY_SOURCES}
|
||||
PARENT_SCOPE)
|
||||
|
||||
SET(PONY_HEADERS ${PONY_HEADERS}
|
||||
PARENT_SCOPE)
|
||||
|
||||
|
||||
# SET(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${MAIN_SOURCES} ${MAIN_FORMS} ${MAIN_HEADERS}
|
||||
# PARENT_SCOPE)
|
||||
|
||||
|
||||
SET(APP_RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ponyprog.qrc
|
||||
PARENT_SCOPE)
|
||||
|
||||
|
||||
# cleanup $build/*.cpp~ on "make clean"
|
||||
SET_DIRECTORY_PROPERTIES(PROPERTIES
|
||||
ADDITIONAL_MAKE_CLEAN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*~")
|
||||
|
134
SrcPony/Makefile
Normal file
@ -0,0 +1,134 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.5
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
|
||||
.PHONY : default_target
|
||||
|
||||
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||
.NOTPARALLEL:
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
|
||||
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||
SUFFIXES =
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
|
||||
# Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E remove -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /home/edu/Projects/PonyProg-2.08d
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /home/edu/Projects/PonyProg-2.08d
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
|
||||
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
cd /home/edu/Projects/PonyProg-2.08d && $(CMAKE_COMMAND) -E cmake_progress_start /home/edu/Projects/PonyProg-2.08d/CMakeFiles /home/edu/Projects/PonyProg-2.08d/src/CMakeFiles/progress.marks
|
||||
cd /home/edu/Projects/PonyProg-2.08d && $(MAKE) -f CMakeFiles/Makefile2 src/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/edu/Projects/PonyProg-2.08d/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
cd /home/edu/Projects/PonyProg-2.08d && $(MAKE) -f CMakeFiles/Makefile2 src/clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
cd /home/edu/Projects/PonyProg-2.08d && $(MAKE) -f CMakeFiles/Makefile2 src/preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
cd /home/edu/Projects/PonyProg-2.08d && $(MAKE) -f CMakeFiles/Makefile2 src/preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
cd /home/edu/Projects/PonyProg-2.08d && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... edit_cache"
|
||||
@echo "... rebuild_cache"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
cd /home/edu/Projects/PonyProg-2.08d && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
85
SrcPony/forms/aboutdlg.ui
Normal file
@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>AboutDialog</class>
|
||||
<widget class="QDialog" name="AboutDialog">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::WindowModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="2" column="1" colspan="3">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushOk">
|
||||
<property name="text">
|
||||
<string>ok</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushHelp">
|
||||
<property name="text">
|
||||
<string>help</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="chkSound">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="4">
|
||||
<widget class="QLabel" name="lblAbout0">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="QLabel" name="icoPonyProg">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" colspan="2">
|
||||
<widget class="QLabel" name="lblAbout1">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
93
SrcPony/forms/blockdlg.ui
Normal file
@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>BlockDialog</class>
|
||||
<widget class="QDialog" name="BlockDialog">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::WindowModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>217</width>
|
||||
<height>183</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QFrame" name="frmFuses">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lblFrom">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="txiFrom"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="lblTo">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="txiTo"/>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="lblVal">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="txiVal"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="QPushButton" name="pushOk">
|
||||
<property name="text">
|
||||
<string>ok</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QPushButton" name="pushCancel">
|
||||
<property name="text">
|
||||
<string>cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
198
SrcPony/forms/e2dlg.ui
Normal file
@ -0,0 +1,198 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>E2Dialog</class>
|
||||
<widget class="QDialog" name="E2Dialog">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::WindowModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>330</width>
|
||||
<height>336</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_5">
|
||||
<item row="4" column="0" colspan="2">
|
||||
<widget class="QFrame" name="frmPolsel">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QLabel" name="lblPol1">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QCheckBox" name="chkPol1">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QCheckBox" name="chkPol3">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="chkPol2">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QCheckBox" name="chkPol4">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0" colspan="2">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushTest">
|
||||
<property name="text">
|
||||
<string>test</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushCancel">
|
||||
<property name="text">
|
||||
<string>cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushOk">
|
||||
<property name="text">
|
||||
<string>ok</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="2">
|
||||
<widget class="QLabel" name="lblMainMsg">
|
||||
<property name="text">
|
||||
<string>I/O port settings</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="2">
|
||||
<widget class="QGroupBox" name="frmComsel">
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="cbxInterfNum">
|
||||
<property name="toolTip">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Select number</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="QFrame" name="frmPortsel">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_4">
|
||||
<item row="0" column="0">
|
||||
<widget class="QRadioButton" name="rdbComPort">
|
||||
<property name="text">
|
||||
<string>RadioButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QRadioButton" name="rdbLptPort">
|
||||
<property name="text">
|
||||
<string>RadioButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QComboBox" name="cbxInterfLPT">
|
||||
<property name="toolTip">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>-1</number>
|
||||
</property>
|
||||
<property name="insertPolicy">
|
||||
<enum>QComboBox::InsertAtTop</enum>
|
||||
</property>
|
||||
<property name="modelColumn">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="cbxInterfCOM">
|
||||
<property name="toolTip">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="currentIndex">
|
||||
<number>-1</number>
|
||||
</property>
|
||||
<property name="insertPolicy">
|
||||
<enum>QComboBox::InsertAtTop</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="Line" name="line">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
93
SrcPony/forms/editdlg.ui
Normal file
@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>EditDialog</class>
|
||||
<widget class="QDialog" name="EditDialog">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::WindowModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>240</width>
|
||||
<height>195</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QFrame" name="frmFuses">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lblFrom">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="txiFrom"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="lblTo">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="txiTo"/>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="lblVal">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="txiVal"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2">
|
||||
<widget class="QPushButton" name="pushOk">
|
||||
<property name="text">
|
||||
<string>ok</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QPushButton" name="pushCancel">
|
||||
<property name="text">
|
||||
<string>cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
645
SrcPony/forms/fusedlg.ui
Normal file
@ -0,0 +1,645 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>FuseDialog</class>
|
||||
<widget class="QDialog" name="FuseDialog">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::WindowModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>494</width>
|
||||
<height>510</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_4">
|
||||
<item row="3" column="0">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_9">
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>588</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushWrite">
|
||||
<property name="text">
|
||||
<string>Write</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushRead">
|
||||
<property name="text">
|
||||
<string>Read</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushCancel">
|
||||
<property name="text">
|
||||
<string>cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushOk">
|
||||
<property name="text">
|
||||
<string>ok</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QGroupBox" name="frmLock">
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QFrame" name="frmLock0">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_5">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="chk7_L0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QCheckBox" name="chk3_L0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QCheckBox" name="chk5_L0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6">
|
||||
<widget class="QCheckBox" name="chk1_L0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<widget class="QCheckBox" name="chk2_L0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QCheckBox" name="chk6_L0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QCheckBox" name="chk4_L0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QCheckBox" name="chk0_L0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QFrame" name="frmLock1">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_6">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="chk7_L1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QCheckBox" name="chk6_L1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QCheckBox" name="chk5_L1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QCheckBox" name="chk4_L1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QCheckBox" name="chk3_L1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<widget class="QCheckBox" name="chk2_L1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6">
|
||||
<widget class="QCheckBox" name="chk1_L1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QCheckBox" name="chk0_L1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QFrame" name="frmLock2">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_7">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="chk7_L2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QCheckBox" name="chk6_L2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QCheckBox" name="chk5_L2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QCheckBox" name="chk4_L2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QCheckBox" name="chk3_L2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<widget class="QCheckBox" name="chk2_L2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6">
|
||||
<widget class="QCheckBox" name="chk1_L2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QCheckBox" name="chk0_L2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QFrame" name="frmLock3">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_8">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="chk7_L3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QCheckBox" name="chk6_L3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QCheckBox" name="chk5_L3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QCheckBox" name="chk4_L3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QCheckBox" name="chk3_L3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<widget class="QCheckBox" name="chk2_L3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6">
|
||||
<widget class="QCheckBox" name="chk1_L3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QCheckBox" name="chk0_L3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QGroupBox" name="frmFuses">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QFrame" name="frmFuses0">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_9">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="chk7_F0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QCheckBox" name="chk6_F0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QCheckBox" name="chk5_F0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QCheckBox" name="chk4_F0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QCheckBox" name="chk3_F0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<widget class="QCheckBox" name="chk2_F0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6">
|
||||
<widget class="QCheckBox" name="chk1_F0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QCheckBox" name="chk0_F0">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QFrame" name="frmFuses1">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_10">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="chk7_F1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QCheckBox" name="chk6_F1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QCheckBox" name="chk5_F1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QCheckBox" name="chk4_F1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QCheckBox" name="chk3_F1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<widget class="QCheckBox" name="chk2_F1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6">
|
||||
<widget class="QCheckBox" name="chk1_F1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QCheckBox" name="chk0_F1">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QFrame" name="frmFuses2">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_11">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="chk7_F2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QCheckBox" name="chk6_F2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QCheckBox" name="chk5_F2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QCheckBox" name="chk4_F2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QCheckBox" name="chk3_F2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<widget class="QCheckBox" name="chk2_F2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6">
|
||||
<widget class="QCheckBox" name="chk1_F2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QCheckBox" name="chk0_F2">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QFrame" name="frmFuses3">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_12">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="chk7_F3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QCheckBox" name="chk6_F3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QCheckBox" name="chk5_F3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<widget class="QCheckBox" name="chk4_F3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="4">
|
||||
<widget class="QCheckBox" name="chk3_F3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="5">
|
||||
<widget class="QCheckBox" name="chk2_F3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="6">
|
||||
<widget class="QCheckBox" name="chk1_F3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="7">
|
||||
<widget class="QCheckBox" name="chk0_F3">
|
||||
<property name="text">
|
||||
<string>txt</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QGroupBox" name="frmHlp">
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="chkHlp0">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QCheckBox" name="chkHlp1">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
559
SrcPony/forms/mainwindow.ui
Normal file
@ -0,0 +1,559 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>MainWindow</class>
|
||||
<widget class="QMainWindow" name="MainWindow">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>600</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>MainWindow</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralwidget"/>
|
||||
<widget class="QMenuBar" name="menubar">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>800</width>
|
||||
<height>29</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
<property name="title">
|
||||
<string>Fi&le</string>
|
||||
</property>
|
||||
<addaction name="actionNew"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionOpen"/>
|
||||
<addaction name="actionOpenFlash"/>
|
||||
<addaction name="actionOpenEep"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionSave"/>
|
||||
<addaction name="actionSaveAs"/>
|
||||
<addaction name="actionSaveFlashAs"/>
|
||||
<addaction name="actionSaveEepAs"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionReload"/>
|
||||
<addaction name="actionPrint"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionClose"/>
|
||||
<addaction name="actionExit"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionFile1"/>
|
||||
<addaction name="actionFile2"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuDevice">
|
||||
<property name="title">
|
||||
<string>De&vice</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuCommand">
|
||||
<property name="title">
|
||||
<string>&Command</string>
|
||||
</property>
|
||||
<addaction name="actionReadAll"/>
|
||||
<addaction name="actionReadFlash"/>
|
||||
<addaction name="actionReadEep"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionWriteAll"/>
|
||||
<addaction name="actionWriteFlash"/>
|
||||
<addaction name="actionWriteEep"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionVerifyAll"/>
|
||||
<addaction name="actionVerifyFlash"/>
|
||||
<addaction name="actionVerifyEep"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionWriteSecurity"/>
|
||||
<addaction name="actionErase"/>
|
||||
<addaction name="actionReset"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionProgram"/>
|
||||
<addaction name="actionProgramOptions"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionReadOscByte"/>
|
||||
<addaction name="actionOscOptions"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuScript">
|
||||
<property name="title">
|
||||
<string>Scri&pt</string>
|
||||
</property>
|
||||
<addaction name="actionLoadScript"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionRunScript"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuUtility">
|
||||
<property name="title">
|
||||
<string>&Utility</string>
|
||||
</property>
|
||||
<addaction name="actionClearBuffer"/>
|
||||
<addaction name="actionFillBuffer"/>
|
||||
<addaction name="actionDoubleBank"/>
|
||||
<addaction name="actionSetSN"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionSNConfig"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuSetup">
|
||||
<property name="title">
|
||||
<string>Se&tup</string>
|
||||
</property>
|
||||
<addaction name="actionInterfaceSetup"/>
|
||||
<addaction name="actionCalibration"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu">
|
||||
<property name="title">
|
||||
<string>?</string>
|
||||
</property>
|
||||
<addaction name="actionHelp_2"/>
|
||||
<addaction name="actionAbout"/>
|
||||
<addaction name="actionAboutQt"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuEdit">
|
||||
<property name="title">
|
||||
<string>Edit</string>
|
||||
</property>
|
||||
<addaction name="actionEditNote"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionEditBuferEnabled"/>
|
||||
</widget>
|
||||
<addaction name="menuFile"/>
|
||||
<addaction name="menuEdit"/>
|
||||
<addaction name="menuDevice"/>
|
||||
<addaction name="menuCommand"/>
|
||||
<addaction name="menuScript"/>
|
||||
<addaction name="menuUtility"/>
|
||||
<addaction name="menuSetup"/>
|
||||
<addaction name="menu"/>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar"/>
|
||||
<widget class="QToolBar" name="toolBarFiles">
|
||||
<property name="windowTitle">
|
||||
<string>File Operations</string>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="actionNew"/>
|
||||
<addaction name="actionOpen"/>
|
||||
<addaction name="actionOpenFlash"/>
|
||||
<addaction name="actionOpenEep"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionSave"/>
|
||||
<addaction name="actionSaveFlashAs"/>
|
||||
<addaction name="actionSaveEepAs"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionReload"/>
|
||||
<addaction name="actionScript"/>
|
||||
<addaction name="actionPrint"/>
|
||||
<addaction name="actionSetup"/>
|
||||
<addaction name="actionHelp"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="toolBarDevices">
|
||||
<property name="windowTitle">
|
||||
<string>Devices</string>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="toolBarHW">
|
||||
<property name="windowTitle">
|
||||
<string>Hardware Operations</string>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>true</bool>
|
||||
</attribute>
|
||||
<addaction name="actionReadAll"/>
|
||||
<addaction name="actionReadFlash"/>
|
||||
<addaction name="actionReadEep"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionWriteAll"/>
|
||||
<addaction name="actionWriteFlash"/>
|
||||
<addaction name="actionWriteEep"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionErase"/>
|
||||
<addaction name="actionLock"/>
|
||||
<addaction name="actionSerial_Number"/>
|
||||
</widget>
|
||||
<widget class="QToolBar" name="toolBarNote">
|
||||
<property name="windowTitle">
|
||||
<string>Notes</string>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="actionEditNote"/>
|
||||
</widget>
|
||||
<action name="actionNew">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/new.png</normaloff>:/icons/new.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>New Window</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpen">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/open20.png</normaloff>:/icons/open20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open Device File</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpenFlash">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/open_flash20x20.png</normaloff>:/icons/open_flash20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open Program (FLASH) File...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpenEep">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/open_eep20x20.png</normaloff>:/icons/open_eep20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Open Data (EEPROM) File...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSave">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/save20.png</normaloff>:/icons/save20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Save Device File</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSaveFlashAs">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/save_flash20x20.png</normaloff>:/icons/save_flash20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Save Program File (FLASH) As...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSaveEepAs">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/save_eep20x20.png</normaloff>:/icons/save_eep20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Save Data File (EEPROM) As...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReload">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/reload20.png</normaloff>:/icons/reload20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reload Files</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionScript">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/script20x20.png</normaloff>:/icons/script20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Script</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionPrint">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/print20x20.png</normaloff>:/icons/print20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Print...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSetup">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/setup20x20.png</normaloff>:/icons/setup20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Setup</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionHelp">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/help20.png</normaloff>:/icons/help20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Help</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReadAll">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/rd_all20x20.png</normaloff>:/icons/rd_all20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Read All</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReadFlash">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/rd_flash20x20.png</normaloff>:/icons/rd_flash20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Read Program (&FLASH)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReadEep">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/rd_eep20x20.png</normaloff>:/icons/rd_eep20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Read &Data (EEPROM)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionWriteAll">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/wr_all20x20.png</normaloff>:/icons/wr_all20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Write All</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionWriteFlash">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/wr_flash20x20.png</normaloff>:/icons/wr_flash20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Wr&ite Program (FLASH)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionWriteEep">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/wr_eep20x20.png</normaloff>:/icons/wr_eep20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Write Data (EEPRO&M)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionErase">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/erase20x20.png</normaloff>:/icons/erase20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Erase</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLock">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/lock20.png</normaloff>:/icons/lock20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Lock</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSerial_Number">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/sernum20x20.png</normaloff>:/icons/sernum20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Serial Number</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionEditNote">
|
||||
<property name="icon">
|
||||
<iconset resource="../ponyprog.qrc">
|
||||
<normaloff>:/icons/edit20x20.png</normaloff>:/icons/edit20x20.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Edit Note</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionVerifyAll">
|
||||
<property name="text">
|
||||
<string>&Verify All</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionVerifyFlash">
|
||||
<property name="text">
|
||||
<string>Verif&y Program (FLASH)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionVerifyEep">
|
||||
<property name="text">
|
||||
<string>Verify Data (EEPROM)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionWriteSecurity">
|
||||
<property name="text">
|
||||
<string>&Security and Configuration Bits...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReset">
|
||||
<property name="text">
|
||||
<string>Reset</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionProgram">
|
||||
<property name="text">
|
||||
<string>&Program</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionProgramOptions">
|
||||
<property name="text">
|
||||
<string>Progr&am Options...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReadOscByte">
|
||||
<property name="text">
|
||||
<string>Read Osc.&Calibration Byte</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOscOptions">
|
||||
<property name="text">
|
||||
<string>&Osc. Calibration Options...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionClose">
|
||||
<property name="text">
|
||||
<string>&Close</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionExit">
|
||||
<property name="text">
|
||||
<string>&Exit</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionInterfaceSetup">
|
||||
<property name="text">
|
||||
<string>&Interface Setup...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCalibration">
|
||||
<property name="text">
|
||||
<string>&Calibration</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSecurityBits">
|
||||
<property name="text">
|
||||
<string>Security Bits...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLoadScript">
|
||||
<property name="text">
|
||||
<string>&Load and Run...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRunScript">
|
||||
<property name="text">
|
||||
<string>&Run</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionClearBuffer">
|
||||
<property name="text">
|
||||
<string>&Clear Buffer</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFillBuffer">
|
||||
<property name="text">
|
||||
<string>&Fill Buffer...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDoubleBank">
|
||||
<property name="text">
|
||||
<string>&Double Bank</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionByteSwap">
|
||||
<property name="text">
|
||||
<string>&Byte Swap</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSetSN">
|
||||
<property name="text">
|
||||
<string>&Set SerialNumber</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSNConfig">
|
||||
<property name="text">
|
||||
<string>S&erialNumber Config...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionHelp_2">
|
||||
<property name="text">
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAbout">
|
||||
<property name="text">
|
||||
<string>&About</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLog">
|
||||
<property name="text">
|
||||
<string>Log</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSaveAs">
|
||||
<property name="text">
|
||||
<string>Save Device File As...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionEditBuferEnabled">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Edit Buffer enabled</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAboutQt">
|
||||
<property name="text">
|
||||
<string>About Qt</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFile1">
|
||||
<property name="text">
|
||||
<string>File1</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFile2">
|
||||
<property name="text">
|
||||
<string>File2</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../ponyprog.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
90
SrcPony/forms/notesdlg.ui
Normal file
@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>NotesDialog</class>
|
||||
<widget class="QDialog" name="NotesDialog">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::WindowModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>500</width>
|
||||
<height>158</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="2" column="2">
|
||||
<widget class="QPushButton" name="pushOk">
|
||||
<property name="text">
|
||||
<string>ok</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QPushButton" name="pushCancel">
|
||||
<property name="text">
|
||||
<string>cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3">
|
||||
<widget class="QFrame" name="frmFuses">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="txiStrID"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="lblCommnt">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="txiCommnt"/>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lblStrID">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QLabel" name="lblMainMsg">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
97
SrcPony/forms/osccalibr.ui
Normal file
@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>OscCalibrDialog</class>
|
||||
<widget class="QDialog" name="OscCalibrDialog">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::WindowModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>321</width>
|
||||
<height>164</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="2" column="2">
|
||||
<widget class="QPushButton" name="pushCancel">
|
||||
<property name="text">
|
||||
<string>cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="2" column="3">
|
||||
<widget class="QPushButton" name="pushOk">
|
||||
<property name="text">
|
||||
<string>ok</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="4">
|
||||
<widget class="QCheckBox" name="chkMemOffset">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QPushButton" name="pushRead">
|
||||
<property name="text">
|
||||
<string>read</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="4">
|
||||
<widget class="QFrame" name="frmSN">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lblLoc">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="txiLoc"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="lblVal">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="txiVal"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
140
SrcPony/forms/progoption.ui
Normal file
@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>ProgOptDialog</class>
|
||||
<widget class="QDialog" name="ProgOptDialog">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::WindowModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>251</width>
|
||||
<height>377</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="2" column="1">
|
||||
<widget class="QPushButton" name="pushCancel">
|
||||
<property name="text">
|
||||
<string>cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2">
|
||||
<widget class="QPushButton" name="pushOk">
|
||||
<property name="text">
|
||||
<string>ok</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3">
|
||||
<widget class="QFrame" name="frmFuses">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QCheckBox" name="idRELOAD">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QCheckBox" name="idREADFLASH">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="idREADEEP">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QCheckBox" name="idBYTESWAP">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QCheckBox" name="idSETID">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QCheckBox" name="idREADOSCCAL">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="QCheckBox" name="idERASE">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="QCheckBox" name="idFLASH">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="QCheckBox" name="idEEPROM">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<widget class="QCheckBox" name="idLOCK">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QLabel" name="lblMainMsg">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
130
SrcPony/forms/sernumcfg.ui
Normal file
@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>SNCfgDialog</class>
|
||||
<widget class="QDialog" name="SNCfgDialog">
|
||||
<property name="windowModality">
|
||||
<enum>Qt::WindowModal</enum>
|
||||
</property>
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>221</width>
|
||||
<height>314</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QFrame" name="frmSN">
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="lblLoc">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="txiLoc"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="lblLen">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="txiLen"/>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="lblVal">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="txiVal"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QPushButton" name="pushCancel">
|
||||
<property name="text">
|
||||
<string>cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="2">
|
||||
<widget class="QPushButton" name="pushOk">
|
||||
<property name="text">
|
||||
<string>ok</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<widget class="QGroupBox" name="frmFormat">
|
||||
<property name="title">
|
||||
<string>boo</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rdbLittleEnd">
|
||||
<property name="text">
|
||||
<string>RadioButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="rdbBigEnd">
|
||||
<property name="text">
|
||||
<string>RadioButton</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="chkAutoInc">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0" colspan="3">
|
||||
<widget class="QCheckBox" name="chkMemOffset">
|
||||
<property name="text">
|
||||
<string>CheckBox</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
BIN
SrcPony/icons/about.png
Normal file
After Width: | Height: | Size: 385 B |
BIN
SrcPony/icons/chip20x20.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
SrcPony/icons/copy.png
Normal file
After Width: | Height: | Size: 210 B |
BIN
SrcPony/icons/cut.png
Normal file
After Width: | Height: | Size: 194 B |
BIN
SrcPony/icons/delete.png
Normal file
After Width: | Height: | Size: 190 B |
BIN
SrcPony/icons/edit20x20.png
Normal file
After Width: | Height: | Size: 239 B |
BIN
SrcPony/icons/erase20x20.png
Normal file
After Width: | Height: | Size: 243 B |
BIN
SrcPony/icons/find.png
Normal file
After Width: | Height: | Size: 203 B |
BIN
SrcPony/icons/help.png
Normal file
After Width: | Height: | Size: 198 B |
BIN
SrcPony/icons/help2.png
Normal file
After Width: | Height: | Size: 215 B |
BIN
SrcPony/icons/help20.png
Normal file
After Width: | Height: | Size: 194 B |
BIN
SrcPony/icons/help20x20.png
Normal file
After Width: | Height: | Size: 194 B |
BIN
SrcPony/icons/icon1.png
Normal file
After Width: | Height: | Size: 448 B |
BIN
SrcPony/icons/lock.png
Normal file
After Width: | Height: | Size: 243 B |
BIN
SrcPony/icons/lock20.png
Normal file
After Width: | Height: | Size: 241 B |
BIN
SrcPony/icons/lock20x20.png
Normal file
After Width: | Height: | Size: 241 B |
BIN
SrcPony/icons/new.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
SrcPony/icons/new20x20.png
Normal file
After Width: | Height: | Size: 239 B |
BIN
SrcPony/icons/open.png
Normal file
After Width: | Height: | Size: 244 B |
BIN
SrcPony/icons/open20.png
Normal file
After Width: | Height: | Size: 237 B |
BIN
SrcPony/icons/open20x20.png
Normal file
After Width: | Height: | Size: 237 B |
BIN
SrcPony/icons/open_eep20x20.png
Normal file
After Width: | Height: | Size: 251 B |
BIN
SrcPony/icons/open_flash20x20.png
Normal file
After Width: | Height: | Size: 254 B |
BIN
SrcPony/icons/paste.png
Normal file
After Width: | Height: | Size: 246 B |
BIN
SrcPony/icons/ponyprog-small.png
Normal file
After Width: | Height: | Size: 382 B |
BIN
SrcPony/icons/ponyprog.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
SrcPony/icons/print.png
Normal file
After Width: | Height: | Size: 234 B |
BIN
SrcPony/icons/print20.png
Normal file
After Width: | Height: | Size: 233 B |
BIN
SrcPony/icons/print20x20.png
Normal file
After Width: | Height: | Size: 233 B |
BIN
SrcPony/icons/program20x20.png
Normal file
After Width: | Height: | Size: 185 B |
BIN
SrcPony/icons/rd_all20x20.png
Normal file
After Width: | Height: | Size: 244 B |
BIN
SrcPony/icons/rd_eep.png
Normal file
After Width: | Height: | Size: 244 B |
BIN
SrcPony/icons/rd_eep20x20.png
Normal file
After Width: | Height: | Size: 252 B |
BIN
SrcPony/icons/rd_flash20x20.png
Normal file
After Width: | Height: | Size: 256 B |
BIN
SrcPony/icons/read.png
Normal file
After Width: | Height: | Size: 235 B |
BIN
SrcPony/icons/read20.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
SrcPony/icons/read20x20.png
Normal file
After Width: | Height: | Size: 224 B |
BIN
SrcPony/icons/reload.png
Normal file
After Width: | Height: | Size: 223 B |
BIN
SrcPony/icons/reload20.png
Normal file
After Width: | Height: | Size: 223 B |
BIN
SrcPony/icons/reload20x20.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
SrcPony/icons/save.png
Normal file
After Width: | Height: | Size: 219 B |
BIN
SrcPony/icons/save20.png
Normal file
After Width: | Height: | Size: 221 B |
BIN
SrcPony/icons/save20x20.png
Normal file
After Width: | Height: | Size: 227 B |
BIN
SrcPony/icons/save_eep20x20.png
Normal file
After Width: | Height: | Size: 242 B |
BIN
SrcPony/icons/save_flash20x20.png
Normal file
After Width: | Height: | Size: 239 B |
BIN
SrcPony/icons/script20x20.png
Normal file
After Width: | Height: | Size: 205 B |
BIN
SrcPony/icons/sernum20x20.png
Normal file
After Width: | Height: | Size: 176 B |
BIN
SrcPony/icons/setup20x20.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
SrcPony/icons/wr_all20x20.png
Normal file
After Width: | Height: | Size: 225 B |
BIN
SrcPony/icons/wr_eep.png
Normal file
After Width: | Height: | Size: 247 B |
BIN
SrcPony/icons/wr_eep20x20.png
Normal file
After Width: | Height: | Size: 248 B |
BIN
SrcPony/icons/wr_flash20x20.png
Normal file
After Width: | Height: | Size: 250 B |
BIN
SrcPony/icons/write.png
Normal file
After Width: | Height: | Size: 269 B |
BIN
SrcPony/icons/write20.png
Normal file
After Width: | Height: | Size: 259 B |
BIN
SrcPony/icons/write20x20.png
Normal file
After Width: | Height: | Size: 259 B |
@ -2,12 +2,12 @@
|
||||
// //
|
||||
// PonyProg - Serial Device Programmer //
|
||||
// //
|
||||
// Copyright (C) 1997-2007 Claudio Lanconelli //
|
||||
// Copyright (C) 1997-2017 Claudio Lanconelli //
|
||||
// //
|
||||
// http://ponyprog.sourceforge.net //
|
||||
// //
|
||||
//-------------------------------------------------------------------------//
|
||||
// $Id$
|
||||
// $Id: e2app.h,v 1.12 2016/05/27 11:22:51 lancos Exp $
|
||||
//-------------------------------------------------------------------------//
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or //
|
||||
@ -27,42 +27,31 @@
|
||||
//-------------------------------------------------------------------------//
|
||||
//=========================================================================//
|
||||
|
||||
#ifndef _PROFILE_H
|
||||
#define _PROFILE_H
|
||||
#include <QApplication>
|
||||
#include <QTextCodec>
|
||||
#include <QIcon>
|
||||
#include <QString>
|
||||
#include <QDebug>
|
||||
|
||||
#define MAXFILENAME 512
|
||||
#define MAXLINENUM 1024
|
||||
#define MAXLINESIZE 512
|
||||
#include "e2cmdw.h"
|
||||
|
||||
class Profile
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
public: //---------------------------------------- public
|
||||
QApplication app(argc, argv);
|
||||
|
||||
Profile(char const *name = 0);
|
||||
virtual ~Profile();
|
||||
Q_INIT_RESOURCE(ponyprog);
|
||||
|
||||
char const *GetParameter(char const *id);
|
||||
int SetParameter(char const *id, char const *value = "");
|
||||
void SetFileName(char const *name);
|
||||
app.setApplicationName("PonyProg");
|
||||
app.setOrganizationName("PonyProg");
|
||||
app.setWindowIcon(QIcon(":/icons/ponyprog-small.png"));
|
||||
|
||||
protected: //--------------------------------------- protected
|
||||
// Identify locale and load translation if available
|
||||
// QString locale = QLocale::system().name();
|
||||
|
||||
char *StripSpace(char const *sp);
|
||||
int decnum2str(int value, char *str, int len);
|
||||
int decnum2str(unsigned long value, char *str, int len);
|
||||
int hexnum2str(int value, char *str, int len);
|
||||
int hexnum2str(unsigned long value, char *str, int len);
|
||||
e2CmdWindow mainWin;
|
||||
|
||||
private: //--------------------------------------- private
|
||||
mainWin.show();
|
||||
|
||||
void FlushVet(int force = 0);
|
||||
int ReadVet();
|
||||
int WriteVet();
|
||||
|
||||
char filename[MAXFILENAME]; //name of .INI file
|
||||
char *profilevet[MAXLINENUM]; //elenco di parametri (in pratica linee del file)
|
||||
char linebuffer[MAXLINESIZE+1]; //buffer temporaneo di linea
|
||||
char strbuf[MAXLINESIZE];
|
||||
int cached; //indica se il file e` gia` in memoria
|
||||
return app.exec();
|
||||
};
|
||||
#endif
|
59
SrcPony/ponyprog.qrc
Normal file
@ -0,0 +1,59 @@
|
||||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource prefix="/" >
|
||||
<file>icons/about.png</file>
|
||||
<file>icons/delete.png</file>
|
||||
<file>icons/help20x20.png</file>
|
||||
<file>icons/lock20x20.png</file>
|
||||
<file>icons/new.png</file>
|
||||
<file>icons/open_eep20x20.png</file>
|
||||
<file>icons/print.png</file>
|
||||
<file>icons/rd_eep.png</file>
|
||||
<file>icons/read.png</file>
|
||||
<file>icons/save20x20.png</file>
|
||||
<file>icons/icon1.png</file>
|
||||
<file>icons/ponyprog-small.png</file>
|
||||
<file>icons/ponyprog.png</file>
|
||||
<file>icons/save.png</file>
|
||||
<file>icons/wr_eep.png</file>
|
||||
<file>icons/write.png</file>
|
||||
<file>icons/chip20x20.png</file>
|
||||
<file>icons/edit20x20.png</file>
|
||||
<file>icons/help20.png</file>
|
||||
<file>icons/lock20.png</file>
|
||||
<file>icons/open_flash20x20.png</file>
|
||||
<file>icons/program20x20.png</file>
|
||||
<file>icons/rd_flash20x20.png</file>
|
||||
<file>icons/reload20x20.png</file>
|
||||
<file>icons/save20.png</file>
|
||||
<file>icons/script20x20.png</file>
|
||||
<file>icons/wr_flash20x20.png</file>
|
||||
<file>icons/copy.png</file>
|
||||
<file>icons/erase20x20.png</file>
|
||||
<file>icons/help2.png</file>
|
||||
<file>icons/lock.png</file>
|
||||
<file>icons/open20x20.png</file>
|
||||
<file>icons/open.png</file>
|
||||
<file>icons/print20x20.png</file>
|
||||
<file>icons/rd_all20x20.png</file>
|
||||
<file>icons/read20x20.png</file>
|
||||
<file>icons/reload20.png</file>
|
||||
<file>icons/save_eep20x20.png</file>
|
||||
<file>icons/sernum20x20.png</file>
|
||||
<file>icons/wr_all20x20.png</file>
|
||||
<file>icons/write20x20.png</file>
|
||||
<file>icons/cut.png</file>
|
||||
<file>icons/find.png</file>
|
||||
<file>icons/help.png</file>
|
||||
<file>icons/new20x20.png</file>
|
||||
<file>icons/open20.png</file>
|
||||
<file>icons/paste.png</file>
|
||||
<file>icons/print20.png</file>
|
||||
<file>icons/rd_eep20x20.png</file>
|
||||
<file>icons/read20.png</file>
|
||||
<file>icons/reload.png</file>
|
||||
<file>icons/save_flash20x20.png</file>
|
||||
<file>icons/setup20x20.png</file>
|
||||
<file>icons/wr_eep20x20.png</file>
|
||||
<file>icons/write20.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
58
SrcPony/ponyprog.qrc.depends
Normal file
@ -0,0 +1,58 @@
|
||||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource prefix="/" >
|
||||
<file>icons/about.png</file>
|
||||
<file>icons/delete.png</file>
|
||||
<file>icons/help20x20.png</file>
|
||||
<file>icons/lock20x20.png</file>
|
||||
<file>icons/new.png</file>
|
||||
<file>icons/open_eep20x20.png</file>
|
||||
<file>icons/print.png</file>
|
||||
<file>icons/rd_eep.png</file>
|
||||
<file>icons/read.png</file>
|
||||
<file>icons/save20x20.png</file>
|
||||
<file>icons/icon1.png</file>
|
||||
<file>icons/ponyprog-small.png</file>
|
||||
<file>icons/save.png</file>
|
||||
<file>icons/wr_eep.png</file>
|
||||
<file>icons/write.png</file>
|
||||
<file>icons/chip20x20.png</file>
|
||||
<file>icons/edit20x20.png</file>
|
||||
<file>icons/help20.png</file>
|
||||
<file>icons/lock20.png</file>
|
||||
<file>icons/open_flash20x20.png</file>
|
||||
<file>icons/program20x20.png</file>
|
||||
<file>icons/rd_flash20x20.png</file>
|
||||
<file>icons/reload20x20.png</file>
|
||||
<file>icons/save20.png</file>
|
||||
<file>icons/script20x20.png</file>
|
||||
<file>icons/wr_flash20x20.png</file>
|
||||
<file>icons/copy.png</file>
|
||||
<file>icons/erase20x20.png</file>
|
||||
<file>icons/help2.png</file>
|
||||
<file>icons/lock.png</file>
|
||||
<file>icons/open20x20.png</file>
|
||||
<file>icons/open.png</file>
|
||||
<file>icons/print20x20.png</file>
|
||||
<file>icons/rd_all20x20.png</file>
|
||||
<file>icons/read20x20.png</file>
|
||||
<file>icons/reload20.png</file>
|
||||
<file>icons/save_eep20x20.png</file>
|
||||
<file>icons/sernum20x20.png</file>
|
||||
<file>icons/wr_all20x20.png</file>
|
||||
<file>icons/write20x20.png</file>
|
||||
<file>icons/cut.png</file>
|
||||
<file>icons/find.png</file>
|
||||
<file>icons/help.png</file>
|
||||
<file>icons/new20x20.png</file>
|
||||
<file>icons/open20.png</file>
|
||||
<file>icons/paste.png</file>
|
||||
<file>icons/print20.png</file>
|
||||
<file>icons/rd_eep20x20.png</file>
|
||||
<file>icons/read20.png</file>
|
||||
<file>icons/reload.png</file>
|
||||
<file>icons/save_flash20x20.png</file>
|
||||
<file>icons/setup20x20.png</file>
|
||||
<file>icons/wr_eep20x20.png</file>
|
||||
<file>icons/write20.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
@ -7,7 +7,7 @@
|
||||
// http://ponyprog.sourceforge.net //
|
||||
// //
|
||||
//-------------------------------------------------------------------------//
|
||||
// $Id$
|
||||
// $Id: cmdenum.h,v 1.11 2013/11/05 13:23:01 lancos Exp $
|
||||
//-------------------------------------------------------------------------//
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or //
|
||||
@ -27,20 +27,21 @@
|
||||
//-------------------------------------------------------------------------//
|
||||
//=========================================================================//
|
||||
|
||||
#ifndef _CMDENUM_H
|
||||
#define _CMDENUM_H
|
||||
#ifndef _CMDENUM_H
|
||||
#define _CMDENUM_H
|
||||
|
||||
//@V@:BeginIDs
|
||||
enum {
|
||||
enum
|
||||
{
|
||||
idAskToSave = 100, // Dummy Command
|
||||
idCloseAllDialog,
|
||||
idEnableToolBar,
|
||||
|
||||
m_Options, // Options menu
|
||||
m_Options, // Options menu
|
||||
m_Log,
|
||||
m_Setup, // Setup menu
|
||||
m_Setup, // Setup menu
|
||||
m_InterfSetup,
|
||||
m_Calibration, // Calibration menu
|
||||
m_Calibration, // Calibration menu
|
||||
m_Device,
|
||||
m_Command,
|
||||
m_Read,
|
||||
@ -49,8 +50,8 @@ enum {
|
||||
m_Info,
|
||||
m_Erase,
|
||||
m_Reset,
|
||||
m_Help, // Help menu
|
||||
m_About, // About
|
||||
m_Help, // Help menu
|
||||
m_About, // About
|
||||
m_HIndex,
|
||||
m_Note,
|
||||
m_EditBuf,
|
||||
@ -153,7 +154,7 @@ enum {
|
||||
m_9376_8,
|
||||
m_9386_8,
|
||||
|
||||
// m_at90sXXXX,
|
||||
// m_at90sXXXX,
|
||||
m_at90s1200,
|
||||
m_at90s2313,
|
||||
m_at90s4414,
|
||||
@ -179,14 +180,14 @@ enum {
|
||||
m_at90s4434,
|
||||
m_at90s8534,
|
||||
m_at90s8535,
|
||||
// m_attiny10,
|
||||
// m_attiny11,
|
||||
// m_attiny10,
|
||||
// m_attiny11,
|
||||
m_attiny12,
|
||||
m_attiny13,
|
||||
m_attiny15,
|
||||
m_attiny22,
|
||||
m_attiny26,
|
||||
// m_attiny28,
|
||||
// m_attiny28,
|
||||
m_attiny2313,
|
||||
m_attiny25, m_attiny45, m_attiny85,
|
||||
m_attiny261, m_attiny461, m_attiny861,
|
||||
@ -255,7 +256,7 @@ enum {
|
||||
m_s2430,
|
||||
m_x2444,
|
||||
m_x2445,
|
||||
|
||||
#if 0
|
||||
btnHelp,
|
||||
|
||||
frmToolBar,
|
||||
@ -263,7 +264,7 @@ enum {
|
||||
frmToolBar3,
|
||||
frmToolBar4,
|
||||
|
||||
icbRead, // Tool Bar Read
|
||||
icbRead, // Tool Bar Read
|
||||
icbReadEep,
|
||||
icbReadFlash,
|
||||
icbWrite,
|
||||
@ -283,7 +284,7 @@ enum {
|
||||
icbReload,
|
||||
icbPrint,
|
||||
icbEdit,
|
||||
icbHelp, // Tool Bar Help
|
||||
icbHelp, // Tool Bar Help
|
||||
|
||||
icbNew,
|
||||
icbScript,
|
||||
@ -294,17 +295,17 @@ enum {
|
||||
icoChip,
|
||||
|
||||
lblEEPType,
|
||||
cbxEEPType, // EEPROM type
|
||||
cbxEEPType, // EEPROM type
|
||||
lblEEPSubType,
|
||||
cbxEEPSubType,
|
||||
btnChange,
|
||||
lblStringID,
|
||||
txtStringID, // Identificativo della EEPROM
|
||||
txtStringID, // Identificativo della EEPROM
|
||||
lblComment,
|
||||
txtComment, // Commento
|
||||
lblTestStat, // Status Bar test
|
||||
lblCurTime, // Date/Time field
|
||||
lblEEPInfo, // EEPROM Info
|
||||
txtComment, // Commento
|
||||
lblTestStat, // Status Bar test
|
||||
lblCurTime, // Date/Time field
|
||||
lblEEPInfo, // EEPROM Info
|
||||
lblLegend,
|
||||
|
||||
//About Modal dialog
|
||||
@ -365,8 +366,9 @@ enum {
|
||||
txiEditText,
|
||||
|
||||
pbrProgress,
|
||||
#endif
|
||||
|
||||
blkLast // Last item
|
||||
blkLast // Last item
|
||||
};
|
||||
//@V@:EndIDs
|
||||
|
@ -7,7 +7,7 @@
|
||||
// http://ponyprog.sourceforge.net //
|
||||
// //
|
||||
//-------------------------------------------------------------------------//
|
||||
// $Id$
|
||||
// $Id: e2cnv.cpp,v 1.2 2007/04/20 10:58:23 lancos Exp $
|
||||
//-------------------------------------------------------------------------//
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or //
|
||||
@ -65,9 +65,13 @@ void e2TextCanvasPane::HScroll(int step)
|
||||
void e2TextCanvasPane::VScroll(int step)
|
||||
{
|
||||
if (step > 0)
|
||||
{
|
||||
cmdWin->NextLine();
|
||||
}
|
||||
else
|
||||
{
|
||||
cmdWin->PrevLine();
|
||||
}
|
||||
|
||||
vTextCanvasPane::VScroll(step);
|
||||
}
|
||||
@ -85,27 +89,28 @@ void e2TextCanvasPane::TextMouseDown(int row, int col, int button)
|
||||
{
|
||||
cmdWin->CharEdit(row, col);
|
||||
}
|
||||
vTextCanvasPane::TextMouseDown(row,col,button);
|
||||
|
||||
vTextCanvasPane::TextMouseDown(row, col, button);
|
||||
}
|
||||
|
||||
//======================>>> e2TextCanvasPane::TextMouseUp <<<==================
|
||||
void e2TextCanvasPane::TextMouseUp(int row, int col, int button)
|
||||
{
|
||||
vTextCanvasPane::TextMouseUp(row,col,button);
|
||||
vTextCanvasPane::TextMouseUp(row, col, button);
|
||||
}
|
||||
|
||||
//======================>>> e2TextCanvasPane::TextMouseMove <<<=================
|
||||
void e2TextCanvasPane::TextMouseMove(int row, int col, int button)
|
||||
{
|
||||
vTextCanvasPane::TextMouseMove(row,col,button);
|
||||
vTextCanvasPane::TextMouseMove(row, col, button);
|
||||
}
|
||||
|
||||
//=========================>>> e2TextCanvasPane::Redraw <<<======================
|
||||
void e2TextCanvasPane::Redraw(int x, int y, int w, int h)
|
||||
{
|
||||
cmdWin->Draw(); //???
|
||||
cmdWin->Draw(); //???
|
||||
|
||||
vTextCanvasPane::Redraw(x,y,w,h);
|
||||
vTextCanvasPane::Redraw(x, y, w, h);
|
||||
}
|
||||
|
||||
//======================>>> e2TextCanvasPane::ResizeText <<<======================
|
||||
@ -113,6 +118,6 @@ void e2TextCanvasPane::ResizeText(const int rows, const int cols)
|
||||
{
|
||||
cmdWin->Draw(rows, cols);
|
||||
|
||||
vTextCanvasPane::ResizeText(rows,cols);
|
||||
vTextCanvasPane::ResizeText(rows, cols);
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
// http://ponyprog.sourceforge.net //
|
||||
// //
|
||||
//-------------------------------------------------------------------------//
|
||||
// $Id$
|
||||
// $Id: e2cnv.h,v 1.2 2007/04/20 10:58:23 lancos Exp $
|
||||
//-------------------------------------------------------------------------//
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or //
|
||||
@ -30,13 +30,13 @@
|
||||
#ifndef e2TCNV_H
|
||||
#define e2TCNV_H
|
||||
|
||||
#include <v/vtextcnv.h>
|
||||
// #include <v/vtextcnv.h>
|
||||
|
||||
class e2CmdWindow;
|
||||
|
||||
class e2TextCanvasPane : public vTextCanvasPane
|
||||
{
|
||||
public: //---------------------------------------- public
|
||||
public: //---------------------------------------- public
|
||||
e2TextCanvasPane(e2CmdWindow* win);
|
||||
virtual ~e2TextCanvasPane();
|
||||
|
||||
@ -55,8 +55,8 @@ class e2TextCanvasPane : public vTextCanvasPane
|
||||
virtual void TextMouseUp(int row, int col, int button);
|
||||
virtual void TextMouseMove(int row, int col, int button);
|
||||
|
||||
protected: //--------------------------------------- protected
|
||||
private: //--------------------------------------- private
|
||||
protected: //--------------------------------------- protected
|
||||
private: //--------------------------------------- private
|
||||
e2CmdWindow* cmdWin;
|
||||
};
|
||||
#endif
|
@ -7,7 +7,7 @@
|
||||
// http://ponyprog.sourceforge.net //
|
||||
// //
|
||||
//-------------------------------------------------------------------------//
|
||||
// $Id$
|
||||
// $Id: modaldlg_utilities.cpp,v 1.1 2008/01/06 17:36:22 lancos Exp $
|
||||
//-------------------------------------------------------------------------//
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or //
|
||||
@ -27,8 +27,8 @@
|
||||
//-------------------------------------------------------------------------//
|
||||
//=========================================================================//
|
||||
|
||||
#include <v/vnotice.h>
|
||||
#include "modaldlg_utilities.h"
|
||||
// #include <v/vnotice.h>
|
||||
// #include "modaldlg_utilities.h"
|
||||
|
||||
//========================>>> SetCommandObject <<<==============================
|
||||
int SetCommandObject(const int id, const int val, CommandObject* CmdList)
|
||||
@ -42,7 +42,7 @@ int SetCommandObject(const int id, const int val, CommandObject* CmdList)
|
||||
}
|
||||
}
|
||||
|
||||
SysDebug1(BadVals,"SetCommandObject(id:%d...) - No match in list\n",id)
|
||||
SysDebug1(BadVals, "SetCommandObject(id:%d...) - No match in list\n", id)
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -51,7 +51,8 @@ int SetCommandObject(const int id, const int val, CommandObject* CmdList)
|
||||
int SetCBelow(const int id, const ItemVal val, CommandObject* CmdList)
|
||||
{
|
||||
int rval = 0;
|
||||
#ifdef _WINDOWS
|
||||
#ifdef _WINDOWS
|
||||
|
||||
for (CommandObject* cur = CmdList ; cur->cmdType != C_EndOfList ; ++cur)
|
||||
{
|
||||
if (cur->cmdId == id)
|
||||
@ -65,8 +66,9 @@ int SetCBelow(const int id, const ItemVal val, CommandObject* CmdList)
|
||||
|
||||
if (rval == 0)
|
||||
{
|
||||
SysDebug1(BadVals,"ClearCBelow(id:%d...) - No match in list\n",id)
|
||||
SysDebug1(BadVals, "ClearCBelow(id:%d...) - No match in list\n", id)
|
||||
}
|
||||
|
||||
#endif
|
||||
return rval;
|
||||
}
|
||||
@ -81,9 +83,13 @@ int SetCommandHidden(const int id, const bool val, CommandObject* CmdList)
|
||||
if (cur->cmdId == id)
|
||||
{
|
||||
if (val)
|
||||
{
|
||||
cur->attrs |= CA_Hidden;
|
||||
}
|
||||
else
|
||||
{
|
||||
cur->attrs &= ~CA_Hidden;
|
||||
}
|
||||
|
||||
|
||||
rval = 1;
|
||||
@ -93,7 +99,7 @@ int SetCommandHidden(const int id, const bool val, CommandObject* CmdList)
|
||||
|
||||
if (rval == 0)
|
||||
{
|
||||
SysDebug1(BadVals,"SetCommandHidden(id:%d...) - No match in list\n",id)
|
||||
SysDebug1(BadVals, "SetCommandHidden(id:%d...) - No match in list\n", id)
|
||||
}
|
||||
|
||||
return rval;
|
||||
@ -109,12 +115,16 @@ int SetCommandArrayHidden(const int id, const int n, const bool val, CommandObje
|
||||
{
|
||||
for (CommandObject* cur = CmdList ; cur->cmdType != C_EndOfList ; ++cur)
|
||||
{
|
||||
if (cur->cmdId == id+k)
|
||||
if (cur->cmdId == id + k)
|
||||
{
|
||||
if (val)
|
||||
{
|
||||
cur->attrs |= CA_Hidden;
|
||||
}
|
||||
else
|
||||
{
|
||||
cur->attrs &= ~CA_Hidden;
|
||||
}
|
||||
|
||||
rval = 1;
|
||||
break;
|
||||
@ -123,7 +133,7 @@ int SetCommandArrayHidden(const int id, const int n, const bool val, CommandObje
|
||||
|
||||
if (rval == 0)
|
||||
{
|
||||
SysDebug1(BadVals,"SetCommandArrayHidden(id:%d...) - No match in list\n",id+k)
|
||||
SysDebug1(BadVals, "SetCommandArrayHidden(id:%d...) - No match in list\n", id + k)
|
||||
}
|
||||
}
|
||||
|
||||
@ -142,7 +152,7 @@ int SetCommandSensitive(const int id, const int val, CommandObject* CmdList)
|
||||
}
|
||||
}
|
||||
|
||||
SysDebug1(BadVals,"SetCommandObject(id:%d...) - No match in list\n",id)
|
||||
SysDebug1(BadVals, "SetCommandObject(id:%d...) - No match in list\n", id)
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -159,7 +169,7 @@ int SetCommandLabel(const int id, char *str, CommandObject* CmdList)
|
||||
}
|
||||
}
|
||||
|
||||
SysDebug1(BadVals,"SetCommandObject(id:%d...) - No match in list\n",id)
|
||||
SysDebug1(BadVals, "SetCommandObject(id:%d...) - No match in list\n", id)
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -175,7 +185,7 @@ int GetCommandObject(const int id, CommandObject* CmdList)
|
||||
}
|
||||
}
|
||||
|
||||
SysDebug1(BadVals,"GetCommandObject(id:%d...) - No match in list\n",id)
|
||||
SysDebug1(BadVals, "GetCommandObject(id:%d...) - No match in list\n", id)
|
||||
|
||||
return 0;
|
||||
}
|
@ -7,7 +7,7 @@
|
||||
// http://ponyprog.sourceforge.net //
|
||||
// //
|
||||
//-------------------------------------------------------------------------//
|
||||
// $Id$
|
||||
// $Id: profile.cpp,v 1.6 2009/11/15 13:33:22 lancos Exp $
|
||||
//-------------------------------------------------------------------------//
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or //
|
||||
@ -28,30 +28,32 @@
|
||||
//=========================================================================//
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <QString>
|
||||
#include <ctype.h>
|
||||
#include "profile.h"
|
||||
#include "errcode.h"
|
||||
|
||||
#ifndef _LINUX_
|
||||
# ifdef __BORLANDC__
|
||||
# define strncasecmp strnicmp
|
||||
# define strcasecmp stricmp
|
||||
# else // _MICROSOFT_ VC++
|
||||
# define strncasecmp _strnicmp
|
||||
# define strcasecmp _stricmp
|
||||
# define snprintf _snprintf
|
||||
# endif
|
||||
#endif
|
||||
// #ifndef _LINUX_
|
||||
// # ifdef __BORLANDC__
|
||||
// # define strncasecmp strnicmp
|
||||
// # define strcasecmp stricmp
|
||||
// # else // _MICROSOFT_ VC++
|
||||
// # define strncasecmp _strnicmp
|
||||
// # define strcasecmp _stricmp
|
||||
// # define snprintf _snprintf
|
||||
// # endif
|
||||
// #endif
|
||||
|
||||
|
||||
//=====>>> Costruttore <<<======
|
||||
Profile::Profile(char const *name)
|
||||
Profile::Profile(const QString &name)
|
||||
{
|
||||
cached = 0;
|
||||
SetFileName(name);
|
||||
FlushVet(1);
|
||||
}
|
||||
|
||||
|
||||
//--- Distruttore
|
||||
Profile::~Profile()
|
||||
{
|
||||
@ -59,65 +61,99 @@ Profile::~Profile()
|
||||
}
|
||||
|
||||
|
||||
char *Profile::StripSpace(char const *sp)
|
||||
QString Profile::StripSpace(const QString &sp)
|
||||
{
|
||||
//toglie gli spazi iniziali
|
||||
Qstring s = sp;
|
||||
s.remove(QChar(' '));
|
||||
#if 0
|
||||
sp.re
|
||||
|
||||
while( *sp && isspace(*sp) )
|
||||
{
|
||||
sp++;
|
||||
strncpy(strbuf, sp, MAXLINESIZE-1);
|
||||
strbuf[MAXLINESIZE-1] = '\0';
|
||||
}
|
||||
|
||||
strncpy(strbuf, sp, MAXLINESIZE - 1);
|
||||
strbuf[MAXLINESIZE - 1] = '\0';
|
||||
//si posiziona in fondo
|
||||
char *p = strbuf;
|
||||
|
||||
while( *p )
|
||||
{
|
||||
p++;
|
||||
}
|
||||
|
||||
//toglie
|
||||
while( isspace(*--p) )
|
||||
{
|
||||
*p = '\0';
|
||||
return strbuf;
|
||||
}
|
||||
|
||||
#endif
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
//---
|
||||
void Profile::SetFileName(char const *name)
|
||||
void Profile::SetFileName(const QString &name)
|
||||
{
|
||||
if (name != 0)
|
||||
if (name.length())
|
||||
{
|
||||
strcpy(filename, name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Profile::FlushVet(int force)
|
||||
{
|
||||
int k;
|
||||
// int k;
|
||||
|
||||
if (force)
|
||||
for (k = 0; k < MAXLINENUM; k++)
|
||||
profilevet[k] = 0;
|
||||
else
|
||||
for (k = 0; k < MAXLINENUM && profilevet[k] != 0; k++)
|
||||
{
|
||||
delete profilevet[k];
|
||||
profilevet[k] = 0;
|
||||
}
|
||||
profilevet.clear();
|
||||
/*
|
||||
if (force)
|
||||
for (k = 0; k < MAXLINENUM; k++)
|
||||
{
|
||||
profilevet[k] = 0;
|
||||
}
|
||||
else
|
||||
for (k = 0; k < MAXLINENUM && profilevet[k] != 0; k++)
|
||||
{
|
||||
delete profilevet[k];
|
||||
profilevet[k] = 0;
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
int Profile::WriteVet()
|
||||
{
|
||||
FILE *fh = fopen(filename, "w");
|
||||
|
||||
if (fh == 0)
|
||||
{
|
||||
return CREATEERROR;
|
||||
}
|
||||
|
||||
//Lettura file con allocazione linea parametro e aggiunta al vettore
|
||||
int rval = 0;
|
||||
int k;
|
||||
for (k = 0; k < MAXLINENUM && profilevet[k] != 0; k++)
|
||||
|
||||
for (k = 0; k < profilevet.count(); k++)
|
||||
{
|
||||
char *sp = profilevet[k];
|
||||
while (isspace(*sp)) //elimina eventuali spazi iniziali
|
||||
sp++;
|
||||
if (strlen(sp)) //scarta le linee vuote
|
||||
QString sp = profilevet.at(k);
|
||||
|
||||
sp.remove(QChar(' '));
|
||||
// while (isspace(*sp)) //elimina eventuali spazi iniziali
|
||||
// {
|
||||
// sp++;
|
||||
// }
|
||||
|
||||
if (sp.length()) //scarta le linee vuote
|
||||
{
|
||||
strcpy(linebuffer, sp);
|
||||
strcat(linebuffer, "\n"); //appende il new-line
|
||||
if ( fputs(linebuffer, fh) == EOF )
|
||||
linebuffer = sp;
|
||||
linebuffer += "\n"; //appende il new-line
|
||||
|
||||
if ( fputs(linebuffer.toLatin1(), fh) == EOF )
|
||||
{
|
||||
rval = WRITEERROR;
|
||||
break;
|
||||
@ -125,84 +161,116 @@ int Profile::WriteVet()
|
||||
}
|
||||
}
|
||||
|
||||
cached = 1; //ripensare attentamente se e` giusto forzarla qui
|
||||
cached = 1; //ripensare attentamente se e` giusto forzarla qui
|
||||
fclose(fh);
|
||||
return rval;
|
||||
}
|
||||
|
||||
|
||||
int Profile::ReadVet()
|
||||
{
|
||||
//Se il file e` gia` stato letto in memoria con successo allora non fare niente
|
||||
if (cached)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//Svuotamento vettore parametri
|
||||
FlushVet();
|
||||
|
||||
//Apertura file .INI
|
||||
FILE *fh = fopen(filename, "r");
|
||||
FILE *fh = fopen(filename.toLatin1(), "r");
|
||||
|
||||
if (fh == 0)
|
||||
return 0; //non costituisce errore, infatti il file puo` essere
|
||||
// creato con una WriteVet(). Pero` attenti se la
|
||||
// politica dovesse diventare write-back, la variabile
|
||||
// cached andrebbe aggiornata!
|
||||
{
|
||||
return 0; //non costituisce errore, infatti il file puo` essere
|
||||
}
|
||||
|
||||
// creato con una WriteVet(). Pero` attenti se la
|
||||
// politica dovesse diventare write-back, la variabile
|
||||
// cached andrebbe aggiornata!
|
||||
|
||||
//Lettura file con allocazione linea parametro e aggiunta al vettore
|
||||
int rval = OK;
|
||||
int k;
|
||||
|
||||
for (k = 0; k < MAXLINENUM && fgets(linebuffer, MAXLINESIZE, fh) != 0; k++)
|
||||
{
|
||||
char *sp = strchr(linebuffer, '\n');
|
||||
|
||||
if (sp != 0)
|
||||
*sp = '\0'; //elimina il new-line finale
|
||||
sp = new char[strlen(linebuffer)+1];
|
||||
{
|
||||
*sp = '\0'; //elimina il new-line finale
|
||||
}
|
||||
|
||||
sp = new char[strlen(linebuffer) + 1];
|
||||
|
||||
if (sp == 0)
|
||||
{
|
||||
rval = OUTOFMEMORY; //out of memory, sigh!!!
|
||||
rval = OUTOFMEMORY; //out of memory, sigh!!!
|
||||
break;
|
||||
}
|
||||
|
||||
profilevet[k] = sp;
|
||||
|
||||
strcpy(sp, linebuffer);
|
||||
}
|
||||
|
||||
fclose(fh);
|
||||
|
||||
if (!rval)
|
||||
{
|
||||
cached = 1;
|
||||
}
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
||||
char const *Profile::GetParameter(char const *id)
|
||||
|
||||
QString Profile::GetParameter(const QString &id)
|
||||
{
|
||||
//Controllo parametri
|
||||
if ( id == 0 || strlen(id) == 0 )
|
||||
if ( id == 0 || id.length() == 0 )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//Legge i parametri dal file
|
||||
if ( ReadVet() )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
//Ricerca (lineare) del parametro
|
||||
int n = strlen(id);
|
||||
int n = id.length();
|
||||
int j;
|
||||
|
||||
for (j = 0; j < MAXLINENUM && profilevet[j] != 0; j++)
|
||||
{
|
||||
char const *sp = profilevet[j];
|
||||
while (isspace(*sp)) //elimina eventuali spazi iniziali
|
||||
sp++;
|
||||
if (strncasecmp(id, sp, n) == 0) //trovata!!
|
||||
QString sp = profilevet[j];
|
||||
|
||||
while (isspace(*sp)) //elimina eventuali spazi iniziali
|
||||
{
|
||||
sp += n; //si posiziona in fondo all'id per cercare '='
|
||||
while (isspace(*sp)) //tralascia gli spazi
|
||||
sp++;
|
||||
}
|
||||
|
||||
if (strncasecmp(id, sp, n) == 0) //trovata!!
|
||||
{
|
||||
sp += n; //si posiziona in fondo all'id per cercare '='
|
||||
|
||||
while (isspace(*sp)) //tralascia gli spazi
|
||||
{
|
||||
sp++;
|
||||
}
|
||||
|
||||
if (*sp == '=')
|
||||
{
|
||||
//Solo ora siamo sicuri di avere trovato esattamente cio` che
|
||||
// cercavamo (vedi caso ricerca "maia" e trovato "maiale")
|
||||
while (isspace(*++sp))
|
||||
;
|
||||
return sp; //restituisce il valore trovato
|
||||
|
||||
return sp; //restituisce il valore trovato
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -210,45 +278,62 @@ char const *Profile::GetParameter(char const *id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Profile::SetParameter(char const *id, char const *value)
|
||||
|
||||
int Profile::SetParameter(const QString &id, const QString &value)
|
||||
{
|
||||
if ( id == 0 || strlen(id) == 0 || value == 0)
|
||||
if ( id == 0 || id.length() == 0 || value == 0)
|
||||
{
|
||||
return BADPARAM;
|
||||
}
|
||||
|
||||
//Leggiamo i parametri dal file
|
||||
int err = ReadVet();
|
||||
|
||||
if (err)
|
||||
{
|
||||
return err;
|
||||
}
|
||||
|
||||
//Ricerchiamo il parametro da variare, se non c'e` l'aggiungiamo
|
||||
int n = strlen(id);
|
||||
int n = id.length();
|
||||
int found = 0;
|
||||
int j;
|
||||
|
||||
for (j = 0; j < MAXLINENUM && profilevet[j] != 0; j++)
|
||||
{
|
||||
char const *sp = profilevet[j];
|
||||
while (isspace(*sp)) //elimina eventuali spazi iniziali
|
||||
sp++;
|
||||
if (strncasecmp(id, sp, n) == 0) //trovata!!
|
||||
QString sp = profilevet[j];
|
||||
|
||||
while (isspace(*sp)) //elimina eventuali spazi iniziali
|
||||
{
|
||||
sp += n; //si posiziona in fondo all'id per cercare '='
|
||||
while (isspace(*sp)) //tralascia gli spazi
|
||||
sp++;
|
||||
}
|
||||
|
||||
if (strncasecmp(id, sp, n) == 0) //trovata!!
|
||||
{
|
||||
sp += n; //si posiziona in fondo all'id per cercare '='
|
||||
|
||||
while (isspace(*sp)) //tralascia gli spazi
|
||||
{
|
||||
sp++;
|
||||
}
|
||||
|
||||
if (*sp == '=')
|
||||
{
|
||||
//Solo ora siamo sicuri di avere trovato esattamente cio` che
|
||||
// cercavamo (vedi caso ricerca "maia" e trovato "maiale")
|
||||
found = 1;
|
||||
break; //usciamo dal ciclo for()
|
||||
break; //usciamo dal ciclo for()
|
||||
}
|
||||
}
|
||||
} //for()
|
||||
} //for()
|
||||
|
||||
//Nel caso non ci sia j sara` puntato sul primo elemento del vettore a 0
|
||||
if (!found)
|
||||
{
|
||||
if (j >= MAXLINENUM) //Raggiunto il numero max di parametri, sigh!
|
||||
if (j >= MAXLINENUM) //Raggiunto il numero max di parametri, sigh!
|
||||
{
|
||||
return BUFFEROVERFLOW;
|
||||
}
|
||||
}
|
||||
|
||||
//prepariamo la nuova stringa nel linebuffer
|
||||
@ -257,14 +342,21 @@ int Profile::SetParameter(char const *id, char const *value)
|
||||
strcat(linebuffer, value);
|
||||
|
||||
//allochiamo memoria e copiamo la nuova stringa
|
||||
char *sp = new char[strlen(linebuffer)+1];
|
||||
char *sp = new char[strlen(linebuffer) + 1];
|
||||
|
||||
if (sp == 0)
|
||||
return OUTOFMEMORY; //Out of memory, Sigh!!
|
||||
{
|
||||
return OUTOFMEMORY; //Out of memory, Sigh!!
|
||||
}
|
||||
|
||||
strcpy(sp, linebuffer);
|
||||
|
||||
//liberiamo la memoria della eventuale stringa corrente e aggiorniamo il parametro
|
||||
if (profilevet[j])
|
||||
{
|
||||
delete profilevet[j];
|
||||
}
|
||||
|
||||
profilevet[j] = sp;
|
||||
|
||||
//infine salviamo il tutto su file (politica write through)
|
||||
@ -273,46 +365,67 @@ int Profile::SetParameter(char const *id, char const *value)
|
||||
return OK;
|
||||
}
|
||||
|
||||
#if 0
|
||||
int Profile::decnum2str(int value, char *str, int len)
|
||||
{
|
||||
int ret = snprintf(str, len, "%d", value);
|
||||
str[len - 1] = '\0';
|
||||
|
||||
if (ret > 0 && ret < len)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
return BADPARAM;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int Profile::decnum2str(unsigned long value, char *str, int len)
|
||||
{
|
||||
int ret = snprintf(str, len, "%lu", value);
|
||||
str[len - 1] = '\0';
|
||||
|
||||
if (ret > 0 && ret < len)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
return BADPARAM;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int Profile::hexnum2str(int value, char *str, int len)
|
||||
{
|
||||
int ret = snprintf(str, len, "0x%02X", value);
|
||||
str[len - 1] = '\0';
|
||||
|
||||
if (ret > 0 && ret < len)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
return BADPARAM;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int Profile::hexnum2str(unsigned long value, char *str, int len)
|
||||
{
|
||||
int ret = snprintf(str, len, "0x%04lX", value);
|
||||
str[len - 1] = '\0';
|
||||
|
||||
if (ret > 0 && ret < len)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
else
|
||||
{
|
||||
return BADPARAM;
|
||||
}
|
||||
}
|
||||
#endif
|
71
SrcPony/removed/profile.h
Normal file
@ -0,0 +1,71 @@
|
||||
//=========================================================================//
|
||||
// //
|
||||
// PonyProg - Serial Device Programmer //
|
||||
// //
|
||||
// Copyright (C) 1997-2007 Claudio Lanconelli //
|
||||
// //
|
||||
// http://ponyprog.sourceforge.net //
|
||||
// //
|
||||
//-------------------------------------------------------------------------//
|
||||
// $Id: profile.h,v 1.6 2009/11/15 14:45:00 lancos Exp $
|
||||
//-------------------------------------------------------------------------//
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or //
|
||||
// modify it under the terms of the GNU General Public License //
|
||||
// as published by the Free Software Foundation; either version2 of //
|
||||
// the License, or (at your option) any later version. //
|
||||
// //
|
||||
// This program is distributed in the hope that it will be useful, //
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
|
||||
// General Public License for more details. //
|
||||
// //
|
||||
// You should have received a copy of the GNU General Public License //
|
||||
// along with this program (see COPYING); if not, write to the //
|
||||
// Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. //
|
||||
// //
|
||||
//-------------------------------------------------------------------------//
|
||||
//=========================================================================//
|
||||
|
||||
#ifndef _PROFILE_H
|
||||
#define _PROFILE_H
|
||||
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
|
||||
// #define MAXFILENAME 512
|
||||
// #define MAXLINENUM 1024
|
||||
// #define MAXLINESIZE 512
|
||||
|
||||
class Profile
|
||||
{
|
||||
public: //---------------------------------------- public
|
||||
|
||||
Profile(const QString &name = 0);
|
||||
virtual ~Profile();
|
||||
|
||||
QString GetParameter(const QString &id);
|
||||
int SetParameter(const QString &id, const QString &value = "");
|
||||
void SetFileName(const QString &name = "");
|
||||
|
||||
protected: //--------------------------------------- protected
|
||||
|
||||
QString StripSpace(const QString &sp);
|
||||
// int decnum2str(int value, char *str, int len);
|
||||
// int decnum2str(unsigned long value, char *str, int len);
|
||||
// int hexnum2str(int value, char *str, int len);
|
||||
// int hexnum2str(unsigned long value, char *str, int len);
|
||||
|
||||
private: //--------------------------------------- private
|
||||
|
||||
void FlushVet(int force = 0);
|
||||
int ReadVet();
|
||||
int WriteVet();
|
||||
|
||||
QString filename; //[MAXFILENAME]; //name of .INI file
|
||||
QVector<QString> profilevet; //[MAXLINENUM]; //elenco di parametri (in pratica linee del file)
|
||||
QString linebuffer; //[MAXLINESIZE + 1]; //buffer temporaneo di linea
|
||||
QString strbuf; //[MAXLINESIZE];
|
||||
int cached; //indica se il file e` gia` in memoria
|
||||
};
|
||||
#endif
|
@ -2,12 +2,12 @@
|
||||
// //
|
||||
// PonyProg - Serial Device Programmer //
|
||||
// //
|
||||
// Copyright (C) 1997-2007 Claudio Lanconelli //
|
||||
// Copyright (C) 1997-2017 Claudio Lanconelli //
|
||||
// //
|
||||
// http://ponyprog.sourceforge.net //
|
||||
// //
|
||||
//-------------------------------------------------------------------------//
|
||||
// $Id$
|
||||
// $Id: retrymdlg.cpp,v 1.3 2007/04/20 10:58:23 lancos Exp $
|
||||
//-------------------------------------------------------------------------//
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or //
|
||||
@ -27,40 +27,46 @@
|
||||
//-------------------------------------------------------------------------//
|
||||
//=========================================================================//
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "retrymdlg.h"
|
||||
#include <v/vnotice.h>
|
||||
|
||||
#include "cmdenum.h"
|
||||
#include <QDebug>
|
||||
|
||||
|
||||
#if 0
|
||||
//@V@:BeginDialogCmd DefaultCmds
|
||||
static DialogCmd DefaultCmds[] =
|
||||
{
|
||||
//#ifdef _LINUX_
|
||||
// {C_Label,lblMainMsg,0,"X",NoList,CA_MainMsg,isSens,NoFrame,0,0},
|
||||
//#else
|
||||
{C_Label,lblMainMsg,0," ",NoList,CA_None,isSens,NoFrame,0,0},
|
||||
//#endif
|
||||
//#ifdef _LINUX_
|
||||
// {C_Label,lblMainMsg,0,"X",NoList,CA_MainMsg,isSens,NoFrame,0,0},
|
||||
//#else
|
||||
{C_Label, lblMainMsg, 0, " ", NoList, CA_None, isSens, NoFrame, 0, 0},
|
||||
//#endif
|
||||
|
||||
{C_Button, M_Cancel, 0, STR_BTNABORT, NoList,CA_DefaultButton, isSens,NoFrame, 0, lblMainMsg},
|
||||
{C_Button, M_Cancel, 0, STR_BTNABORT, NoList, CA_DefaultButton, isSens, NoFrame, 0, lblMainMsg},
|
||||
{C_Button, M_OK, 0, STR_BTNRETRY, NoList, CA_None, isSens, NoFrame, M_Cancel, lblMainMsg},
|
||||
{C_Button, btnIgnore, 0, STR_BTNIGNORE, NoList, CA_None, isSens, NoFrame, M_OK, lblMainMsg},
|
||||
|
||||
{C_EndOfList,0,0,0,0,CA_None,0,0,0}
|
||||
{C_EndOfList, 0, 0, 0, 0, CA_None, 0, 0, 0}
|
||||
};
|
||||
//@V@:EndDialogCmd
|
||||
#endif
|
||||
|
||||
|
||||
//======================>>> retryModalDialog::retryModalDialog <<<==================
|
||||
retryModalDialog::retryModalDialog(vBaseWindow* bw, char* msg, char* title) :
|
||||
vModalDialog(bw, title)
|
||||
retryModalDialog::retryModalDialog(QWidget* bw, char* msg, char* title) :
|
||||
QDialog(bw)
|
||||
{
|
||||
UserDebug(Constructor,"retryModalDialog::retryModalDialog() constructor\n")
|
||||
setupUi(this);
|
||||
|
||||
DefaultCmds[0].title = new char[strlen(msg)+1];
|
||||
setWindowTitle(title);
|
||||
|
||||
qDebug() << "retryModalDialog::retryModalDialog()";
|
||||
|
||||
DefaultCmds[0].title = new char[strlen(msg) + 1];
|
||||
strcpy(DefaultCmds[0].title, msg);
|
||||
|
||||
AddDialogCmds(DefaultCmds); // add the predefined commands
|
||||
AddDialogCmds(DefaultCmds); // add the predefined commands
|
||||
}
|
||||
|
||||
//===================>>> retryModalDialog::~retryModalDialog <<<====================
|
||||
@ -68,32 +74,39 @@ retryModalDialog::~retryModalDialog()
|
||||
{
|
||||
delete DefaultCmds[0].title;
|
||||
|
||||
UserDebug(Destructor,"retryModalDialog::~retryModalDialog() destructor\n")
|
||||
qDebug() << "retryModalDialog::~retryModalDialog()";
|
||||
}
|
||||
|
||||
//====================>>> retryModalDialog::infoAction <<<====================
|
||||
int retryModalDialog::retryAction()
|
||||
{
|
||||
ItemVal ans,rval;
|
||||
ItemVal ans, rval;
|
||||
|
||||
ans = ShowModalDialog("", rval);
|
||||
|
||||
ans = ShowModalDialog("",rval);
|
||||
if (ans == M_Cancel)
|
||||
return 0; //Abort
|
||||
{
|
||||
return 0; //Abort
|
||||
}
|
||||
else if (ans == M_OK)
|
||||
{
|
||||
return 1; //Retry
|
||||
}
|
||||
else
|
||||
if (ans == M_OK)
|
||||
return 1; //Retry
|
||||
else
|
||||
return 2; //Ignore
|
||||
{
|
||||
return 2; //Ignore
|
||||
}
|
||||
}
|
||||
|
||||
//====================>>> retryModalDialog::DialogCommand <<<====================
|
||||
void retryModalDialog::DialogCommand(ItemVal id, ItemVal retval, CmdType ctype)
|
||||
{
|
||||
UserDebug2(CmdEvents,"retryModalDialog::DialogCommand(id:%d, val:%d)\n",id, retval)
|
||||
qDebug() << "retryModalDialog::DialogCommand(id:" << id << ", val:" << retval << ")";
|
||||
|
||||
if (id == btnIgnore)
|
||||
{
|
||||
CloseDialog();
|
||||
}
|
||||
vModalDialog::DialogCommand(id,retval,ctype);
|
||||
|
||||
vModalDialog::DialogCommand(id, retval, ctype);
|
||||
}
|
@ -2,12 +2,12 @@
|
||||
// //
|
||||
// PonyProg - Serial Device Programmer //
|
||||
// //
|
||||
// Copyright (C) 1997-2007 Claudio Lanconelli //
|
||||
// Copyright (C) 1997-2017 Claudio Lanconelli //
|
||||
// //
|
||||
// http://ponyprog.sourceforge.net //
|
||||
// //
|
||||
//-------------------------------------------------------------------------//
|
||||
// $Id$
|
||||
// $Id: retrymdlg.h,v 1.3 2007/04/20 10:58:23 lancos Exp $
|
||||
//-------------------------------------------------------------------------//
|
||||
// //
|
||||
// This program is free software; you can redistribute it and/or //
|
||||
@ -31,21 +31,23 @@
|
||||
#define retryMDLG_H
|
||||
|
||||
#include "types.h"
|
||||
#include <v/vmodald.h>
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
|
||||
#include "string_table.h"
|
||||
|
||||
class retryModalDialog : public vModalDialog
|
||||
class retryModalDialog : public QDialog
|
||||
{
|
||||
public: //---------------------------------------- public
|
||||
retryModalDialog(vBaseWindow* bw, char* msg, char* title = STR_MSGALERT);
|
||||
virtual ~retryModalDialog(); // Destructor
|
||||
virtual void DialogCommand(ItemVal,ItemVal,CmdType); // action selected
|
||||
public: //---------------------------------------- public
|
||||
retryModalDialog(QWidget* bw, char* msg, char* title = STR_MSGALERT);
|
||||
virtual ~retryModalDialog(); // Destructor
|
||||
virtual void DialogCommand(ItemVal, ItemVal, CmdType); // action selected
|
||||
virtual int retryAction();
|
||||
|
||||
protected: //--------------------------------------- protected
|
||||
protected: //--------------------------------------- protected
|
||||
|
||||
private: //--------------------------------------- private
|
||||
private: //--------------------------------------- private
|
||||
|
||||
};
|
||||
|
9
SrcPony/version.h
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef PONYPROGVERSION_H
|
||||
#define PONYPROGVERSION_H
|
||||
|
||||
#define PONYPROGVERSION "3.0.0"
|
||||
#define PROGRAM_DATE "17 apr 2017"
|
||||
|
||||
#define USE_QT_VERSION 4
|
||||
|
||||
#endif
|
9
SrcPony/version.h.in
Normal file
@ -0,0 +1,9 @@
|
||||
#ifndef PONYPROGVERSION_H
|
||||
#define PONYPROGVERSION_H
|
||||
|
||||
#define PONYPROGVERSION "@PONYPROG_VERSION@"
|
||||
#define PROGRAM_DATE "@BUILD_DATE@"
|
||||
|
||||
#define USE_QT_VERSION @USE_QT_VERSION@
|
||||
|
||||
#endif
|