From f508189682b6fba62e08feeb1596f682bad5fff9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 24 Feb 2010 18:42:24 +0000 Subject: Added KDE3 version of PikLab git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1095639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/data/Makefile.am | 17 ++ src/data/app_data/Makefile.am | 9 + src/data/app_data/hexeditorpartui.rc | 21 ++ src/data/app_data/hi16-app-piklab.png | Bin 0 -> 220 bytes src/data/app_data/hi32-app-piklab.png | Bin 0 -> 861 bytes src/data/app_data/hi32-mime-piklab_project.png | Bin 0 -> 861 bytes src/data/app_data/hi64-app-piklab.png | Bin 0 -> 9976 bytes src/data/app_data/piklab.desktop | 13 ++ src/data/app_data/piklabui.rc | 203 ++++++++++++++++++ src/data/app_data/x-piklab.desktop | 8 + src/data/coff-c-pic.xml | 127 +++++++++++ src/data/hi16-action-piklab_addcurrentfile.png | Bin 0 -> 748 bytes src/data/hi16-action-piklab_addfile.png | Bin 0 -> 657 bytes src/data/hi16-action-piklab_blankcheck.png | Bin 0 -> 499 bytes src/data/hi16-action-piklab_burnchip.png | Bin 0 -> 844 bytes src/data/hi16-action-piklab_chip.png | Bin 0 -> 796 bytes src/data/hi16-action-piklab_closeproject.png | Bin 0 -> 715 bytes src/data/hi16-action-piklab_compile.png | Bin 0 -> 832 bytes src/data/hi16-action-piklab_createproject.png | Bin 0 -> 722 bytes src/data/hi16-action-piklab_decompile.png | Bin 0 -> 854 bytes src/data/hi16-action-piklab_editproject.png | Bin 0 -> 515 bytes src/data/hi16-action-piklab_erasechip.png | Bin 0 -> 808 bytes src/data/hi16-action-piklab_find_next.png | Bin 0 -> 254 bytes src/data/hi16-action-piklab_find_previous.png | Bin 0 -> 286 bytes src/data/hi16-action-piklab_openproject.png | Bin 0 -> 554 bytes src/data/hi16-action-piklab_readchip.png | Bin 0 -> 884 bytes src/data/hi16-action-piklab_verifychip.png | Bin 0 -> 821 bytes src/data/hi22-action-piklab_addcurrentfile.png | Bin 0 -> 753 bytes src/data/hi22-action-piklab_addfile.png | Bin 0 -> 613 bytes src/data/hi22-action-piklab_blankcheck.png | Bin 0 -> 621 bytes src/data/hi22-action-piklab_breakpoint_active.png | Bin 0 -> 1329 bytes .../hi22-action-piklab_breakpoint_disabled.png | Bin 0 -> 1117 bytes src/data/hi22-action-piklab_breakpoint_invalid.png | Bin 0 -> 1003 bytes src/data/hi22-action-piklab_breakpoint_reached.png | Bin 0 -> 1190 bytes src/data/hi22-action-piklab_burnchip.png | Bin 0 -> 1047 bytes src/data/hi22-action-piklab_chip.png | Bin 0 -> 1058 bytes src/data/hi22-action-piklab_closeproject.png | Bin 0 -> 1049 bytes src/data/hi22-action-piklab_compile.png | Bin 0 -> 871 bytes src/data/hi22-action-piklab_createproject.png | Bin 0 -> 689 bytes src/data/hi22-action-piklab_debug_step.png | Bin 0 -> 236 bytes src/data/hi22-action-piklab_debug_stepin.png | Bin 0 -> 181 bytes src/data/hi22-action-piklab_debug_stepout.png | Bin 0 -> 203 bytes src/data/hi22-action-piklab_debug_stepover.png | Bin 0 -> 186 bytes src/data/hi22-action-piklab_debughalt.png | Bin 0 -> 1190 bytes src/data/hi22-action-piklab_decompile.png | Bin 0 -> 884 bytes src/data/hi22-action-piklab_editproject.png | Bin 0 -> 446 bytes src/data/hi22-action-piklab_erasechip.png | Bin 0 -> 1060 bytes src/data/hi22-action-piklab_find_next.png | Bin 0 -> 402 bytes src/data/hi22-action-piklab_find_previous.png | Bin 0 -> 416 bytes src/data/hi22-action-piklab_openproject.png | Bin 0 -> 728 bytes src/data/hi22-action-piklab_power.png | Bin 0 -> 1315 bytes src/data/hi22-action-piklab_program_counter.png | Bin 0 -> 1278 bytes ...hi22-action-piklab_program_counter_disabled.png | Bin 0 -> 733 bytes src/data/hi22-action-piklab_readchip.png | Bin 0 -> 1063 bytes src/data/hi22-action-piklab_restart.png | Bin 0 -> 1419 bytes src/data/hi22-action-piklab_run.png | Bin 0 -> 1262 bytes src/data/hi22-action-piklab_stop.png | Bin 0 -> 1121 bytes src/data/hi22-action-piklab_verifychip.png | Bin 0 -> 1055 bytes src/data/hi32-action-piklab_config_assembler.png | Bin 0 -> 2258 bytes .../hi32-action-piklab_config_disassembler.png | Bin 0 -> 2346 bytes src/data/hi32-action-piklab_config_programmer.png | Bin 0 -> 861 bytes src/data/jal-pic.xml | 104 ++++++++++ src/data/likeback/Makefile.am | 2 + src/data/likeback/cr16-action-likeback_dislike.png | Bin 0 -> 824 bytes src/data/likeback/cr16-action-likeback_like.png | Bin 0 -> 846 bytes src/data/likeback/hi16-action-likeback_bug.png | Bin 0 -> 1106 bytes src/data/syntax_xml_generator.cpp | 231 +++++++++++++++++++++ src/data/xpms/csourcefile.xpm | 24 +++ src/data/xpms/includefile.xpm | 25 +++ src/data/xpms/objectfile.xpm | 24 +++ src/data/xpms/project.xpm | 29 +++ src/data/xpms/sourcefile.xpm | 24 +++ 72 files changed, 861 insertions(+) create mode 100644 src/data/Makefile.am create mode 100644 src/data/app_data/Makefile.am create mode 100644 src/data/app_data/hexeditorpartui.rc create mode 100644 src/data/app_data/hi16-app-piklab.png create mode 100644 src/data/app_data/hi32-app-piklab.png create mode 100644 src/data/app_data/hi32-mime-piklab_project.png create mode 100644 src/data/app_data/hi64-app-piklab.png create mode 100644 src/data/app_data/piklab.desktop create mode 100644 src/data/app_data/piklabui.rc create mode 100644 src/data/app_data/x-piklab.desktop create mode 100644 src/data/coff-c-pic.xml create mode 100644 src/data/hi16-action-piklab_addcurrentfile.png create mode 100644 src/data/hi16-action-piklab_addfile.png create mode 100644 src/data/hi16-action-piklab_blankcheck.png create mode 100644 src/data/hi16-action-piklab_burnchip.png create mode 100644 src/data/hi16-action-piklab_chip.png create mode 100644 src/data/hi16-action-piklab_closeproject.png create mode 100644 src/data/hi16-action-piklab_compile.png create mode 100644 src/data/hi16-action-piklab_createproject.png create mode 100644 src/data/hi16-action-piklab_decompile.png create mode 100644 src/data/hi16-action-piklab_editproject.png create mode 100644 src/data/hi16-action-piklab_erasechip.png create mode 100644 src/data/hi16-action-piklab_find_next.png create mode 100644 src/data/hi16-action-piklab_find_previous.png create mode 100644 src/data/hi16-action-piklab_openproject.png create mode 100644 src/data/hi16-action-piklab_readchip.png create mode 100644 src/data/hi16-action-piklab_verifychip.png create mode 100644 src/data/hi22-action-piklab_addcurrentfile.png create mode 100644 src/data/hi22-action-piklab_addfile.png create mode 100644 src/data/hi22-action-piklab_blankcheck.png create mode 100644 src/data/hi22-action-piklab_breakpoint_active.png create mode 100644 src/data/hi22-action-piklab_breakpoint_disabled.png create mode 100644 src/data/hi22-action-piklab_breakpoint_invalid.png create mode 100644 src/data/hi22-action-piklab_breakpoint_reached.png create mode 100644 src/data/hi22-action-piklab_burnchip.png create mode 100644 src/data/hi22-action-piklab_chip.png create mode 100644 src/data/hi22-action-piklab_closeproject.png create mode 100644 src/data/hi22-action-piklab_compile.png create mode 100644 src/data/hi22-action-piklab_createproject.png create mode 100644 src/data/hi22-action-piklab_debug_step.png create mode 100644 src/data/hi22-action-piklab_debug_stepin.png create mode 100644 src/data/hi22-action-piklab_debug_stepout.png create mode 100644 src/data/hi22-action-piklab_debug_stepover.png create mode 100644 src/data/hi22-action-piklab_debughalt.png create mode 100644 src/data/hi22-action-piklab_decompile.png create mode 100644 src/data/hi22-action-piklab_editproject.png create mode 100644 src/data/hi22-action-piklab_erasechip.png create mode 100644 src/data/hi22-action-piklab_find_next.png create mode 100644 src/data/hi22-action-piklab_find_previous.png create mode 100644 src/data/hi22-action-piklab_openproject.png create mode 100644 src/data/hi22-action-piklab_power.png create mode 100644 src/data/hi22-action-piklab_program_counter.png create mode 100644 src/data/hi22-action-piklab_program_counter_disabled.png create mode 100644 src/data/hi22-action-piklab_readchip.png create mode 100644 src/data/hi22-action-piklab_restart.png create mode 100644 src/data/hi22-action-piklab_run.png create mode 100644 src/data/hi22-action-piklab_stop.png create mode 100644 src/data/hi22-action-piklab_verifychip.png create mode 100644 src/data/hi32-action-piklab_config_assembler.png create mode 100644 src/data/hi32-action-piklab_config_disassembler.png create mode 100644 src/data/hi32-action-piklab_config_programmer.png create mode 100644 src/data/jal-pic.xml create mode 100644 src/data/likeback/Makefile.am create mode 100644 src/data/likeback/cr16-action-likeback_dislike.png create mode 100644 src/data/likeback/cr16-action-likeback_like.png create mode 100644 src/data/likeback/hi16-action-likeback_bug.png create mode 100644 src/data/syntax_xml_generator.cpp create mode 100644 src/data/xpms/csourcefile.xpm create mode 100644 src/data/xpms/includefile.xpm create mode 100644 src/data/xpms/objectfile.xpm create mode 100644 src/data/xpms/project.xpm create mode 100644 src/data/xpms/sourcefile.xpm (limited to 'src/data') diff --git a/src/data/Makefile.am b/src/data/Makefile.am new file mode 100644 index 0000000..e900930 --- /dev/null +++ b/src/data/Makefile.am @@ -0,0 +1,17 @@ +INCLUDES = $(all_includes) +SUBDIRS = app_data likeback + +piklabdir = $(kde_datadir)/piklab/icons +piklab_ICON = AUTO + +syntaxkatedir = $(kde_datadir)/katepart/syntax +syntaxkate_DATA = asm-pic.xml coff-pic.xml jal-pic.xml coff-c-pic.xml + +noinst_PROGRAMS = syntax_xml_generator +syntax_xml_generator_SOURCES = syntax_xml_generator.cpp +syntax_xml_generator_LDADD = $(LIB_QT) +syntax_xml_generator_LDFLAGS = $(all_libraries) + +asm-pic.xml coff-pic.xml: syntax_xml_generator + ./syntax_xml_generator +CLEANFILES = asm-pic.xml coff-pic.xml diff --git a/src/data/app_data/Makefile.am b/src/data/app_data/Makefile.am new file mode 100644 index 0000000..61959e6 --- /dev/null +++ b/src/data/app_data/Makefile.am @@ -0,0 +1,9 @@ +xdg_apps_DATA = piklab.desktop + +rcdir = $(kde_datadir)/piklab +rc_DATA = piklabui.rc hexeditorpartui.rc + +KDE_ICON = AUTO + +mimedir = $(kde_mimedir)/application +mime_DATA = x-piklab.desktop diff --git a/src/data/app_data/hexeditorpartui.rc b/src/data/app_data/hexeditorpartui.rc new file mode 100644 index 0000000..5471b03 --- /dev/null +++ b/src/data/app_data/hexeditorpartui.rc @@ -0,0 +1,21 @@ + + + + + + &File + + + + + + &Tools + + + + +Main Toolbar + + + + diff --git a/src/data/app_data/hi16-app-piklab.png b/src/data/app_data/hi16-app-piklab.png new file mode 100644 index 0000000..05baea4 Binary files /dev/null and b/src/data/app_data/hi16-app-piklab.png differ diff --git a/src/data/app_data/hi32-app-piklab.png b/src/data/app_data/hi32-app-piklab.png new file mode 100644 index 0000000..586e094 Binary files /dev/null and b/src/data/app_data/hi32-app-piklab.png differ diff --git a/src/data/app_data/hi32-mime-piklab_project.png b/src/data/app_data/hi32-mime-piklab_project.png new file mode 100644 index 0000000..586e094 Binary files /dev/null and b/src/data/app_data/hi32-mime-piklab_project.png differ diff --git a/src/data/app_data/hi64-app-piklab.png b/src/data/app_data/hi64-app-piklab.png new file mode 100644 index 0000000..7b1bf37 Binary files /dev/null and b/src/data/app_data/hi64-app-piklab.png differ diff --git a/src/data/app_data/piklab.desktop b/src/data/app_data/piklab.desktop new file mode 100644 index 0000000..e2f8145 --- /dev/null +++ b/src/data/app_data/piklab.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Type=Application +Exec=piklab %U +Icon=piklab.png +X-DocPath=piklab/index.html +Categories=Qt;KDE;Development;IDE;Electronics; +Comment=Integrated development environment for applications based on PIC microcontrollers. +Comment[fr]=Environnement de développement intégré pour applications utilisant des microcontroleurs PIC. +Comment[es]=Entorno integrado de desarrollo de aplicaciones basadas en microcontroladores PIC. +Terminal=false +Name=Piklab +GenericName=IDE +MimeType=text/x-hex;application/x-piklab diff --git a/src/data/app_data/piklabui.rc b/src/data/app_data/piklabui.rc new file mode 100644 index 0000000..b6c4845 --- /dev/null +++ b/src/data/app_data/piklabui.rc @@ -0,0 +1,203 @@ + + + + + + &File + + + + + + + + + + + + + + + + + + + + + + + + &Edit + + + + + + + + + + + + + + &View + + + + + + + + + + + + + + + + + + + &Project + + + + + + + + + + + + + Bu&ild + + + + + + + Pr&ogrammer + + + + + + + + + + + + + + + + + + &Debugger + + + + + + + + + + + + + + + &Tools + + + + + + + + + + + + + + &Settings + + + &Help + + + + + + + + + + + + + +Build Toolbar + + + + + +Programmer Toolbar + + + + + + + + + + + + + + + +Debugger Toolbar + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/data/app_data/x-piklab.desktop b/src/data/app_data/x-piklab.desktop new file mode 100644 index 0000000..de7e510 --- /dev/null +++ b/src/data/app_data/x-piklab.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Piklab +Comment=Piklab Project File +Comment[es]=Archivo de proyecto de Piklab +Icon=piklab_project +Type=MimeType +MimeType=application/x-piklab +Patterns=*.piklab; diff --git a/src/data/coff-c-pic.xml b/src/data/coff-c-pic.xml new file mode 100644 index 0000000..2090c02 --- /dev/null +++ b/src/data/coff-c-pic.xml @@ -0,0 +1,127 @@ + + + + + + + break + case + continue + default + do + else + enum + extern + for + goto + if + return + sizeof + struct + switch + typedef + union + while + + + auto + char + const + double + float + int + long + register + short + signed + static + unsigned + void + volatile + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/data/hi16-action-piklab_addcurrentfile.png b/src/data/hi16-action-piklab_addcurrentfile.png new file mode 100644 index 0000000..608c532 Binary files /dev/null and b/src/data/hi16-action-piklab_addcurrentfile.png differ diff --git a/src/data/hi16-action-piklab_addfile.png b/src/data/hi16-action-piklab_addfile.png new file mode 100644 index 0000000..1a3cfa0 Binary files /dev/null and b/src/data/hi16-action-piklab_addfile.png differ diff --git a/src/data/hi16-action-piklab_blankcheck.png b/src/data/hi16-action-piklab_blankcheck.png new file mode 100644 index 0000000..c71d4a5 Binary files /dev/null and b/src/data/hi16-action-piklab_blankcheck.png differ diff --git a/src/data/hi16-action-piklab_burnchip.png b/src/data/hi16-action-piklab_burnchip.png new file mode 100644 index 0000000..7ddef9e Binary files /dev/null and b/src/data/hi16-action-piklab_burnchip.png differ diff --git a/src/data/hi16-action-piklab_chip.png b/src/data/hi16-action-piklab_chip.png new file mode 100644 index 0000000..f0e3437 Binary files /dev/null and b/src/data/hi16-action-piklab_chip.png differ diff --git a/src/data/hi16-action-piklab_closeproject.png b/src/data/hi16-action-piklab_closeproject.png new file mode 100644 index 0000000..bdfd82c Binary files /dev/null and b/src/data/hi16-action-piklab_closeproject.png differ diff --git a/src/data/hi16-action-piklab_compile.png b/src/data/hi16-action-piklab_compile.png new file mode 100644 index 0000000..5a5360e Binary files /dev/null and b/src/data/hi16-action-piklab_compile.png differ diff --git a/src/data/hi16-action-piklab_createproject.png b/src/data/hi16-action-piklab_createproject.png new file mode 100644 index 0000000..5de505e Binary files /dev/null and b/src/data/hi16-action-piklab_createproject.png differ diff --git a/src/data/hi16-action-piklab_decompile.png b/src/data/hi16-action-piklab_decompile.png new file mode 100644 index 0000000..3490d6f Binary files /dev/null and b/src/data/hi16-action-piklab_decompile.png differ diff --git a/src/data/hi16-action-piklab_editproject.png b/src/data/hi16-action-piklab_editproject.png new file mode 100644 index 0000000..e8c3d55 Binary files /dev/null and b/src/data/hi16-action-piklab_editproject.png differ diff --git a/src/data/hi16-action-piklab_erasechip.png b/src/data/hi16-action-piklab_erasechip.png new file mode 100644 index 0000000..36077b0 Binary files /dev/null and b/src/data/hi16-action-piklab_erasechip.png differ diff --git a/src/data/hi16-action-piklab_find_next.png b/src/data/hi16-action-piklab_find_next.png new file mode 100644 index 0000000..3eaab85 Binary files /dev/null and b/src/data/hi16-action-piklab_find_next.png differ diff --git a/src/data/hi16-action-piklab_find_previous.png b/src/data/hi16-action-piklab_find_previous.png new file mode 100644 index 0000000..29db6e6 Binary files /dev/null and b/src/data/hi16-action-piklab_find_previous.png differ diff --git a/src/data/hi16-action-piklab_openproject.png b/src/data/hi16-action-piklab_openproject.png new file mode 100644 index 0000000..2da627b Binary files /dev/null and b/src/data/hi16-action-piklab_openproject.png differ diff --git a/src/data/hi16-action-piklab_readchip.png b/src/data/hi16-action-piklab_readchip.png new file mode 100644 index 0000000..b60277e Binary files /dev/null and b/src/data/hi16-action-piklab_readchip.png differ diff --git a/src/data/hi16-action-piklab_verifychip.png b/src/data/hi16-action-piklab_verifychip.png new file mode 100644 index 0000000..023f3b7 Binary files /dev/null and b/src/data/hi16-action-piklab_verifychip.png differ diff --git a/src/data/hi22-action-piklab_addcurrentfile.png b/src/data/hi22-action-piklab_addcurrentfile.png new file mode 100644 index 0000000..4b27037 Binary files /dev/null and b/src/data/hi22-action-piklab_addcurrentfile.png differ diff --git a/src/data/hi22-action-piklab_addfile.png b/src/data/hi22-action-piklab_addfile.png new file mode 100644 index 0000000..f911d65 Binary files /dev/null and b/src/data/hi22-action-piklab_addfile.png differ diff --git a/src/data/hi22-action-piklab_blankcheck.png b/src/data/hi22-action-piklab_blankcheck.png new file mode 100644 index 0000000..4c93c85 Binary files /dev/null and b/src/data/hi22-action-piklab_blankcheck.png differ diff --git a/src/data/hi22-action-piklab_breakpoint_active.png b/src/data/hi22-action-piklab_breakpoint_active.png new file mode 100644 index 0000000..35caf7c Binary files /dev/null and b/src/data/hi22-action-piklab_breakpoint_active.png differ diff --git a/src/data/hi22-action-piklab_breakpoint_disabled.png b/src/data/hi22-action-piklab_breakpoint_disabled.png new file mode 100644 index 0000000..c61f4c5 Binary files /dev/null and b/src/data/hi22-action-piklab_breakpoint_disabled.png differ diff --git a/src/data/hi22-action-piklab_breakpoint_invalid.png b/src/data/hi22-action-piklab_breakpoint_invalid.png new file mode 100644 index 0000000..7c624cc Binary files /dev/null and b/src/data/hi22-action-piklab_breakpoint_invalid.png differ diff --git a/src/data/hi22-action-piklab_breakpoint_reached.png b/src/data/hi22-action-piklab_breakpoint_reached.png new file mode 100644 index 0000000..55255af Binary files /dev/null and b/src/data/hi22-action-piklab_breakpoint_reached.png differ diff --git a/src/data/hi22-action-piklab_burnchip.png b/src/data/hi22-action-piklab_burnchip.png new file mode 100644 index 0000000..8590c71 Binary files /dev/null and b/src/data/hi22-action-piklab_burnchip.png differ diff --git a/src/data/hi22-action-piklab_chip.png b/src/data/hi22-action-piklab_chip.png new file mode 100644 index 0000000..0966442 Binary files /dev/null and b/src/data/hi22-action-piklab_chip.png differ diff --git a/src/data/hi22-action-piklab_closeproject.png b/src/data/hi22-action-piklab_closeproject.png new file mode 100644 index 0000000..4983783 Binary files /dev/null and b/src/data/hi22-action-piklab_closeproject.png differ diff --git a/src/data/hi22-action-piklab_compile.png b/src/data/hi22-action-piklab_compile.png new file mode 100644 index 0000000..7fa7489 Binary files /dev/null and b/src/data/hi22-action-piklab_compile.png differ diff --git a/src/data/hi22-action-piklab_createproject.png b/src/data/hi22-action-piklab_createproject.png new file mode 100644 index 0000000..a8b16dc Binary files /dev/null and b/src/data/hi22-action-piklab_createproject.png differ diff --git a/src/data/hi22-action-piklab_debug_step.png b/src/data/hi22-action-piklab_debug_step.png new file mode 100644 index 0000000..3b7204c Binary files /dev/null and b/src/data/hi22-action-piklab_debug_step.png differ diff --git a/src/data/hi22-action-piklab_debug_stepin.png b/src/data/hi22-action-piklab_debug_stepin.png new file mode 100644 index 0000000..6a09a4c Binary files /dev/null and b/src/data/hi22-action-piklab_debug_stepin.png differ diff --git a/src/data/hi22-action-piklab_debug_stepout.png b/src/data/hi22-action-piklab_debug_stepout.png new file mode 100644 index 0000000..405f9a9 Binary files /dev/null and b/src/data/hi22-action-piklab_debug_stepout.png differ diff --git a/src/data/hi22-action-piklab_debug_stepover.png b/src/data/hi22-action-piklab_debug_stepover.png new file mode 100644 index 0000000..cb512cb Binary files /dev/null and b/src/data/hi22-action-piklab_debug_stepover.png differ diff --git a/src/data/hi22-action-piklab_debughalt.png b/src/data/hi22-action-piklab_debughalt.png new file mode 100644 index 0000000..69dfb9e Binary files /dev/null and b/src/data/hi22-action-piklab_debughalt.png differ diff --git a/src/data/hi22-action-piklab_decompile.png b/src/data/hi22-action-piklab_decompile.png new file mode 100644 index 0000000..71eeff8 Binary files /dev/null and b/src/data/hi22-action-piklab_decompile.png differ diff --git a/src/data/hi22-action-piklab_editproject.png b/src/data/hi22-action-piklab_editproject.png new file mode 100644 index 0000000..259c08e Binary files /dev/null and b/src/data/hi22-action-piklab_editproject.png differ diff --git a/src/data/hi22-action-piklab_erasechip.png b/src/data/hi22-action-piklab_erasechip.png new file mode 100644 index 0000000..a13f057 Binary files /dev/null and b/src/data/hi22-action-piklab_erasechip.png differ diff --git a/src/data/hi22-action-piklab_find_next.png b/src/data/hi22-action-piklab_find_next.png new file mode 100644 index 0000000..c047271 Binary files /dev/null and b/src/data/hi22-action-piklab_find_next.png differ diff --git a/src/data/hi22-action-piklab_find_previous.png b/src/data/hi22-action-piklab_find_previous.png new file mode 100644 index 0000000..99cea7c Binary files /dev/null and b/src/data/hi22-action-piklab_find_previous.png differ diff --git a/src/data/hi22-action-piklab_openproject.png b/src/data/hi22-action-piklab_openproject.png new file mode 100644 index 0000000..2d97fd1 Binary files /dev/null and b/src/data/hi22-action-piklab_openproject.png differ diff --git a/src/data/hi22-action-piklab_power.png b/src/data/hi22-action-piklab_power.png new file mode 100644 index 0000000..b479583 Binary files /dev/null and b/src/data/hi22-action-piklab_power.png differ diff --git a/src/data/hi22-action-piklab_program_counter.png b/src/data/hi22-action-piklab_program_counter.png new file mode 100644 index 0000000..529281a Binary files /dev/null and b/src/data/hi22-action-piklab_program_counter.png differ diff --git a/src/data/hi22-action-piklab_program_counter_disabled.png b/src/data/hi22-action-piklab_program_counter_disabled.png new file mode 100644 index 0000000..617c4ae Binary files /dev/null and b/src/data/hi22-action-piklab_program_counter_disabled.png differ diff --git a/src/data/hi22-action-piklab_readchip.png b/src/data/hi22-action-piklab_readchip.png new file mode 100644 index 0000000..1df48d0 Binary files /dev/null and b/src/data/hi22-action-piklab_readchip.png differ diff --git a/src/data/hi22-action-piklab_restart.png b/src/data/hi22-action-piklab_restart.png new file mode 100644 index 0000000..a8dad33 Binary files /dev/null and b/src/data/hi22-action-piklab_restart.png differ diff --git a/src/data/hi22-action-piklab_run.png b/src/data/hi22-action-piklab_run.png new file mode 100644 index 0000000..fc861fb Binary files /dev/null and b/src/data/hi22-action-piklab_run.png differ diff --git a/src/data/hi22-action-piklab_stop.png b/src/data/hi22-action-piklab_stop.png new file mode 100644 index 0000000..c2b68f7 Binary files /dev/null and b/src/data/hi22-action-piklab_stop.png differ diff --git a/src/data/hi22-action-piklab_verifychip.png b/src/data/hi22-action-piklab_verifychip.png new file mode 100644 index 0000000..dbd11fa Binary files /dev/null and b/src/data/hi22-action-piklab_verifychip.png differ diff --git a/src/data/hi32-action-piklab_config_assembler.png b/src/data/hi32-action-piklab_config_assembler.png new file mode 100644 index 0000000..198b8d8 Binary files /dev/null and b/src/data/hi32-action-piklab_config_assembler.png differ diff --git a/src/data/hi32-action-piklab_config_disassembler.png b/src/data/hi32-action-piklab_config_disassembler.png new file mode 100644 index 0000000..6107b62 Binary files /dev/null and b/src/data/hi32-action-piklab_config_disassembler.png differ diff --git a/src/data/hi32-action-piklab_config_programmer.png b/src/data/hi32-action-piklab_config_programmer.png new file mode 100644 index 0000000..586e094 Binary files /dev/null and b/src/data/hi32-action-piklab_config_programmer.png differ diff --git a/src/data/jal-pic.xml b/src/data/jal-pic.xml new file mode 100644 index 0000000..272d957 --- /dev/null +++ b/src/data/jal-pic.xml @@ -0,0 +1,104 @@ + + + + + + + + function + procedure + var + at + const + volatile + return + asm + assembler + + + + if + then + else + elsif + forever + end + while + loop + for + + + + bit + byte + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/data/likeback/Makefile.am b/src/data/likeback/Makefile.am new file mode 100644 index 0000000..1b17603 --- /dev/null +++ b/src/data/likeback/Makefile.am @@ -0,0 +1,2 @@ +piklabdir = $(kde_datadir)/piklab/icons +piklab_ICON = AUTO \ No newline at end of file diff --git a/src/data/likeback/cr16-action-likeback_dislike.png b/src/data/likeback/cr16-action-likeback_dislike.png new file mode 100644 index 0000000..4f0f8ee Binary files /dev/null and b/src/data/likeback/cr16-action-likeback_dislike.png differ diff --git a/src/data/likeback/cr16-action-likeback_like.png b/src/data/likeback/cr16-action-likeback_like.png new file mode 100644 index 0000000..bf6941d Binary files /dev/null and b/src/data/likeback/cr16-action-likeback_like.png differ diff --git a/src/data/likeback/hi16-action-likeback_bug.png b/src/data/likeback/hi16-action-likeback_bug.png new file mode 100644 index 0000000..4d7f5a6 Binary files /dev/null and b/src/data/likeback/hi16-action-likeback_bug.png differ diff --git a/src/data/syntax_xml_generator.cpp b/src/data/syntax_xml_generator.cpp new file mode 100644 index 0000000..9f3553e --- /dev/null +++ b/src/data/syntax_xml_generator.cpp @@ -0,0 +1,231 @@ +/*************************************************************************** + * Copyright (C) 2006 Nicolas Hadacek * + * * + * 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 version 2 of the License, or * + * (at your option) any later version. * + ***************************************************************************/ + +// this program generate xml files for kate highlighting +// the original syntax file was created by Alain Gibaud + +#include +#include + +const char * const DIRECTIVES[] = { +"__badram", "__config", "__idlocs", "__maxram", +"bankisel", "banksel", "cblock", "code", "cblock", "constant", "da", "data", "db", +"de", "dt", "dw", "endm", "endc", "endw", "equ", "error", "errorlevel", "extern", +"exitm", "expand", "fill", "global", "idata", "list", "local", "macro", "messg", +"noexpand", "nolist", "org", "page", "processor", "pagesel", "radix", "res", "set", +"space", "subtitle", "title", "udata", "udata_acs", "udata_ovr", "udata_shr", +"variable", "end", 0 +}; +const char * const CONDITIONNALS[] = { +"if", "else", "ifdef", "ifndef", "endif", "while", "include", "endw", "{", "}", 0 +}; +const char * const GPASM_MACROS[] = { +"addcf", "b", "bc", "bz", "bnc", "bnz", "clrc", "clrz", "setc", "setz", "movfw", +"negf", "skpc", "skpz", "skpnc", "skpnz", "subcf", "tstf", 0 +}; +const char * const CPIK_MACROS[] = { +"IBZ", "IBNZ", "IBRA", "ICALL", 0 +}; +const char * const SFRS[] = { // #### should be extracted from dev files... +"TOSU", "TOSH", "TOSL", "STKPTR", "PCLATU", "PCLATH", "PCL", "TBLPTRU", "TBLPTRH", +"TBLPTRL", "TABLAT", "PRODH", "PRODL", "INTCON", "INTCON2", "INTCON3", "INDF0", +"POSTINC0", "POSTDEC0", "PREINC0", "PLUSW0", "FSR0H", "FSR0L", "WREG", "INDF1", +"POSTINC1", "POSTDEC1", "PREINC1", "PLUSW1", "FSR1H", "FSR1L", "BSR", "INDF2", +"POSTINC2", "POSTDEC2", "PREINC2", "PLUSW2", "FSR2H", "FSR2L", "STATUS", "TMR0H", +"TMR0L", "T0CON", "OSCCON", "LVDCON", "WDTCON", "RCON", "TMR1H", "TMR1L","T1CON", +"TMR2", "PR2", "T2CON", "SSPBUF", "SSPADD", "SSPSTAT", "SSPCON1", "SSPCON2", "ADRESH", +"ADRESL", "ADCON0", "ADCON1", "ADCON2", "CCPR1H", "CCPR1L", "CCP1CON", "CCPR2H", +"CCPR2L", "CCP2CON", "PWM1CON", "ECCPAS", "CVRCON", "CMCON", "TMR3H", "TMR3L", +"T3CON", "SPBRG", "RCREG", "TXREG", "TXSTA", "RCSTA", "EEADR", "EEDATA", "EECON2", +"EECON1", "IPR2", "PIR2", "PIE2", "IPR1", "PIR1", "PIE1", "OSCTUNE", "TRISE", +"TRISD", "TRISC", "TRISB", "TRISA", "LATE", "LATD", "LATC", "LATB", "LATA", +"PORTE", "PORTD", "PORTC", "PORTB", "PORTA", "TMR0", "TMR1", "OPTION_REG", 0 +}; +const char * const INSTRUCTIONS[] = { +"addlw", "addwf", "addwfc", "andlw", "andwf", "bcf", "bc", "bn", "bnc", "bnn", "bnov", +"bnz", "bz", "bov", "bra", "bsf", "btfsc", "btg", "btfss", "call", "clrf", "clrw", +"clrwdt", "comf", "cpfseq", "cpfsgt", "cpfslt", "daw", "decf", "decfsz", "dcfsnz", +"goto", "incf", "incfsz", "infsnz", "iorlw", "iorwf", "lfsr", "movf", "movff", +"movlb", "movlw", "movwf", "mullw", "mulwf", "negf", "nop", "option", "pop", "push", +"rcall", "reset", "retfie", "retlw", "rlcf", "rlncf", "rrcf", "rrncf", "return", "rlf", +"rrf", "setf", "sleep", "sublw", "subfwb", "subwf", "subwfb", "swapf", "tstfsz", +"tris", "tblrd", "tblwt", "xorlw", "xorwf", 0 +}; + +QTextStream *initFile(QFile &file) +{ + if ( !file.open(IO_WriteOnly) ) qFatal("Cannot create \"%s\".", file.name().latin1()); + QTextStream *s = new QTextStream(&file); + (*s) << "" << endl; + (*s) << "" << endl; + (*s) << "" << endl; + return s; +} + +void addList(QTextStream &s, const QString &name, const char * const *items, bool upper) +{ + s << " " << endl; + for (uint i=0; items[i]; i++) { + s << " " << items[i] << ""; + if (upper) s << "" << QString(items[i]).upper() << ""; + s << endl; + }; + s <<" " << endl; +} + +void addCommon(QTextStream &s) +{ + addList(s, "instructions", INSTRUCTIONS, true); + s << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << endl; + s << " " << endl; + s << " " << endl; +} + +void addAsmContexts(QTextStream &s) +{ + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; +} + +void endFile(QTextStream &s) +{ + s << " " << endl; + s << "" << endl; + s << endl; + s << "" << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << " " << endl; + s << "" << endl; + s << endl; + s << "" << endl; +} + +int main(int, char **) +{ + QFile afile("asm-pic.xml"); + QTextStream *s = initFile(afile); + (*s) << "" << endl; + (*s) << endl; + (*s) << "" << endl; + addList(*s, "directives", DIRECTIVES, true); + addList(*s, "conditionnal", CONDITIONNALS, false); + addList(*s, "gpasm_macro", GPASM_MACROS, false); + addList(*s, "cpik_macro", CPIK_MACROS, false); + addList(*s, "sfrs", SFRS, false); + addCommon(*s); + addAsmContexts(*s); + endFile(*s); + + QFile cfile("coff-pic.xml"); + s = initFile(cfile); + (*s) << "" << endl; + (*s) << endl; + (*s) << "" << endl; + addCommon(*s); + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + (*s) << " " << endl; + endFile(*s); +} diff --git a/src/data/xpms/csourcefile.xpm b/src/data/xpms/csourcefile.xpm new file mode 100644 index 0000000..93fdf98 --- /dev/null +++ b/src/data/xpms/csourcefile.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static const char * csourcefile_xpm[] = { +"16 16 5 1", +" c None", +". c #000000", +"+ c #2CF416", +"@ c #498942", +"# c #56CC49", +" ", +" .. ", +" .++.. ", +" .+++++. ", +" .+++++@. ", +" .. .##++@@. ", +" .++..###@@@. ", +" .+++++.##@@. ", +" .+++++@..#@. ", +" .##++@@. .. ", +" .###@@@. ", +" .###@@. ", +" ..#@. ", +" .. ", +" ", +" "}; diff --git a/src/data/xpms/includefile.xpm b/src/data/xpms/includefile.xpm new file mode 100644 index 0000000..9ac9cbc --- /dev/null +++ b/src/data/xpms/includefile.xpm @@ -0,0 +1,25 @@ +/* XPM */ +static const char *includefile_xpm[]={ +"16 16 6 1", +". c None", +"# c #000000", +"b c #e0bc38", +"c c #f0dc5c", +"a c #fcfc80", +"d c #ff0000", +"................", +"..........##....", +".........#aa##..", +"........#aaaaa#.", +".......#aaaaab#.", +"....##.#ccaabb#.", +"...#aa##cccbbb#.", +"..#aaaaa#ccbb#..", +".#aaaaab##cb#...", +".#ccaabb#.##....", +".#cccbbb#.......", +".#cccbb#...ddd..", +"..##cb#...ddddd.", +"....##....ddddd.", +"..........ddddd.", +"...........ddd.."}; diff --git a/src/data/xpms/objectfile.xpm b/src/data/xpms/objectfile.xpm new file mode 100644 index 0000000..5bef5d2 --- /dev/null +++ b/src/data/xpms/objectfile.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static const char * objectfile_xpm[] = { +"16 16 5 1", +" c None", +". c #000000", +"+ c #ECDEEF", +"@ c #985EA5", +"# c #DCBEE2", +" ", +" .. ", +" .++.. ", +" .+++++. ", +" .+++++@. ", +" .. .##++@@. ", +" .++..###@@@. ", +" .+++++.##@@. ", +" .+++++@..#@. ", +" .##++@@. .. ", +" .###@@@. ", +" .###@@. ", +" ..#@. ", +" .. ", +" ", +" "}; diff --git a/src/data/xpms/project.xpm b/src/data/xpms/project.xpm new file mode 100644 index 0000000..28a6397 --- /dev/null +++ b/src/data/xpms/project.xpm @@ -0,0 +1,29 @@ +/* XPM */ +static const char * project_xpm[] = { +"16 16 10 1", +" c None", +". c #000000", +"+ c #A4E8FC", +"@ c #24D0FC", +"# c #001CD0", +"$ c #0080E8", +"% c #C0FFFF", +"& c #00FFFF", +"* c #008080", +"= c #00C0C0", +" .. ", +" .++.. ", +" .+++@@. ", +" .@@@@@#... ", +" .$$@@##.%%.. ", +" .$$$##.%%%&&. ", +" .$$$#.&&&&&*. ", +" ...#.==&&**. ", +" .++..===***. ", +" .+++@@.==**. ", +" .@@@@@#..=*. ", +" .$$@@##. .. ", +" .$$$###. ", +" .$$$##. ", +" ..$#. ", +" .. "}; diff --git a/src/data/xpms/sourcefile.xpm b/src/data/xpms/sourcefile.xpm new file mode 100644 index 0000000..3cb6c6a --- /dev/null +++ b/src/data/xpms/sourcefile.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static const char * sourcefile_xpm[] = { +"16 16 5 1", +" c None", +". c #000000", +"+ c #FCFC80", +"@ c #E0BC38", +"# c #F0DC5C", +" ", +" .. ", +" .++.. ", +" .+++++. ", +" .+++++@. ", +" .. .##++@@. ", +" .++..###@@@. ", +" .+++++.##@@. ", +" .+++++@..#@. ", +" .##++@@. .. ", +" .###@@@. ", +" .###@@. ", +" ..#@. ", +" .. ", +" ", +" "}; -- cgit v1.2.1