├── include
├── trixcrypt_seer.h
├── seer_seer.h
├── fmt_seer.h
├── mutex_seer.h
├── trixplug_version.h
├── treenode_seer.h
├── misc.h
├── file_seer.h
├── symbols_type.h
├── netrix_seer.h
├── ppmodd_net.h
├── main.h
├── mem_seer.h
├── segment_seer.h
├── file_io_seer.h
├── fmt_trixcrypt.h
├── fmt_epoc.h
├── netrix.h
├── nokia_seer.h
├── e32image_deflate.h
├── fmt_pe.h
├── mutex.h
├── stage_seer.h
├── trixcrypt.h
├── symbols_seer.h
├── fmt_elf.h
├── options_seer.h
├── symbols.h
├── project_seer.h
├── file.h
├── trixplug_netrix.h
├── trixplug_mutex.h
├── nokia.h
├── arm_seer.h
├── file_io.h
├── seer_vcpudeco.h
├── trixplug_trixcrypt.h
├── crypto_seer.h
├── crypto_jk.h
├── trixplug_project.h
├── trixplug_symbols.h
└── trixplug_file_io.h
├── platform
└── msvc
│ ├── moc_ui_build_ppm_progress.cpp
│ ├── TriX.gif
│ ├── icon1.ico
│ ├── TriX_FATe
│ └── trix_plugin.def
│ ├── TriX_XML
│ └── trix_plugin.def
│ ├── TriX_term
│ └── TriX_term.def
│ ├── TriX_ARMada
│ └── trix_plugin.def
│ ├── TriX_ARMulate
│ └── trix_ARMulate.def
│ ├── TriX_DisARM
│ └── trix_plugin.def
│ ├── TriX_HWemu
│ └── trix_plugin.def
│ ├── TriX_Excellent
│ └── trix_plugin.def
│ ├── TriX_PPModify
│ └── trix_plugin.def
│ ├── TriX_Prodigize
│ └── trix_plugin.def
│ ├── TriX_fmttest
│ └── TriX_fmttest.def
│ ├── run.sh
│ ├── resource.h
│ ├── QT_UI.rules
│ ├── QT_QRC.rules
│ └── TriX.manifest
├── tools
├── header_definition
│ ├── version
│ ├── netrix.def
│ ├── mutex.def
│ ├── trixcrypt.def
│ ├── project.def
│ ├── file_io.def
│ ├── symbols.def
│ ├── file.def
│ ├── fmt.def
│ ├── seer.def
│ ├── workspace.def
│ ├── nokia.def
│ ├── trixplug.def
│ ├── segment.def
│ ├── crypto.def
│ └── elf.def
├── dialog.src
│ ├── VERSION
│ ├── po
│ │ ├── cs.po
│ │ ├── el.po
│ │ ├── es.po
│ │ ├── et.po
│ │ ├── fr.po
│ │ ├── ga.po
│ │ ├── hr.po
│ │ ├── hu.po
│ │ ├── ja.po
│ │ ├── pl.po
│ │ ├── pt.po
│ │ ├── sv.po
│ │ ├── tr.po
│ │ ├── pt_BR.po
│ │ └── POTFILES.in
│ ├── samples
│ │ ├── listing
│ │ ├── msgbox4-eucjp
│ │ ├── testdata-8bit
│ │ ├── copifuncs
│ │ │ ├── copi.sendifm2
│ │ │ ├── copi.ifpoll1
│ │ │ ├── copi.trnrc
│ │ │ ├── copi.ifreq1
│ │ │ └── copi.ifmcfg5
│ │ ├── fselect-stdout
│ │ ├── fselect2-stdout
│ │ ├── tailbox
│ │ ├── pause
│ │ ├── timebox2-stdout
│ │ ├── calendar2-stdout
│ │ ├── fselect2
│ │ ├── timebox-stdout
│ │ ├── calendar-stdout
│ │ ├── gauge
│ │ ├── killall
│ │ ├── gauge0
│ │ ├── gauge3
│ │ ├── timebox2
│ │ ├── calendar2
│ │ ├── timebox
│ │ ├── calendar
│ │ ├── progress
│ │ ├── msgbox
│ │ ├── progress2
│ │ ├── rotated-data
│ │ ├── fselect1-stdout
│ │ ├── fselect
│ │ ├── calendar3-stdout
│ │ ├── msgbox6
│ │ ├── gauge0-input-fd
│ │ ├── fselect1
│ │ ├── calendar3
│ │ ├── checklist9
│ │ ├── msgbox6a
│ │ ├── pause-help
│ │ ├── infobox
│ │ ├── infobox1
│ │ ├── infobox2
│ │ ├── gauge2
│ │ ├── tailboxbg
│ │ ├── infobox3
│ │ ├── infobox4
│ │ ├── msgbox-help
│ │ ├── msgbox3
│ │ ├── inputbox6-8bit
│ │ ├── msgbox5
│ │ ├── textbox3
│ │ ├── install
│ │ │ └── makefile.in
│ │ ├── yesno2
│ │ ├── yesno3
│ │ ├── menubox10
│ │ ├── yesno
│ │ ├── textbox.txt
│ │ ├── inputbox6-utf8
│ │ ├── inputbox1
│ │ ├── msgbox4-8bit
│ │ ├── tailboxbg1
│ │ ├── inputbox
│ │ ├── inputbox2
│ │ ├── inputbox4
│ │ ├── tailboxbg2
│ │ ├── password
│ │ ├── inputbox3
│ │ ├── password1
│ │ ├── yesno-help
│ │ ├── password2
│ │ ├── infobox5
│ │ ├── inputbox5
│ │ ├── menubox9
│ │ ├── infobox6
│ │ ├── inputbox-help
│ │ ├── inputbox-extra
│ │ ├── inputbox7
│ │ ├── inputbox-both
│ │ ├── yesno-extra
│ │ ├── yesno-both
│ │ ├── menubox
│ │ ├── checklist10
│ │ ├── radiolist10
│ │ ├── msgbox4-utf8
│ │ ├── menubox1
│ │ ├── menubox2
│ │ └── menubox8
│ ├── config.hin
│ ├── mkdirs.sh
│ ├── dialog.lsm
│ └── version.c
├── dialog
├── arm
│ ├── ar.exe
│ ├── as.exe
│ ├── cc1.exe
│ ├── gcc.exe
│ ├── ld.exe
│ ├── nm.exe
│ ├── rm.exe
│ ├── bash.exe
│ ├── make.exe
│ ├── sleep.exe
│ ├── cygwin1.dll
│ ├── objcopy.exe
│ ├── objdump.exe
│ ├── cygiconv-2.dll
│ ├── cygintl-2.dll
│ ├── cygintl-3.dll
│ ├── gcc-arm-elf.exe
│ ├── cygncurses-8.dll
│ └── cygreadline6.dll
├── c2html.exe
├── dialog.exe
└── c2html.src
│ ├── INSTALL
│ ├── Makefile
│ └── makefile.default
├── filecheck.trz
├── doc
└── html
│ ├── doxygen.png
│ ├── ftv2doc.png
│ ├── tab_b.gif
│ ├── tab_l.gif
│ ├── tab_r.gif
│ ├── ftv2blank.png
│ ├── ftv2link.png
│ ├── ftv2mnode.png
│ ├── ftv2node.png
│ ├── ftv2pnode.png
│ ├── ftv2lastnode.png
│ ├── ftv2vertline.png
│ ├── ftv2folderopen.png
│ ├── ftv2mlastnode.png
│ ├── ftv2plastnode.png
│ ├── ftv2folderclosed.png
│ ├── index.html
│ └── main.html
├── support
├── te_2nd.fia
├── te_shell_v2.fia
└── makefile
├── plugins
├── TriX_XML
│ ├── xml.c
│ ├── build.sh
│ └── mxml_file.h
├── TriX_FATe
│ ├── fat.c
│ ├── orig
│ │ └── fat.c
│ └── build.sh
├── TriX_ARMada
│ ├── compiler.h
│ ├── build.sh
│ └── error.h
├── TriX_PPModify
│ ├── chunk_plmn.c
│ └── build.sh
├── TriX_Prodigize
│ ├── static
│ │ ├── UART.static
│ │ ├── LOWCNTR.static
│ │ ├── LOWDEV.static
│ │ ├── LOWFLASH.static
│ │ ├── LOWMBUS.static
│ │ ├── LOWMBUS.h
│ │ └── types.h
│ ├── temp
│ │ └── examples
│ │ │ ├── mfc_example
│ │ │ ├── StdAfx.cpp
│ │ │ ├── resource.h
│ │ │ └── StdAfx.h
│ │ │ └── win32_example
│ │ │ ├── StdAfx.cpp
│ │ │ ├── win32_example.h
│ │ │ ├── resource.h
│ │ │ └── StdAfx.h
│ └── build.sh
├── TriX_term
│ └── build.sh
├── TriX_fmttest
│ └── build.sh
├── TriX_fmtBABE
│ └── build.sh
├── TriX_fmtBADA
│ └── build.sh
├── TriX_fmtCNT
│ └── build.sh
├── TriX_NokiaCrypt
│ ├── Common.h
│ ├── build.sh
│ ├── 3way_algo.h
│ └── Common.cpp
├── TriX_UFS
│ ├── build.sh
│ └── source
│ │ ├── FIA.h
│ │ └── UFSx.cpp
├── TriX_IPShell
│ ├── build.sh
│ └── IPShell.h
├── TriX_Excellent
│ └── build.sh
├── TriX_DisARM
│ ├── build.sh
│ ├── arm-dis.h
│ └── disarm.h
├── TriX_ARMulate
│ ├── build.sh
│ └── resource.h
├── TriX_HWemu
│ └── build.sh
└── TriX_HWemuEOS
│ └── build.sh
├── scripts
├── SE
│ ├── find_free_space.trx
│ ├── get_fw_version.trx
│ ├── pause.trx
│ ├── locate.trx
│ └── super_size_me.trx
├── k_compile_arm_c_files
│ ├── cbus_asm.s
│ ├── makefile
│ └── rotate_lcd.c
├── g_test_elf.trx
├── standalone
│ ├── xml_test.trx
│ ├── maxheap_test.trx
│ ├── trixcrypt_format.trx
│ ├── ui_menu_test.trx
│ ├── fmttest_test.trx
│ ├── pause.trx
│ ├── disarm_test.trx
│ ├── blocking_test.trx
│ ├── excellent_writer.trx
│ ├── compile_example
│ │ └── example.c
│ ├── options_test.trx
│ ├── dump_memmap.trx
│ ├── fchk_info.trx
│ ├── armada_test.trx
│ ├── ppmodify_rebuild.trx
│ └── rm225_versionchange.trx
├── bada
│ ├── pause.trx
│ ├── dump_memmap.trx
│ └── hyper_terminal.trx
├── trix_signature.trx
├── k_term_test.trx
├── g_test_fileinfo.trx
└── k_compile_arm_c_files.trx
├── run.sh
├── src
├── ui-qt
│ ├── icons
│ │ └── 22x22-gartoon
│ │ │ ├── gnu.png
│ │ │ ├── kde.png
│ │ │ ├── www.png
│ │ │ ├── xv.png
│ │ │ ├── chat.png
│ │ │ ├── clock.png
│ │ │ ├── colors.png
│ │ │ ├── disk.png
│ │ │ ├── editor.png
│ │ │ ├── empty.png
│ │ │ ├── file.png
│ │ │ ├── folder.png
│ │ │ ├── font.png
│ │ │ ├── game.png
│ │ │ ├── gimp.png
│ │ │ ├── gnome.png
│ │ │ ├── help.png
│ │ │ ├── home.png
│ │ │ ├── item.png
│ │ │ ├── lock.png
│ │ │ ├── mail.png
│ │ │ ├── mouse.png
│ │ │ ├── music.png
│ │ │ ├── news.png
│ │ │ ├── quit.png
│ │ │ ├── sound.png
│ │ │ ├── system.png
│ │ │ ├── themes.png
│ │ │ ├── todo.png
│ │ │ ├── viewer.png
│ │ │ ├── window.png
│ │ │ ├── disk-cd.png
│ │ │ ├── display.png
│ │ │ ├── keyboard.png
│ │ │ ├── modules.png
│ │ │ ├── network.png
│ │ │ ├── printing.png
│ │ │ ├── programs.png
│ │ │ ├── refresh.png
│ │ │ ├── restart.png
│ │ │ ├── science.png
│ │ │ ├── terminal.png
│ │ │ ├── unknown.png
│ │ │ ├── utility.png
│ │ │ ├── windows.png
│ │ │ ├── amusement.png
│ │ │ ├── calculator.png
│ │ │ ├── cd-player.png
│ │ │ ├── choice-no.png
│ │ │ ├── choice-yes.png
│ │ │ ├── development.png
│ │ │ ├── disk-floppy.png
│ │ │ ├── folder-open.png
│ │ │ ├── ghostview.png
│ │ │ ├── information.png
│ │ │ ├── monitoring.png
│ │ │ ├── multimedia.png
│ │ │ ├── window-move.png
│ │ │ ├── configuration.png
│ │ │ ├── file-manager.png
│ │ │ ├── image-viewer.png
│ │ │ ├── window-close.png
│ │ │ ├── window-delete.png
│ │ │ ├── window-lower.png
│ │ │ ├── window-raise.png
│ │ │ ├── window-resize.png
│ │ │ ├── window-shade.png
│ │ │ ├── window-stick.png
│ │ │ ├── image-processor.png
│ │ │ ├── terminal-remote.png
│ │ │ ├── terminal-special.png
│ │ │ ├── window-destroy.png
│ │ │ ├── window-iconify.png
│ │ │ ├── window-identify.png
│ │ │ ├── window-maximize.png
│ │ │ └── word-processor.png
│ ├── ui_commandref.h
│ ├── ui_plug.h
│ ├── ui_opt.h
│ ├── ui_object_tree.h
│ ├── ui_resource.qrc
│ └── ui_text_box.h
├── win32
│ └── example
│ │ └── SampleDLL
│ │ └── SampleDLL.h
└── seer
│ └── seer_protect.c
├── files.txt
├── projects
├── shared
│ ├── coprocessor
│ │ └── coprocessor.c
│ └── include
│ │ └── lcd.h
└── lcd_test
│ └── lcd_test.c
├── cvs2git.sh
├── grx_image_to_excel.trx
└── compile.conf
/include/trixcrypt_seer.h:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/platform/msvc/moc_ui_build_ppm_progress.cpp:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tools/header_definition/version:
--------------------------------------------------------------------------------
1 | 32 1
2 |
--------------------------------------------------------------------------------
/include/seer_seer.h:
--------------------------------------------------------------------------------
1 |
2 | typedef char *scScript;
--------------------------------------------------------------------------------
/tools/dialog.src/VERSION:
--------------------------------------------------------------------------------
1 | 4:2:0 1.0 20060221
2 |
--------------------------------------------------------------------------------
/include/fmt_seer.h:
--------------------------------------------------------------------------------
1 | typedef char t_fmt_handler;
2 |
--------------------------------------------------------------------------------
/include/mutex_seer.h:
--------------------------------------------------------------------------------
1 |
2 | typedef int t_mutex;
3 |
4 |
--------------------------------------------------------------------------------
/tools/dialog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog
--------------------------------------------------------------------------------
/filecheck.trz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/filecheck.trz
--------------------------------------------------------------------------------
/tools/arm/ar.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/ar.exe
--------------------------------------------------------------------------------
/tools/arm/as.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/as.exe
--------------------------------------------------------------------------------
/tools/arm/cc1.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/cc1.exe
--------------------------------------------------------------------------------
/tools/arm/gcc.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/gcc.exe
--------------------------------------------------------------------------------
/tools/arm/ld.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/ld.exe
--------------------------------------------------------------------------------
/tools/arm/nm.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/nm.exe
--------------------------------------------------------------------------------
/tools/arm/rm.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/rm.exe
--------------------------------------------------------------------------------
/tools/c2html.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/c2html.exe
--------------------------------------------------------------------------------
/tools/dialog.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.exe
--------------------------------------------------------------------------------
/doc/html/doxygen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/doxygen.png
--------------------------------------------------------------------------------
/doc/html/ftv2doc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2doc.png
--------------------------------------------------------------------------------
/doc/html/tab_b.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/tab_b.gif
--------------------------------------------------------------------------------
/doc/html/tab_l.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/tab_l.gif
--------------------------------------------------------------------------------
/doc/html/tab_r.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/tab_r.gif
--------------------------------------------------------------------------------
/include/trixplug_version.h:
--------------------------------------------------------------------------------
1 | #define TRIXPLUG_MAJOR 32
2 | #define TRIXPLUG_MINOR 1
3 |
--------------------------------------------------------------------------------
/support/te_2nd.fia:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/support/te_2nd.fia
--------------------------------------------------------------------------------
/tools/arm/bash.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/bash.exe
--------------------------------------------------------------------------------
/tools/arm/make.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/make.exe
--------------------------------------------------------------------------------
/tools/arm/sleep.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/sleep.exe
--------------------------------------------------------------------------------
/doc/html/ftv2blank.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2blank.png
--------------------------------------------------------------------------------
/doc/html/ftv2link.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2link.png
--------------------------------------------------------------------------------
/doc/html/ftv2mnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2mnode.png
--------------------------------------------------------------------------------
/doc/html/ftv2node.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2node.png
--------------------------------------------------------------------------------
/doc/html/ftv2pnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2pnode.png
--------------------------------------------------------------------------------
/platform/msvc/TriX.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/platform/msvc/TriX.gif
--------------------------------------------------------------------------------
/plugins/TriX_XML/xml.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/plugins/TriX_XML/xml.c
--------------------------------------------------------------------------------
/tools/arm/cygwin1.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/cygwin1.dll
--------------------------------------------------------------------------------
/tools/arm/objcopy.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/objcopy.exe
--------------------------------------------------------------------------------
/tools/arm/objdump.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/objdump.exe
--------------------------------------------------------------------------------
/doc/html/ftv2lastnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2lastnode.png
--------------------------------------------------------------------------------
/doc/html/ftv2vertline.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2vertline.png
--------------------------------------------------------------------------------
/platform/msvc/icon1.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/platform/msvc/icon1.ico
--------------------------------------------------------------------------------
/plugins/TriX_FATe/fat.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/plugins/TriX_FATe/fat.c
--------------------------------------------------------------------------------
/support/te_shell_v2.fia:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/support/te_shell_v2.fia
--------------------------------------------------------------------------------
/tools/arm/cygiconv-2.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/cygiconv-2.dll
--------------------------------------------------------------------------------
/tools/arm/cygintl-2.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/cygintl-2.dll
--------------------------------------------------------------------------------
/tools/arm/cygintl-3.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/cygintl-3.dll
--------------------------------------------------------------------------------
/tools/arm/gcc-arm-elf.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/gcc-arm-elf.exe
--------------------------------------------------------------------------------
/tools/c2html.src/INSTALL:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/c2html.src/INSTALL
--------------------------------------------------------------------------------
/tools/dialog.src/po/cs.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/cs.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/el.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/el.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/es.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/es.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/et.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/et.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/fr.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/fr.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/ga.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/ga.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/hr.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/hr.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/hu.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/hu.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/ja.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/ja.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/pl.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/pl.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/pt.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/pt.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/sv.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/sv.po
--------------------------------------------------------------------------------
/tools/dialog.src/po/tr.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/tr.po
--------------------------------------------------------------------------------
/doc/html/ftv2folderopen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2folderopen.png
--------------------------------------------------------------------------------
/doc/html/ftv2mlastnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2mlastnode.png
--------------------------------------------------------------------------------
/doc/html/ftv2plastnode.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2plastnode.png
--------------------------------------------------------------------------------
/include/treenode_seer.h:
--------------------------------------------------------------------------------
1 |
2 | typedef void t_treenode;
3 |
4 | // INSERT_DECLARATIONS
5 |
6 |
--------------------------------------------------------------------------------
/tools/arm/cygncurses-8.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/cygncurses-8.dll
--------------------------------------------------------------------------------
/tools/arm/cygreadline6.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/arm/cygreadline6.dll
--------------------------------------------------------------------------------
/doc/html/ftv2folderclosed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/doc/html/ftv2folderclosed.png
--------------------------------------------------------------------------------
/platform/msvc/TriX_FATe/trix_plugin.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_FATe.txp"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
--------------------------------------------------------------------------------
/platform/msvc/TriX_XML/trix_plugin.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_XML.txp"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
--------------------------------------------------------------------------------
/platform/msvc/TriX_term/TriX_term.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_term"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
5 |
--------------------------------------------------------------------------------
/plugins/TriX_ARMada/compiler.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/plugins/TriX_ARMada/compiler.h
--------------------------------------------------------------------------------
/plugins/TriX_FATe/orig/fat.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/plugins/TriX_FATe/orig/fat.c
--------------------------------------------------------------------------------
/scripts/SE/find_free_space.trx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/scripts/SE/find_free_space.trx
--------------------------------------------------------------------------------
/tools/dialog.src/po/pt_BR.po:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/po/pt_BR.po
--------------------------------------------------------------------------------
/platform/msvc/TriX_ARMada/trix_plugin.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_ARMada.txp"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
--------------------------------------------------------------------------------
/platform/msvc/TriX_ARMulate/trix_ARMulate.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_ARMada"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
--------------------------------------------------------------------------------
/platform/msvc/TriX_DisARM/trix_plugin.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_DisARM.txp"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
--------------------------------------------------------------------------------
/platform/msvc/TriX_HWemu/trix_plugin.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_HWemu.txp"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/listing:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | while true
3 | do
4 | date
5 | ls -lrt
6 | sleep 1
7 | done
8 |
--------------------------------------------------------------------------------
/platform/msvc/TriX_Excellent/trix_plugin.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_Excellent.txp"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
--------------------------------------------------------------------------------
/platform/msvc/TriX_PPModify/trix_plugin.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_PPModify.txp"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
--------------------------------------------------------------------------------
/platform/msvc/TriX_Prodigize/trix_plugin.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_ARMada.txp"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
--------------------------------------------------------------------------------
/platform/msvc/TriX_fmttest/TriX_fmttest.def:
--------------------------------------------------------------------------------
1 | LIBRARY "TriX_fmttest"
2 | EXPORTS
3 | trix_plugin_info @1
4 |
5 |
--------------------------------------------------------------------------------
/plugins/TriX_PPModify/chunk_plmn.c:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/plugins/TriX_PPModify/chunk_plmn.c
--------------------------------------------------------------------------------
/tools/dialog.src/config.hin:
--------------------------------------------------------------------------------
1 | /*
2 | * The configure script expands this as a set of definitions
3 | */
4 | @DEFS@
5 |
--------------------------------------------------------------------------------
/run.sh:
--------------------------------------------------------------------------------
1 | export PATH=`pwd`/tools/arm:$PATH
2 | cd projects/fsig_upload
3 | rm *.o >/dev/null 2>&1
4 | make >err.log 2>&1
5 |
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/gnu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/gnu.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/kde.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/kde.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/www.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/www.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/xv.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/xv.png
--------------------------------------------------------------------------------
/scripts/k_compile_arm_c_files/cbus_asm.s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/scripts/k_compile_arm_c_files/cbus_asm.s
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/chat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/chat.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/clock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/clock.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/colors.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/colors.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/disk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/disk.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/editor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/editor.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/empty.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/file.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/file.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/folder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/folder.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/font.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/font.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/game.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/game.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/gimp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/gimp.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/gnome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/gnome.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/help.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/home.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/item.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/item.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/lock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/lock.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/mail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/mail.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/mouse.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/mouse.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/music.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/music.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/news.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/news.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/quit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/quit.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/sound.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/sound.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/system.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/system.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/themes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/themes.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/todo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/todo.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/viewer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/viewer.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window.png
--------------------------------------------------------------------------------
/tools/dialog.src/samples/msgbox4-eucjp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/samples/msgbox4-eucjp
--------------------------------------------------------------------------------
/tools/dialog.src/samples/testdata-8bit:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/tools/dialog.src/samples/testdata-8bit
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/static/UART.static:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/plugins/TriX_Prodigize/static/UART.static
--------------------------------------------------------------------------------
/plugins/TriX_term/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | gcc -fPIC -shared -D_REENTRANT -g -o ../trix_term.txp term.c -I../../include
4 |
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/disk-cd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/disk-cd.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/display.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/display.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/keyboard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/keyboard.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/modules.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/modules.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/network.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/network.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/printing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/printing.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/programs.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/programs.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/refresh.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/restart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/restart.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/science.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/science.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/terminal.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/terminal.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/unknown.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/unknown.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/utility.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/utility.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/windows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/windows.png
--------------------------------------------------------------------------------
/include/misc.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_MISC_H__
2 | #define __TRIX_MISC_H__
3 |
4 |
5 | t_workspace *get_workspace ( );
6 |
7 |
8 | #endif
9 |
--------------------------------------------------------------------------------
/platform/msvc/run.sh:
--------------------------------------------------------------------------------
1 | export PATH=`pwd`/tools/arm:$PATH
2 | cd projects/nand_dump
3 | rm *.o >/dev/null 2>&1
4 | make >err.log 2>&1
5 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/static/LOWCNTR.static:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/plugins/TriX_Prodigize/static/LOWCNTR.static
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/static/LOWDEV.static:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/plugins/TriX_Prodigize/static/LOWDEV.static
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/static/LOWFLASH.static:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/plugins/TriX_Prodigize/static/LOWFLASH.static
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/static/LOWMBUS.static:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/plugins/TriX_Prodigize/static/LOWMBUS.static
--------------------------------------------------------------------------------
/plugins/TriX_fmttest/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | gcc -fPIC -shared -D_REENTRANT -g -o ../trix_fmttest.txp fmttest.c -I../../include
4 |
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/amusement.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/amusement.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/calculator.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/calculator.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/cd-player.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/cd-player.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/choice-no.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/choice-no.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/choice-yes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/choice-yes.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/development.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/development.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/disk-floppy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/disk-floppy.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/folder-open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/folder-open.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/ghostview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/ghostview.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/information.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/information.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/monitoring.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/monitoring.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/multimedia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/multimedia.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-move.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-move.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/configuration.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/configuration.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/file-manager.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/file-manager.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/image-viewer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/image-viewer.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-close.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-delete.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-lower.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-lower.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-raise.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-raise.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-resize.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-resize.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-shade.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-shade.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-stick.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-stick.png
--------------------------------------------------------------------------------
/plugins/TriX_fmtBABE/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | gcc -fPIC -shared -D_REENTRANT -g -O0 -o ../trix_fmtBABE.txp fmtBABE.c -I../../include
4 |
5 |
--------------------------------------------------------------------------------
/plugins/TriX_fmtBADA/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | gcc -fPIC -shared -D_REENTRANT -g -O0 -o ../trix_fmtBADA.txp fmtBADA.c -I../../include
4 |
5 |
--------------------------------------------------------------------------------
/plugins/TriX_fmtCNT/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | gcc -fPIC -shared -D_REENTRANT -g -O0 -o ../trix_fmtCNT.txp fmtCNT.c -I../../include
4 |
5 |
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/image-processor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/image-processor.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/terminal-remote.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/terminal-remote.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/terminal-special.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/terminal-special.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-destroy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-destroy.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-iconify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-iconify.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-identify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-identify.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/window-maximize.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/window-maximize.png
--------------------------------------------------------------------------------
/src/ui-qt/icons/22x22-gartoon/word-processor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/g3gg0/TriX/master/src/ui-qt/icons/22x22-gartoon/word-processor.png
--------------------------------------------------------------------------------
/include/file_seer.h:
--------------------------------------------------------------------------------
1 |
2 | #define FILE_NORMAL 0x00
3 | #define FILE_DIFF 0x01
4 | #define FILE_DRYMODE 0x02
5 | #define FILE_DIRECTORY 0x04
6 |
--------------------------------------------------------------------------------
/scripts/g_test_elf.trx:
--------------------------------------------------------------------------------
1 |
2 | int g_test_elf ()
3 | {
4 | __segment_dump ( __stage_get_last(GetWorkspace()->fileinfo->stages)->segments );
5 | return 0;
6 | }
--------------------------------------------------------------------------------
/include/symbols_type.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_SYMBOLS_TYPE_H__
2 | #define __TRIX_SYMBOLS_TYPE_H__
3 |
4 |
5 | #define SYM_PTR 1
6 | #define SYM_CALL 2
7 |
8 |
9 |
10 | #endif
11 |
12 |
--------------------------------------------------------------------------------
/tools/header_definition/netrix.def:
--------------------------------------------------------------------------------
1 | char *(*get) ( char *url);
2 | t_fileinfo *(*open) ( const char *url);
3 | unsigned int (*check) ( char *url);
4 | unsigned int (*execute) ( char *url);
5 |
--------------------------------------------------------------------------------
/include/netrix_seer.h:
--------------------------------------------------------------------------------
1 |
2 | // INSERT_DECLARATIONS
3 |
4 | unsigned int NetrixExecute ( char *url ) { return __netrix_execute ( url ); }
5 | char *NetrixGet ( char *url ) { return __netrix_get ( url ); }
6 |
--------------------------------------------------------------------------------
/files.txt:
--------------------------------------------------------------------------------
1 | ***********************
2 | *special purpose files*
3 | ***********************
4 |
5 | TriX.cbp
6 | - Code::Blocks Project File (IDE)
7 | correct target output (path!!!) in that file before using
8 |
--------------------------------------------------------------------------------
/include/ppmodd_net.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_PPMODD_NET_H__
2 | #define __TRIX_PPMODD_NET_H__
3 |
4 |
5 | unsigned char* ppmodd_net_login ( unsigned char *username, unsigned char *password );
6 |
7 | #endif
8 |
--------------------------------------------------------------------------------
/projects/shared/coprocessor/coprocessor.c:
--------------------------------------------------------------------------------
1 |
2 | #include "base.h"
3 |
4 | /* this define will cause the functions to be defined, not just declared */
5 | #define __COPROCESSOR_DEFINE__
6 | #include "coprocessor.h"
7 |
8 |
--------------------------------------------------------------------------------
/tools/header_definition/mutex.def:
--------------------------------------------------------------------------------
1 | t_mutex *(*create) ( );
2 | unsigned int (*locked) ( t_mutex * mutex);
3 | void (*lock) ( t_mutex * mutex);
4 | void (*release) ( t_mutex * mutex);
5 | void (*unlock) ( t_mutex * mutex);
6 |
--------------------------------------------------------------------------------
/scripts/standalone/xml_test.trx:
--------------------------------------------------------------------------------
1 | #include trix
2 |
3 | #plugin trix_xml
4 | #include trix_xml
5 |
6 | int main ( )
7 | {
8 | say ( "ok\n" );
9 | __xml_bla ();
10 | __xml_connector_create( NULL );
11 | return E_OK;
12 | }
13 |
--------------------------------------------------------------------------------
/plugins/TriX_NokiaCrypt/Common.h:
--------------------------------------------------------------------------------
1 | #define BYTE unsigned char
2 | #define WORD unsigned short
3 | #define DWORD unsigned long
4 |
5 | WORD ReverseWORD( WORD data );
6 | void Str2Hex( BYTE *dst, BYTE *src );
7 | void Hex2Str( BYTE *dst, BYTE *src );
8 |
9 |
--------------------------------------------------------------------------------
/scripts/standalone/maxheap_test.trx:
--------------------------------------------------------------------------------
1 | #title "max_heap option test"
2 | #author "krisha"
3 |
4 | #include trix
5 |
6 | int main ()
7 | {
8 | int i = 0;
9 |
10 | while ( malloc ( 1024 ) && i++ < 1024 * 300 );
11 | return E_OK;
12 | }
13 |
--------------------------------------------------------------------------------
/scripts/standalone/trixcrypt_format.trx:
--------------------------------------------------------------------------------
1 | #title "TriXCrypT test"
2 | #author "g3gg0"
3 |
4 | #include trix
5 | #include stdio
6 |
7 |
8 | int main ()
9 | {
10 | __file_format ( GetWorkspace()->fileinfo, "TRIXCRYPT" );
11 | return E_OK;
12 | }
13 |
--------------------------------------------------------------------------------
/scripts/standalone/ui_menu_test.trx:
--------------------------------------------------------------------------------
1 | #title "Dump MemMaps"
2 | #author "g3gg0"
3 |
4 | #include trix
5 | int main ()
6 | {
7 |
8 | char *menu[] = { "one", "two", NULL };
9 |
10 | __ui_dlg_menu ( "test", menu, 0 );
11 | return E_OK;
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/include/main.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_MAIN_H__
2 | #define __TRIX_MAIN_H__
3 |
4 | #include "defines.h"
5 |
6 | unsigned int main_setup ( void );
7 | unsigned int main_cleanup ( void );
8 |
9 | unsigned int trix_run ( char *script, char *flash );
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/include/mem_seer.h:
--------------------------------------------------------------------------------
1 |
2 |
3 | typedef struct s_mem_list
4 | {
5 | STRUCT_HEADER_LIST(t_mem_list);
6 | unsigned int bytes;
7 | unsigned int address;
8 | char *caller;
9 | char *type;
10 | int line;
11 | int freed;
12 | } t_mem_list;
13 |
14 |
--------------------------------------------------------------------------------
/src/win32/example/SampleDLL/SampleDLL.h:
--------------------------------------------------------------------------------
1 | extern "C" {
2 |
3 | #ifdef SAMPLEDLL_EXPORTS
4 | #define SAMPLEDLL_API __declspec(dllexport)
5 | #else
6 | #define SAMPLEDLL_API __declspec(dllimport)
7 | #endif
8 |
9 | SAMPLEDLL_API int addNumbers(int a, int b);
10 |
11 | }
--------------------------------------------------------------------------------
/include/segment_seer.h:
--------------------------------------------------------------------------------
1 |
2 | typedef struct s_segment {
3 | STRUCT_HEADER_LIST(t_segment);
4 | char *name;
5 | unsigned int start;
6 | unsigned int end;
7 | unsigned int length;
8 | unsigned char *data;
9 | void *priv;
10 | } t_segment;
11 |
12 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/temp/examples/mfc_example/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // mfc_example.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "stdafx.h"
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/scripts/standalone/fmttest_test.trx:
--------------------------------------------------------------------------------
1 | #title "ARMada test"
2 | #author "g3gg0"
3 | #plugin "trix_fmttest"
4 |
5 | #include trix
6 | #include stdio
7 |
8 |
9 | int main ()
10 | {
11 | SetDebugLevel ( 0xFF );
12 | WorkspaceStartup ( "c:\\test.txt" );
13 | return E_OK;
14 |
15 | }
16 |
--------------------------------------------------------------------------------
/scripts/standalone/pause.trx:
--------------------------------------------------------------------------------
1 | #title "wait for enter"
2 | #include trix
3 |
4 | int main ( )
5 | {
6 | char *buffer = NULL;
7 | say ( "wait for enter key; you can dump via workspace so long... ;-)\n" );
8 | UiDlgString ( "Just press enter if you're bored ;).", &buffer );
9 | }
10 |
--------------------------------------------------------------------------------
/scripts/bada/pause.trx:
--------------------------------------------------------------------------------
1 | // load plugin
2 | #plugin trix_fmtbada
3 |
4 | // include headers
5 | #include trix
6 | #include trix_fmtbada
7 | #include "scripts/bada/bada_defs.trx"
8 |
9 | int main ( )
10 | {
11 | BADA_INIT // init bada workspace
12 |
13 | pause ( );
14 | return E_OK;
15 | }
16 |
--------------------------------------------------------------------------------
/scripts/k_compile_arm_c_files/makefile:
--------------------------------------------------------------------------------
1 |
2 | all: dump_objects.o rotate_lcd.o dump_io.o pin_toggle.o fonts.o lcd.o k_own_ati_handler.o k_lcd_irq_count.o
3 |
4 |
5 | %.o: %.s
6 | as -mthumb -EB -o $@ $^
7 |
8 | %.o: %.c
9 | gcc -mthumb -Os -fno-common -mbig-endian -c $^
10 |
11 |
--------------------------------------------------------------------------------
/include/file_io_seer.h:
--------------------------------------------------------------------------------
1 |
2 | typedef struct s_fileinfo {
3 | STRUCT_HEADER_LIST(t_fileinfo);
4 | char *filename;
5 | char *path;
6 | t_stage *stages;
7 | t_stage *stages_org;
8 | t_stage *stages_mod;
9 | void *priv;
10 | unsigned int options;
11 | } t_fileinfo;
12 |
13 |
--------------------------------------------------------------------------------
/include/fmt_trixcrypt.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_FMT_TRIXCRYPT_H__
2 | #define __TRIX_FMT_TRIXCRYPT_H__
3 |
4 |
5 | typedef struct s_trixcrypt_priv t_trixcrypt_priv;
6 | struct s_trixcrypt_priv
7 | {
8 | STRUCT_HEADER;
9 | t_crypt_key encrypt_key;
10 | t_crypt_key decrypt_key;
11 | };
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/include/fmt_epoc.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_FMT_EPOC_H__
2 | #define __TRIX_FMT_EPOC_H__
3 |
4 | typedef struct s_epoc_priv t_epoc_priv;
5 | struct s_epoc_priv
6 | {
7 | STRUCT_HEADER;
8 | E32ImageHeader original_header;
9 | E32ImageHeaderv2 original_header_v2;
10 | int version;
11 |
12 | };
13 |
14 |
15 |
16 | #endif
17 |
--------------------------------------------------------------------------------
/include/netrix.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_NETRIX_H__
2 | #define __TRIX_NETRIX_H__
3 |
4 | #include "trixplug_netrix.h"
5 |
6 |
7 | char *netrix_get ( char *url );
8 | unsigned int netrix_execute ( char *url );
9 | unsigned int netrix_check ( char *url );
10 | t_fileinfo *netrix_open ( const char *url );
11 |
12 | #endif
13 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/copifuncs/copi.sendifm2:
--------------------------------------------------------------------------------
1 | ${SITE} ${BATCHFILE}
2 |
3 | echo "${PROGNAME}: [$$] end ${SITE}"
4 | done
5 |
6 | case ${HAVE_UUSTAT} in
7 | DONT)
8 | rm -f ${TEMP}
9 | ;;
10 | esac
11 |
12 | ## Remove the lock file.
13 | rm -f ${LOCK}
14 |
15 | echo "${PROGNAME}: [$$] end `date`"
16 |
--------------------------------------------------------------------------------
/plugins/TriX_UFS/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES=""
4 | OUT="../trix_UFS.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc -fPIC -g -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -g -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/doc/html/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | TriX
4 |
8 |
9 |
--------------------------------------------------------------------------------
/plugins/TriX_IPShell/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="IPShell"
4 | OUT="../trix_ipshell.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc -fPIC -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/plugins/TriX_NokiaCrypt/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES=""
4 | OUT="../trix_UFS.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc -fPIC -g -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -g -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/plugins/TriX_Excellent/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="excellent"
4 | OUT="../trix_excellent.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc -fPIC -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/plugins/TriX_DisARM/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="arm-dis disarm"
4 | OUT="../trix_disarm.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc -fPIC -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/plugins/TriX_PPModify/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="ppmodify"
4 | OUT="../trix_ppmodify.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc -fPIC -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/tools/header_definition/trixcrypt.def:
--------------------------------------------------------------------------------
1 | unsigned int (*alloc_priv) ( t_stage * stage);
2 | unsigned int (*set_cryptkeys) ( t_crypt_key * encrypt_key, t_crypt_key * decrypt_key);
3 | unsigned int (*set_decryptkey) ( t_crypt_key * key);
4 | unsigned int (*set_encryptkey) ( t_crypt_key * key);
5 | unsigned int (*copy_cryptkey) ( t_crypt_key * dst, t_crypt_key * src);
6 |
--------------------------------------------------------------------------------
/plugins/TriX_ARMada/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="armada code compiler"
4 | OUT="../trix_armada.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc -fPIC -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/include/nokia_seer.h:
--------------------------------------------------------------------------------
1 |
2 |
3 | // INSERT_DECLARATIONS
4 | unsigned int NokiaCreateFunc ( t_function2 *func, unsigned int offset ) { return __nokia_create_func2 ( GetWorkspace(), func, offset, 0 ); }
5 | unsigned int NokiaCreateFuncRebased ( t_function2 *func, unsigned int offset, unsigned int base ) { return __nokia_create_func2 ( GetWorkspace(), func, offset, base ); }
6 |
7 |
--------------------------------------------------------------------------------
/plugins/TriX_FATe/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="fat fate fattime"
4 | OUT="../trix_fate.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc -g -O0 -fPIC -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -D_REENTRANT -g -O0 -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/scripts/standalone/disarm_test.trx:
--------------------------------------------------------------------------------
1 | #title "DisARM test"
2 | #author "g3gg0"
3 | #plugin "trix_disarm"
4 |
5 | #include trix
6 | #include stdio
7 | #include trix_disarm
8 |
9 |
10 | int main ()
11 | {
12 | char buffer[256];
13 |
14 | __disarm_address ( trix_workspace, (char*)&buffer, 0x01000100, 0 );
15 |
16 | printf ( buffer );
17 | return E_OK;
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/fselect-stdout:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: fselect-stdout 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | FILE=`$DIALOG --stdout --title "Please choose a file" --fselect $HOME/ 14 48`
6 |
7 | case $? in
8 | 0)
9 | echo "\"$FILE\" chosen";;
10 | 1)
11 | echo "Cancel pressed.";;
12 | 255)
13 | echo "Box closed.";;
14 | esac
15 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/fselect2-stdout:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: fselect2-stdout 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | FILE=`$DIALOG --stdout --title "Please choose a file" --fselect $HOME/ 0 0`
6 |
7 | case $? in
8 | 0)
9 | echo "\"$FILE\" chosen";;
10 | 1)
11 | echo "Cancel pressed.";;
12 | 255)
13 | echo "Box closed.";;
14 | esac
15 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/temp/examples/win32_example/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | // stdafx.cpp : source file that includes just the standard includes
2 | // win32_example.pch will be the pre-compiled header
3 | // stdafx.obj will contain the pre-compiled type information
4 |
5 | #include "stdafx.h"
6 |
7 | // TODO: reference any additional headers you need in STDAFX.H
8 | // and not in this file
9 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/copifuncs/copi.ifpoll1:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # ver 0.7
3 | # ifpoll, poll my boss node or the node given as argument 1
4 | #
5 | # i start this shell script every day by crond, but you can
6 | # start it also by hand :) start it as the owner of ifcico.
7 | # rasca, berlin 1993 (Rasca Gmelch, 2:2410/305.4)
8 | #
9 | # where "ifcico" and "ifpack" reside
10 |
--------------------------------------------------------------------------------
/plugins/TriX_NokiaCrypt/3way_algo.h:
--------------------------------------------------------------------------------
1 | #define UINT32 unsigned long
2 | #define UINT16 unsigned short
3 | #define UINT8 unsigned char
4 |
5 | void DecodeMSID( UINT8 *pmsid );
6 | void EncodeFAID( UINT8 *pfaid, UINT8 *pmsid );
7 | void DecodeIMEI( UINT8 *pimei, UINT8 *pmsid );
8 | void DecodeFAID( UINT8 *pfaid, UINT8 *pmsid );
9 | void DecodeSPLock( UINT8 *pimei, UINT8 *pmsid );
10 |
--------------------------------------------------------------------------------
/scripts/standalone/blocking_test.trx:
--------------------------------------------------------------------------------
1 | #title "ARMada test"
2 | #author "g3gg0"
3 | #plugin "trix_armada"
4 |
5 | #include trix
6 | #include stdio
7 | #include trix_armada
8 |
9 |
10 |
11 | int main ()
12 | {
13 | int num = 0x01000000;
14 |
15 | while ( 1 )
16 | {
17 | printf ( "%02X", GetByte (num++) );
18 | if ( num % 0x10 == 0 )
19 | printf ( "\n" );
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/tailbox:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: tailbox 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | ./killall listing
6 | ./listing >listing.out &
7 |
8 | $DIALOG --title "TAIL BOX" \
9 | --tailbox listing.out 24 70
10 |
11 | case $? in
12 | 0)
13 | echo "OK";;
14 | 255)
15 | echo "ESC pressed.";;
16 | esac
17 |
18 | ./killall listing
19 |
--------------------------------------------------------------------------------
/cvs2git.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo "Processing directory $1"
4 |
5 | FILES=`cat $1/CVS/Entries | grep "^/" | cut -d / -f 2`
6 | DIRS=`cat $1/CVS/Entries | grep "^D/" | cut -d / -f 2`
7 |
8 | for FILE in $FILES; do
9 | echo " Adding $FILE";
10 | git add $1/$FILE;
11 | done
12 |
13 | for DIR in $DIRS; do
14 | echo " Processing $DIR";
15 | ./cvs2git.sh $1/$DIR;
16 | done
17 |
--------------------------------------------------------------------------------
/include/e32image_deflate.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_E32IMAGE_DEFLATE_H__
2 | #define __TRIX_E32IMAGE_DEFLATE_H__
3 |
4 | #define MAX_FIXED_LENGTH 27
5 | #define LITERALS_COUNT 285
6 | #define DISTANCES_COUNT 44
7 | #define END_OF_STREAM 0x11C
8 |
9 | unsigned char *e32image_deflate_decompress (unsigned char *data, unsigned int data_length, unsigned int unpacked_length );
10 |
11 | #endif
12 |
--------------------------------------------------------------------------------
/scripts/SE/get_fw_version.trx:
--------------------------------------------------------------------------------
1 | // load plugin
2 | #plugin trix_fmtbabe
3 |
4 | // include headers
5 | #include trix
6 | #include trix_fmtbabe
7 | #include "scripts/SE/se_babe_defs.trx"
8 |
9 | int main ()
10 | {
11 | BABE_INIT // init babe workspace
12 |
13 | printf ( "Firmware: %s\n", GetName () );
14 | printf ( "Platform: %s\n", GetPlatform () );
15 |
16 | return E_OK;
17 | }
18 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/pause:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: pause 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | $DIALOG --title "PAUSE" --pause "Hi, this is a pause widget" 20 70 10
6 |
7 | retval=$?
8 |
9 | case $retval in
10 | 0)
11 | echo "Timeout expired.";;
12 | 1)
13 | echo "Cancel pressed.";;
14 | *)
15 | echo "Unexpected return code: $retval";;
16 | esac
17 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/timebox2-stdout:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: timebox2-stdout 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | USERTIME=`$DIALOG --stdout --title "TIMEBOX" --timebox "Please set the time..." 0 0`
6 |
7 | case $? in
8 | 0)
9 | echo "Time entered: $USERTIME.";;
10 | 1)
11 | echo "Cancel pressed.";;
12 | 255)
13 | echo "Box closed.";;
14 | esac
15 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/calendar2-stdout:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: calendar2-stdout 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | USERDATE=`$DIALOG --stdout --title "CALENDAR" --calendar "Please choose a date..." 0 0`
6 |
7 | case $? in
8 | 0)
9 | echo "Date entered: $USERDATE.";;
10 | 1)
11 | echo "Cancel pressed.";;
12 | 255)
13 | echo "Box closed.";;
14 | esac
15 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/fselect2:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: fselect2 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | exec 3>&1
6 | FILE=`$DIALOG --title "Please choose a file" --fselect $HOME/ 0 0 2>&1 1>&3`
7 | code=$?
8 | exec 3>&-
9 |
10 | case $code in
11 | 0)
12 | echo "\"$FILE\" chosen";;
13 | 1)
14 | echo "Cancel pressed.";;
15 | 255)
16 | echo "Box closed.";;
17 | esac
18 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/timebox-stdout:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: timebox-stdout 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | USERTIME=`$DIALOG --stdout --title "TIMEBOX" --timebox "Please set the time..." 0 0 12 34 56`
6 |
7 | case $? in
8 | 0)
9 | echo "Time entered: $USERTIME.";;
10 | 1)
11 | echo "Cancel pressed.";;
12 | 255)
13 | echo "Box closed.";;
14 | esac
15 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/static/LOWMBUS.h:
--------------------------------------------------------------------------------
1 | /******************************************************************
2 | *
3 | * Prodigy low level MBUS implementation
4 | * B-phreaks Ltd,2004
5 | *
6 | ******************************************************************/
7 |
8 |
9 | bool ExecuteMbusCmd(UCHAR *CommandBytes,ULONG cmdsize,UCHAR *ReadBytes,ULONG *ReadCount);
10 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/calendar-stdout:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: calendar-stdout 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | USERDATE=`$DIALOG --stdout --title "CALENDAR" --calendar "Please choose a date..." 0 0 7 7 1981`
6 |
7 | case $? in
8 | 0)
9 | echo "Date entered: $USERDATE.";;
10 | 1)
11 | echo "Cancel pressed.";;
12 | 255)
13 | echo "Box closed.";;
14 | esac
15 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/gauge:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: gauge 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | PCT=10
6 | (
7 | while test $PCT != 100
8 | do
9 | echo "XXX"
10 | echo $PCT
11 | echo "The new\n\
12 | message ($PCT percent)"
13 | echo "XXX"
14 | PCT=`expr $PCT + 10`
15 | sleep 1
16 | done
17 | ) |
18 |
19 | $DIALOG --title "GAUGE" --gauge "Hi, this is a gauge widget" 20 70 0
20 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/killall:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: killall 1521 2006-06-28 13:53:39Z geggo $
3 | # Linux has a program that does this correctly.
4 | for prog in $*
5 | do
6 | pid=`ps -a |fgrep $prog |fgrep -v fgrep|sed -e 's/^[ ]*//' -e 's/ .*//' `
7 | if test -n "$pid" ; then
8 | echo killing pid=$pid, $prog
9 | kill -1 $pid || \
10 | kill -15 $pid || \
11 | kill -9 $pid
12 | fi
13 | done
14 |
--------------------------------------------------------------------------------
/plugins/TriX_ARMulate/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="armulate emu"
4 | OUT="../trix_armulate.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | rm $OUT
10 |
11 | for file in $FILES; do
12 | rm ${file}.o
13 | gcc -ggdb -fPIC -c $file.c -o $file.o -I../../include -D $DEFINES
14 | OBJ+="${file}.o "
15 | done;
16 |
17 | gcc -ggdb -fPIC -shared -D_REENTRANT -g -o $OUT $OBJ
18 |
--------------------------------------------------------------------------------
/tools/dialog.src/po/POTFILES.in:
--------------------------------------------------------------------------------
1 | arrows.c
2 | buttons.c
3 | calendar.c
4 | checklist.c
5 | dialog.c
6 | dialog.h
7 | dlg_colors.h
8 | dlg_keys.c
9 | dlg_keys.h
10 | formbox.c
11 | fselect.c
12 | guage.c
13 | inputbox.c
14 | inputstr.c
15 | menubox.c
16 | mouse.c
17 | mousewget.c
18 | msgbox.c
19 | pause.c
20 | rc.c
21 | tailbox.c
22 | textbox.c
23 | timebox.c
24 | ui_getc.c
25 | util.c
26 | version.c
27 | yesno.c
28 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/gauge0:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: gauge0 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | PCT=10
6 | (
7 | sleep 1
8 | while test $PCT != 110
9 | do
10 | echo "XXX"
11 | echo $PCT
12 | echo "The new\n\
13 | message ($PCT percent)"
14 | echo "XXX"
15 | PCT=`expr $PCT + 10`
16 | sleep 1
17 | done
18 | ) |
19 |
20 | $DIALOG --title "GAUGE" --gauge "Hi, this is a gauge widget" 0 0 0
21 |
--------------------------------------------------------------------------------
/tools/header_definition/project.def:
--------------------------------------------------------------------------------
1 | t_project *(*load) ( char *file);
2 | t_project_files *(*get_file) ( t_project * p, unsigned int pos);
3 | unsigned int (*add_file) ( t_project * p, char *file);
4 | unsigned int (*del_file) ( t_project * p, unsigned int pos);
5 | unsigned int (*init) ( );
6 | unsigned int (*save) ( t_project * p, char *file);
7 | t_project *(*new) ( );
8 | unsigned int (*free) ( t_project * p);
9 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/gauge3:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: gauge3 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | (
6 | sleep 1
7 | for n in 0 1 2 3 4 5 4 3 2 1 0
8 | do
9 | PCT=`expr $n \* $n \* 4`
10 | echo "XXX"
11 | echo $PCT
12 | echo "The new\n\
13 | message ($PCT percent)"
14 | echo "XXX"
15 | sleep 1
16 | done
17 | ) |
18 |
19 | $DIALOG --title "GAUGE" --gauge "Hi, this is a gauge widget" 10 70 0
20 |
--------------------------------------------------------------------------------
/tools/c2html.src/Makefile:
--------------------------------------------------------------------------------
1 | TARGET = c2html
2 | prefix = /usr/local
3 | DESTDIR = $(prefix)/$(TARGET)
4 | BINDIR = $(prefix)/bin
5 | SOURCES =\
6 | main.c\
7 | convert.c\
8 | check_begin.c\
9 | check_end.c\
10 | error.c\
11 | print_info.c\
12 | write_header_footer.c
13 |
14 | INSTALL_FILES=\
15 | 'User manual.pdf'
16 |
17 | CFLAGS=-I. -O3 -Wall
18 | CC=gcc
19 |
20 | RMDIR=rmdir
21 |
22 | include makefile.default
23 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/timebox2:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: timebox2 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | exec 3>&1
6 | USERTIME=`$DIALOG --title "TIMEBOX" --timebox "Please set the time..." 0 0 2>&1 1>&3`
7 | code=$?
8 | exec 3>&-
9 |
10 | case $code in
11 | 0)
12 | echo "Time entered: $USERTIME.";;
13 | 1)
14 | echo "Cancel pressed.";;
15 | 255)
16 | echo "Box closed.";;
17 | esac
18 |
--------------------------------------------------------------------------------
/grx_image_to_excel.trx:
--------------------------------------------------------------------------------
1 | #include trix
2 | #plugin trix_excellent
3 |
4 | #include trix_excellent
5 |
6 | int main ( )
7 | {
8 | t_workspace *ws = NULL;
9 | char *buffer = __excellent_generate ( GetWorkspace(), 0, 1, 1024, 1024 );
10 |
11 |
12 | if ( !buffer )
13 | return 0;
14 |
15 | ws = WorkspaceCreateFileFromBuffer ( buffer, strlen ( buffer ) );
16 |
17 | __file_io_write ( "sheet.xml", ws->fileinfo );
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/calendar2:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: calendar2 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | exec 3>&1
6 | USERDATE=`$DIALOG --title "CALENDAR" --calendar "Please choose a date..." 0 0 2>&1 1>&3`
7 | code=$?
8 | exec 3>&-
9 |
10 | case $code in
11 | 0)
12 | echo "Date entered: $USERDATE.";;
13 | 1)
14 | echo "Cancel pressed.";;
15 | 255)
16 | echo "Box closed.";;
17 | esac
18 |
--------------------------------------------------------------------------------
/tools/header_definition/file_io.def:
--------------------------------------------------------------------------------
1 | t_fileinfo *(*create_empty) ( );
2 | t_fileinfo *(*open) ( const char *path, const char *filename);
3 | unsigned int (*release) ( t_fileinfo * fi);
4 | unsigned int (*release_all) ( t_fileinfo * fi);
5 | unsigned int (*write) ( const char *filename, const t_fileinfo * fi);
6 | int (*create_directory) ( char *dirname);
7 | t_fileinfo *(*open_directory) ( char *path, unsigned int *ret_entries);
8 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/timebox:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: timebox 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | exec 3>&1
6 | USERTIME=`$DIALOG --title "TIMEBOX" --timebox "Please set the time..." 0 0 12 34 56 2>&1 1>&3`
7 | code=$?
8 | exec 3>&-
9 |
10 | case $code in
11 | 0)
12 | echo "Time entered: $USERTIME.";;
13 | 1)
14 | echo "Cancel pressed.";;
15 | 255)
16 | echo "Box closed.";;
17 | esac
18 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/calendar:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: calendar 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | exec 3>&1
6 | USERDATE=`$DIALOG --title "CALENDAR" --calendar "Please choose a date..." 0 0 7 7 1981 2>&1 1>&3`
7 | code=$?
8 | exec 3>&-
9 |
10 | case $code in
11 | 0)
12 | echo "Date entered: $USERDATE.";;
13 | 1)
14 | echo "Cancel pressed.";;
15 | 255)
16 | echo "Box closed.";;
17 | esac
18 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/temp/examples/win32_example/win32_example.h:
--------------------------------------------------------------------------------
1 |
2 | #if !defined(AFX_WIN32_EXAMPLE_H__51C2010C_8A15_4EC6_909C_BE4F502C492A__INCLUDED_)
3 | #define AFX_WIN32_EXAMPLE_H__51C2010C_8A15_4EC6_909C_BE4F502C492A__INCLUDED_
4 |
5 | #if _MSC_VER > 1000
6 | #pragma once
7 | #endif // _MSC_VER > 1000
8 |
9 | #include "resource.h"
10 |
11 |
12 | #endif // !defined(AFX_WIN32_EXAMPLE_H__51C2010C_8A15_4EC6_909C_BE4F502C492A__INCLUDED_)
13 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/progress:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: progress 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | ls -1 >$tempfile
9 | (
10 | while true
11 | do
12 | read text
13 | test -z "$text" && break
14 | ls -ld "$text"
15 | sleep 1
16 | done <$tempfile
17 | ) |
18 |
19 | $DIALOG --title "PROGRESS" --progressbox 20 70
20 |
--------------------------------------------------------------------------------
/scripts/standalone/excellent_writer.trx:
--------------------------------------------------------------------------------
1 | #include trix
2 |
3 | #plugin trix_excellent
4 | #include trix_excellent
5 |
6 | int main ( )
7 | {
8 | t_workspace *ws = NULL;
9 | char *buffer = __excellent_generate ( GetWorkspace(), 0, 1, 1024, 1024 );
10 |
11 |
12 | if ( !buffer )
13 | return 0;
14 |
15 | ws = WorkspaceCreateFileFromBuffer ( buffer, strlen ( buffer ) );
16 |
17 | __file_io_write ( "excelsheet.xml", ws->fileinfo );
18 |
19 | }
20 |
--------------------------------------------------------------------------------
/include/fmt_pe.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_FMT_PE_H__
2 | #define __TRIX_FMT_PE_H__
3 |
4 |
5 | typedef struct s_pe_priv t_pe_priv;
6 | struct s_pe_priv
7 | {
8 | STRUCT_HEADER;
9 | t_dos_header hdr;
10 | t_image_nt_header32 hdr32;
11 | };
12 |
13 | typedef struct s_pe_sect_priv t_pe_sect_priv;
14 | struct s_pe_sect_priv
15 | {
16 | STRUCT_HEADER;
17 | unsigned int section_size;
18 | t_section_header header;
19 | };
20 |
21 | #endif /* __TRIX_FMT_PE_H__ */
22 |
--------------------------------------------------------------------------------
/plugins/TriX_DisARM/arm-dis.h:
--------------------------------------------------------------------------------
1 | #define JUMP_BIT 0x01
2 | #define CALL_BIT 0x02
3 | #define DATA_BIT 0x04
4 | #define XREF_BIT 0x08
5 | #define RET_BIT 0x10
6 | #define PUSH_BIT 0x20
7 | #define VAL_BIT 0x40
8 |
9 | #define ADDR_MASK (JUMP_BIT | CALL_BIT)
10 |
11 | typedef struct _tagINFO {
12 | unsigned int mask;
13 | unsigned int jump_addr;
14 | unsigned int data_addr;
15 | unsigned int xref_addr;
16 | unsigned int value;
17 | } INFO;
18 |
19 |
--------------------------------------------------------------------------------
/include/mutex.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_MUTEX_H__
2 | #define __TRIX_MUTEX_H__
3 |
4 | typedef unsigned int t_mutex;
5 | #define MUTEX_UNLOCKED 0
6 | #define MUTEX_LOCKED 1
7 |
8 | #include "trixplug_mutex.h"
9 |
10 | t_mutex *mutex_create ( );
11 | void mutex_release ( t_mutex *mutex );
12 | void mutex_lock ( t_mutex *mutex );
13 | unsigned int mutex_locked ( t_mutex *mutex );
14 | void mutex_unlock ( t_mutex *mutex );
15 |
16 |
17 |
18 | #endif
19 |
--------------------------------------------------------------------------------
/scripts/standalone/compile_example/example.c:
--------------------------------------------------------------------------------
1 |
2 | volatile void (*func) ( unsigned int R0, unsigned int R1, unsigned int R2, unsigned int R3 );
3 |
4 | unsigned char volatile *addr = 0xFFFF0000;
5 |
6 | void example_function ( )
7 | {
8 | int i = 1000;
9 |
10 | while ( i )
11 | i--;
12 |
13 | addr[0] = 1;
14 | // func ( 1,2,3,4 );
15 |
16 | return;
17 | }
18 |
19 | int main ( )
20 | {
21 | func = 0xA00DC044;
22 | example_function ();
23 | return 0;
24 | }
--------------------------------------------------------------------------------
/scripts/standalone/options_test.trx:
--------------------------------------------------------------------------------
1 |
2 | #title "options test"
3 | #author "g3gg0"
4 |
5 | #include trix
6 | #include stdio
7 | #include stdlib
8 |
9 | unsigned char *teststring = "just a test?";
10 | int testbool = 0;
11 |
12 |
13 | OPT_BEGIN
14 | OPTION( OPT_BOOL, "Bool Test Variable", "testbool", &testbool )
15 | OPTION( OPT_STR, "String Test Variable", "teststring", &teststring )
16 | OPT_FINISH
17 |
18 | int main ( )
19 | {
20 | printf ( "jaja\n" );
21 | }
--------------------------------------------------------------------------------
/tools/header_definition/symbols.def:
--------------------------------------------------------------------------------
1 | t_symbols *(*get) ( t_stage * stage, const char *name);
2 | unsigned int (*add) ( t_stage * stage, const char *name, const int type, const char *data);
3 | unsigned int (*count) ( t_stage * stage, const int type);
4 | unsigned int (*free_all) ( t_stage * stage);
5 | unsigned int (*get_address) ( t_stage * stage, const char *name);
6 | unsigned int (*remove) ( t_stage * stage, const char *name);
7 | void (*dump) ( t_stage * stage);
8 |
--------------------------------------------------------------------------------
/support/makefile:
--------------------------------------------------------------------------------
1 |
2 | all: dynamic_code.le.o dynamic_code.be.o timer_trace.le.o timer_trace.be.o
3 |
4 | %.le.o: %.s
5 | as -mthumb -EB -o $@ $^
6 |
7 | %.be.o: %.s
8 | as -mthumb -EL -o $@ $^
9 |
10 | %.le.o: %.c
11 | gcc.exe -mthumb -Os -fno-common -mlittle-endian -c $^ -o $@
12 |
13 | %.be.o: %.c
14 | gcc.exe -mthumb -Os -fno-common -mbig-endian -c $^ -o $@
15 |
16 | %.o: %.c
17 | gcc.exe -mthumb -Os -fno-common -mbig-endian -c $^ -o $@
18 |
19 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="prodigize interface"
4 | OUT="../trix_prodigize.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ="static/LOWCNTR.static static/LOWDEV.static static/LOWFLASH.static static/LOWMBUS.static static/UART.static "
8 |
9 | for file in $FILES; do
10 | gcc -fPIC -g -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -g -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/plugins/TriX_XML/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="mxml_attribute mxml_document mxml_error mxml_file mxml_index mxml_iterator mxml_node mxml_output mxml_path mxml_refil mxml_sgs xml"
4 | OUT="../trix_xml.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc-3.4 -fPIC -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ="${OBJ}${file}.o "
12 | done;
13 |
14 | gcc-3.4 -fPIC -shared -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/msgbox:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: msgbox 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | $DIALOG --title "MESSAGE BOX" --clear \
6 | --msgbox "Hi, this is a simple message box. You can use this to \
7 | display any message you like. The box will remain until \
8 | you press the ENTER key." 10 41
9 |
10 | case $? in
11 | 0)
12 | echo "OK";;
13 | 255)
14 | echo "ESC pressed.";;
15 | esac
16 |
--------------------------------------------------------------------------------
/plugins/TriX_ARMada/error.h:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | char *errors [MAX] = {
5 | "Unknown Error",
6 | "Unknown Opcode",
7 | "Missing Space after opcode",
8 | "Wrong Parameter Type",
9 | "Wrong code alignment",
10 | "Wrong data alignment",
11 | "Invalid Parameter (too high/low)",
12 | "Invalid Parameter (target alignment doesn't fit)",
13 | "Distance to label too short",
14 | "Distance to label too long",
15 | "Invalid Register",
16 | "Unknown Register",
17 | NULL
18 | };
19 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/progress2:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: progress2 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | ls -1 >$tempfile
9 | (
10 | while true
11 | do
12 | read text
13 | test -z "$text" && break
14 | ls -ld "$text"
15 | sleep 1
16 | done <$tempfile
17 | ) |
18 |
19 | $DIALOG --title "PROGRESS" --progressbox "This is a detailed description\nof the progress-box." 20 70
20 |
--------------------------------------------------------------------------------
/plugins/TriX_ARMulate/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Developer Studio generated include file.
3 | // Used by Skript1.rc
4 | //
5 |
6 | // Next default values for new objects
7 | //
8 | #ifdef APSTUDIO_INVOKED
9 | #ifndef APSTUDIO_READONLY_SYMBOLS
10 | #define _APS_NEXT_RESOURCE_VALUE 101
11 | #define _APS_NEXT_COMMAND_VALUE 40001
12 | #define _APS_NEXT_CONTROL_VALUE 1000
13 | #define _APS_NEXT_SYMED_VALUE 101
14 | #endif
15 | #endif
16 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/rotated-data:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: rotated-data 1521 2006-06-28 13:53:39Z geggo $
3 | # Rotate the second parameter's data by the given shift count.
4 | if test $# != 0
5 | then
6 | case $1 in
7 | [1-9]*)
8 | left=$1
9 | next=`expr $left + 1`
10 | shift 1
11 | ;;
12 | *)
13 | left=1
14 | next=2
15 | ;;
16 | esac
17 | char=`echo "$@" | cut -b -${left}`
18 | data=`echo "$@" | cut -b ${next}-`
19 |
20 | printf "%s%s\n" $data $char
21 | else
22 | echo
23 | fi
24 |
--------------------------------------------------------------------------------
/include/stage_seer.h:
--------------------------------------------------------------------------------
1 |
2 | typedef struct s_stage_info {
3 | STRUCT_HEADER_LIST(t_stage_info);
4 | } t_stage_info;
5 |
6 | typedef struct s_stage {
7 | STRUCT_HEADER_LIST(t_stage);
8 | char *name;
9 | char *type;
10 | char *parser;
11 | unsigned int length;
12 | t_segment *segments;
13 | void *priv;
14 | } t_stage;
15 |
16 | #define S_MODIFIED 0x0001
17 | #define S_WORKSPACE 0x0002
18 | #define S_SYNCBASE 0x0004
19 | #define S_SAVESTAGE 0x0008
20 |
21 |
22 |
--------------------------------------------------------------------------------
/include/trixcrypt.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_TRIXCRYPT_H__
2 | #define __TRIX_TRIXCRYPT_H__
3 |
4 |
5 | unsigned int trixcrypt_set_decryptkey ( t_crypt_key *key );
6 | unsigned int trixcrypt_set_encryptkey ( t_crypt_key *key );
7 | unsigned int trixcrypt_alloc_priv ( t_stage *stage );
8 | unsigned int trixcrypt_set_cryptkeys ( t_crypt_key *encrypt_key, t_crypt_key *decrypt_key );
9 | unsigned int trixcrypt_copy_cryptkey ( t_crypt_key *dst, t_crypt_key *src );
10 |
11 | #include "trixplug_trixcrypt.h"
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/plugins/TriX_HWemu/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="hw_accif hw_accpll hw_brain hw_cbusc hw_cbus_devices hw_ctsi hw_dspmif hw_dsppll hw_ebusc hwemu hw_flash hw_fsig hw_lead3mmi hw_mcupll hw_mfi hw_osmo hw_pup hw_simif hw_sti hw_testif hw_uif"
4 | OUT="../trix_hwemu.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc -fPIC -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/plugins/TriX_HWemuEOS/build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | FILES="hw_accif hw_accpll hw_brain hw_cbusc hw_cbus_devices hw_ctsi hw_dspmif hw_dsppll hw_ebusc hwemu hw_flash hw_fsig hw_lead3mmi hw_mcupll hw_mfi hw_osmo hw_pup hw_simif hw_sti hw_testif hw_uif"
4 | OUT="../trix_hwemu.txp"
5 | DEFINES="TRIXPLUG_MODE"
6 |
7 | OBJ=""
8 |
9 | for file in $FILES; do
10 | gcc -fPIC -c $file.c -o $file.o -I../../include -D $DEFINES
11 | OBJ+="${file}.o "
12 | done;
13 |
14 | gcc -fPIC -shared -D_REENTRANT -g -o $OUT $OBJ
15 |
--------------------------------------------------------------------------------
/include/symbols_seer.h:
--------------------------------------------------------------------------------
1 |
2 | #define SYM_PTR 1
3 | #define SYM_CALL 2
4 |
5 | typedef struct s_symbols
6 | {
7 | STRUCT_HEADER_LIST(t_symbols);
8 | char *name;
9 | int type;
10 | char *data;
11 | } t_symbols;
12 |
13 | // INSERT_DECLARATIONS
14 |
15 | unsigned int SymbolAdd ( const char *name, const int type, const char *data ) { return __symbols_add ( GetWorkStage(0), name, type, data ); }
16 | unsigned int SymbolGetInt ( const char *name ) { return __symbols_get_address ( GetWorkStage(0), name ); }
17 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/fselect1-stdout:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: fselect1-stdout 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | FILE=$HOME
6 | for n in .cshrc .profile .bashrc
7 | do
8 | if test -f $HOME/$n ; then
9 | FILE=$HOME/$n
10 | break
11 | fi
12 | done
13 |
14 | FILE=`$DIALOG --stdout --title "Please choose a file" --fselect $FILE 14 48`
15 |
16 | case $? in
17 | 0)
18 | echo "\"$FILE\" chosen";;
19 | 1)
20 | echo "Cancel pressed.";;
21 | 255)
22 | echo "Box closed.";;
23 | esac
24 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/fselect:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: fselect 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | exec 3>&1
6 | FILE=`$DIALOG --title "Please choose a file" --fselect $HOME/ 14 48 2>&1 1>&3`
7 | code=$?
8 | exec 3>&-
9 |
10 | case $code in
11 | 0)
12 | echo "\"$FILE\" chosen";;
13 | 1)
14 | echo "Button 1 (Cancel) pressed";;
15 | 2)
16 | echo "Button 2 (Help) pressed";;
17 | 3)
18 | echo "Button 3 (Extra) pressed";;
19 | 255)
20 | echo "Box closed.";;
21 | esac
22 |
--------------------------------------------------------------------------------
/platform/msvc/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by TriX.rc
4 | //
5 | #define IDI_ICON1 102
6 |
7 | // Next default values for new objects
8 | //
9 | #ifdef APSTUDIO_INVOKED
10 | #ifndef APSTUDIO_READONLY_SYMBOLS
11 | #define _APS_NEXT_RESOURCE_VALUE 104
12 | #define _APS_NEXT_COMMAND_VALUE 40001
13 | #define _APS_NEXT_CONTROL_VALUE 1001
14 | #define _APS_NEXT_SYMED_VALUE 101
15 | #endif
16 | #endif
17 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/copifuncs/copi.trnrc:
--------------------------------------------------------------------------------
1 | TRNINIT="-x -e -X -F\" :> \""
2 | HIDELINE="^X-FTN"
3 | NEWSHEADER="Newsgroups: %(%F=^\$?%C:%F)
4 | Subject: %(%S=^\$?%\"\n\nSubject: \":%S)
5 | %(%R=^\$?:References: %R
6 | )Sender:
7 | Distribution: %(%i=^\$?%\"\nDistribution: \":%D)
8 | Organization: %o
9 | X-Comment-To: %f\n\n"
10 | ATTRIBUTION="%f writes:\n"
11 | YOUSAID="In article %i \n of newsgroup %C you write about \"%s\":\n"
12 | MAILCALL="(New Mail)"
13 | export NEWSHEADER HIDELINE TRNINIT ATTRIBUTION MAILCALL YOUSAID EDITOR
14 |
--------------------------------------------------------------------------------
/include/fmt_elf.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_FMT_ELF_H__
2 | #define __TRIX_FMT_ELF_H__
3 |
4 | typedef struct s_elf_priv t_elf_priv;
5 | struct s_elf_priv
6 | {
7 | STRUCT_HEADER;
8 | int hdr_str_offset;
9 | Elf32_Ehdr header;
10 | };
11 |
12 | typedef struct s_elf_prog_priv t_elf_prog_priv;
13 | struct s_elf_prog_priv
14 | {
15 | STRUCT_HEADER;
16 | Elf32_Phdr header;
17 | };
18 |
19 | typedef struct s_elf_sect_priv t_elf_sect_priv;
20 | struct s_elf_sect_priv
21 | {
22 | STRUCT_HEADER;
23 | Elf32_Shdr header;
24 | };
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/scripts/SE/pause.trx:
--------------------------------------------------------------------------------
1 | // load plugin
2 | #plugin trix_fmtbabe
3 |
4 | // include headers
5 | #include trix
6 | #include trix_fmtbabe
7 | #include "scripts/SE/se_babe_defs.trx"
8 |
9 | int pause ()
10 | {
11 | char *buffer = NULL;
12 | say ( "wait for enter key; you can dump via workspace so long... ;-)\n" );
13 | UiDlgString ( "Just press enter if you're bored ;).", &buffer );
14 | return E_OK;
15 | }
16 |
17 | int main ()
18 | {
19 | BABE_INIT // init babe workspace
20 |
21 | pause ();
22 | return E_OK;
23 | }
24 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/calendar3-stdout:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: calendar3-stdout 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | USERDATE=`$DIALOG --extra-button --extra-label "Hold" --help-button --stdout --title "CALENDAR" --calendar "Please choose a date..." 0 0 7 7 1981`
6 |
7 | case $? in
8 | 0)
9 | echo "Date entered: $USERDATE.";;
10 | 1)
11 | echo "Cancel pressed.";;
12 | 2)
13 | echo "Help pressed.";;
14 | 3)
15 | echo "Hold pressed.";;
16 | 255)
17 | echo "Box closed.";;
18 | esac
19 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/msgbox6:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: msgbox6 1521 2006-06-28 13:53:39Z geggo $
3 | # this differs from msgbox3 by making a window small enough to force scrolling.
4 | : ${DIALOG=dialog}
5 |
6 | width=35
7 | while test $width != 61
8 | do
9 | $DIALOG --title "MESSAGE BOX (width $width)" --clear \
10 | --msgbox "\
11 | a b c d e f g h j i j k l m n o p q r s t u v w x y z
12 | A B C D E F G H J I J K L M N O P Q R S T U V W X Y Z
13 | " 10 $width
14 | test $? = 255 && break
15 | width=`expr $width + 1`
16 | done
17 |
--------------------------------------------------------------------------------
/scripts/standalone/dump_memmap.trx:
--------------------------------------------------------------------------------
1 | #title "Dump MemMaps"
2 | #author "g3gg0"
3 |
4 | #include trix
5 |
6 | int dump_memmap ( )
7 | {
8 | t_memmap *m = trix_workspace->memmap;
9 |
10 | while ( m )
11 | {
12 | printf ( "----------------------\n" );
13 | printf ( "Start : 0x%08X\n", m->start );
14 | printf ( "End : 0x%08X\n", m->end );
15 | printf ( "Length: 0x%08X\n", m->length );
16 | m = (t_memmap*)m->next;
17 | }
18 |
19 | }
20 |
21 | int main ()
22 | {
23 |
24 | dump_memmap ( );
25 |
26 | return E_OK;
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/gauge0-input-fd:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: gauge0-input-fd 1521 2006-06-28 13:53:39Z geggo $
3 | # modified "gauge0" script to use "--input-fd" option.
4 | : ${DIALOG=dialog}
5 |
6 | exec 3<&0
7 | PCT=10
8 | (
9 | sleep 1
10 | while test $PCT != 110
11 | do
12 | echo "XXX"
13 | echo $PCT
14 | echo "The new\n\
15 | message ($PCT percent)"
16 | echo "XXX"
17 | PCT=`expr $PCT + 10`
18 | sleep 1
19 | done
20 | ) |
21 |
22 | $DIALOG --title "GAUGE" --input-fd 3 --gauge "Hi, this is a gauge widget" 0 0 0
23 |
24 | exec 3<&-
25 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/static/types.h:
--------------------------------------------------------------------------------
1 | // types
2 | //
3 | //
4 |
5 | typedef unsigned char UCHAR;
6 | typedef char CHAR;
7 | typedef unsigned int UINT;
8 | typedef int INT;
9 | typedef unsigned long ULONG;
10 | typedef long LONG;
11 | typedef unsigned short USHORT;
12 | typedef short SHORT;
13 | typedef unsigned char BOOL;
14 | typedef void VOID;
15 | #ifndef WIN32
16 | typedef int bool;
17 | #define false 0
18 | #define true 1
19 | #endif
20 |
21 | #define STATUS_SUCCESS 0
22 | #define STATUS_DATA_ERROR 1
23 |
--------------------------------------------------------------------------------
/scripts/standalone/fchk_info.trx:
--------------------------------------------------------------------------------
1 | #include trix
2 |
3 | int
4 | get_addresses ( )
5 | {
6 | printf ( "CS:%08X\n", GetWord ( 0x01000078 ) );
7 | printf ( "CC:%08X\n", GetWord ( 0x01000074 ) );
8 | printf ( "CV:%08X%08X\n", GetWord ( 0x0100006C ), GetWord ( 0x01000070 ) );
9 | printf ( "\n" );
10 |
11 | printf ( "Protected area: 0x%08X - 0x%08X\n", GetWord ( 0x01000078 ), GetWord ( 0x01000078 ) + GetWord ( 0x01000074 )*8 );
12 | return 1;
13 | }
14 |
15 |
16 |
17 | int main ( )
18 | {
19 |
20 | get_addresses ();
21 | }
22 |
--------------------------------------------------------------------------------
/tools/header_definition/file.def:
--------------------------------------------------------------------------------
1 | t_fileinfo *(*open) ( char *filename);
2 | unsigned int (*flush) ( t_fileinfo * fi);
3 | unsigned int (*flush_diff) ( t_stage * s, t_stage * d);
4 | unsigned int (*format) ( t_fileinfo * fi, char *format);
5 | unsigned int (*get_options) ( );
6 | unsigned int (*release) ( t_fileinfo * fi);
7 | unsigned int (*release_all) ( t_fileinfo * fi);
8 | unsigned int (*set_options) ( unsigned int options);
9 | unsigned int (*sync) ( t_fileinfo * fi);
10 | unsigned int (*write) ( char *filename, t_fileinfo * fi);
11 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/fselect1:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: fselect1 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | FILE=$HOME
6 | for n in .cshrc .profile .bashrc
7 | do
8 | if test -f $HOME/$n ; then
9 | FILE=$HOME/$n
10 | break
11 | fi
12 | done
13 |
14 | exec 3>&1
15 | FILE=`$DIALOG --title "Please choose a file" --fselect $FILE 14 48 2>&1 1>&3`
16 | code=$?
17 | exec 3>&-
18 |
19 | case $code in
20 | 0)
21 | echo "\"$FILE\" chosen";;
22 | 1)
23 | echo "Cancel pressed.";;
24 | 255)
25 | echo "Box closed.";;
26 | esac
27 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/calendar3:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: calendar3 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | exec 3>&1
6 | USERDATE=`$DIALOG --extra-button --extra-label "Hold" --help-button --title "CALENDAR" --calendar "Please choose a date..." 0 0 7 7 1981 2>&1 1>&3`
7 | code=$?
8 | exec 3>&-
9 |
10 | case $code in
11 | 0)
12 | echo "Date entered: $USERDATE.";;
13 | 1)
14 | echo "Cancel pressed.";;
15 | 2)
16 | echo "Help pressed.";;
17 | 3)
18 | echo "Hold pressed.";;
19 | 255)
20 | echo "Box closed.";;
21 | esac
22 |
--------------------------------------------------------------------------------
/scripts/standalone/armada_test.trx:
--------------------------------------------------------------------------------
1 | #title "ARMada test"
2 | #author "g3gg0"
3 | #plugin "trix_armada"
4 |
5 | #include trix
6 | #include stdio
7 | #include trix_armada
8 |
9 |
10 | int armada_inject_file ( char *file )
11 | {
12 | unsigned char *arm_code = NULL;
13 | t_workspace *arm_file = WorkspaceStartup ( file );
14 |
15 | if ( !arm_file )
16 | return E_FAIL;
17 |
18 | arm_code = strdup ( __v_get_str ( arm_file, 0x00 ) );
19 |
20 | return ARMada_compile ( arm_code, 1 );
21 | }
22 |
23 | int main ()
24 | {
25 | armada_inject_file ( "test.arm" );
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/tools/c2html.src/makefile.default:
--------------------------------------------------------------------------------
1 | OBJECTS=$(SOURCES:.c=.o)
2 | INSTALLFILES=\
3 | $(TARGET)\
4 | $(INSTALL_FILES)\
5 |
6 | all: $(TARGET)
7 |
8 | cc:
9 | $(MAKE) CC=cc \
10 | all
11 |
12 | clean:
13 | $(RM) $(TARGET) $(OBJECTS)
14 |
15 | $(DESTDIR):
16 | mkdir $(DESTDIR)
17 |
18 | $(TARGET): $(OBJECTS)
19 | $(CC) -o $@ $(OBJECTS)
20 |
21 | install: $(TARGET) $(DESTDIR)
22 | cp $(INSTALLFILES) $(DESTDIR)
23 | ln -f $(DESTDIR)/$(TARGET) $(BINDIR)/$(TARGET)
24 |
25 | uninstall:
26 | $(RM) $(DESTDIR)/*
27 | $(RMDIR) $(DESTDIR)
28 | $(RM) $(BINDIR)/$(TARGET)
29 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/checklist9:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: checklist9 1521 2006-06-28 13:53:39Z geggo $
3 | # "checklist8" using --file
4 | : ${DIALOG=dialog}
5 |
6 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
7 | trap "rm -f $tempfile" 0 1 2 5 15
8 |
9 | $DIALOG --file checklist9.txt 2>$tempfile
10 |
11 | retval=$?
12 |
13 | choice=`cat $tempfile`
14 | case $retval in
15 | 0|2)
16 | echo "'$choice' chosen.";;
17 | 1)
18 | echo "Cancel pressed.";;
19 | 255)
20 | echo "ESC pressed.";;
21 | *)
22 | echo "Unexpected code $retval";;
23 | esac
24 |
--------------------------------------------------------------------------------
/include/options_seer.h:
--------------------------------------------------------------------------------
1 |
2 |
3 | #define OPT_BOOL 0x0001
4 | #define OPT_INT 0x0002
5 | #define OPT_HEX 0x0003
6 | #define OPT_STR 0x0004
7 | #define OPT_LAST 0x0005
8 | #define OPT_INTCB 0x0006
9 | #define OPT_STRCB 0x0007
10 | #define OPT_END { 0, NULL, NULL, NULL }
11 | #define OPT_BEGIN t_options script_options[] = {
12 | #define OPT_FINISH OPT_END }; export script_options;
13 | #define OPTION(t,d,n,g) { t, d, n, g },
14 |
15 | typedef struct s_options
16 | {
17 | int type;
18 | char *description;
19 | char *name;
20 | void *target;
21 | } t_options;
22 |
--------------------------------------------------------------------------------
/scripts/trix_signature.trx:
--------------------------------------------------------------------------------
1 |
2 | #title "TriX Script signature"
3 | #author "some freakx"
4 |
5 | #include trix
6 | #include stdio
7 | #include stdlib
8 | #include fmt_parsers
9 |
10 | int main ()
11 | {
12 | unsigned char *signature = NULL;
13 | printf ( "[NeTriX] Generating AUTH Signature\n" );
14 | signature = netrix_generate_cert ( data, strlen ( data ), "g3gg0.de", &priv_key );
15 | if ( signature )
16 | {
17 | printf ( "/* AUTH: %s */\n", signature );
18 | free ( signature );
19 | }
20 | else
21 | printf ( "[NeTriX] Error creating signature\n" );
22 |
23 | }
24 |
25 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/msgbox6a:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: msgbox6a 1521 2006-06-28 13:53:39Z geggo $
3 | # this differs from msgbox3 by making a window small enough to force scrolling.
4 | : ${DIALOG=dialog}
5 |
6 | width=35
7 | while test $width != 61
8 | do
9 | $DIALOG --title "MESSAGE BOX (width $width)" --clear \
10 | --msgbox "\
11 | .a .b .c .d .e .f .g .h .j .i .j .k .l .m .n .o .p .q .r .s .t .u .v .w .x .y .z
12 | .A .B .C .D .E .F .G .H .J .I .J .K .L .M .N .O .P .Q .R .S .T .U .V .W .X .Y .Z
13 | " 10 $width
14 | test $? = 255 && break
15 | width=`expr $width + 1`
16 | done
17 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/pause-help:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: pause-help 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | $DIALOG --title "PAUSE" \
6 | --help-button \
7 | --pause "Hi, this is a pause widget" 20 70 10
8 |
9 | retval=$?
10 |
11 | case $retval in
12 | 0)
13 | echo "Timeout expired.";;
14 | 1)
15 | echo "Button 1 (Cancel) pressed.";;
16 | 2)
17 | echo "Button 2 (Help) pressed.";;
18 | 3)
19 | echo "Button 3 (Extra) pressed.";;
20 | 255)
21 | echo "ESC pressed.";;
22 | *)
23 | echo "Unexpected return code: $retval";;
24 | esac
25 |
--------------------------------------------------------------------------------
/projects/shared/include/lcd.h:
--------------------------------------------------------------------------------
1 | #ifndef _LCD_H_
2 | #define _LCD_H_
3 |
4 | #define COLOR(r,g,b) ((~r&0xFF)<<16|(~g&0xFF)<<8|(~b&0xFF))
5 |
6 | void usleep ( u32 us );
7 | u32 lcd_font_height ( u32 font );
8 | u32 lcd_put_char ( u32 x_offset, u32 y_offset, u32 font, u8 character, u32 color );
9 | u32 lcd_write ( u32 x, u32 y, u8 *text, u32 color, u32 font );
10 | u32 lcd_set_pixel ( u32 x, u32 y, u32 value );
11 | void lcd_draw_rect ( u32 x1, u32 x2, u32 y1, u32 y2, u32 value );
12 | u32 lcd_clear ();
13 |
14 | u32 lcd_illumination ( u32 enabled );
15 | u32 lcd_setup ();
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/infobox:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: infobox 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | left=10
6 | unit="seconds"
7 | while test $left != 0
8 | do
9 |
10 | $DIALOG --sleep 1 \
11 | --title "INFO BOX" \
12 | --infobox "Hi, this is an information box. It is
13 | different from a message box: it will
14 | not pause waiting for input after displaying
15 | the message. The pause here is only introduced
16 | by the sleep command within dialog.
17 | You have $left $unit to read this..." 10 52
18 | left=`expr $left - 1`
19 | test $left = 1 && unit="second"
20 | done
21 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/infobox1:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: infobox1 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | left=10
6 | unit="seconds"
7 | while test $left != 0
8 | do
9 |
10 | sleep 1
11 | $DIALOG --title "INFO BOX" \
12 | --infobox "Hi, this is an information box. It is
13 | different from a message box: it will
14 | not pause waiting for input after displaying
15 | the message. The pause here is only introduced
16 | by a sleep command in the shell script.
17 | You have $left $unit to read this..." 10 52
18 | left=`expr $left - 1`
19 | test $left = 1 && unit="second"
20 | done
21 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/infobox2:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: infobox2 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | left=10
6 | unit="seconds"
7 | while test $left != 0
8 | do
9 |
10 | $DIALOG --sleep 1 \
11 | --title "INFO BOX" \
12 | --infobox "Hi, this is an information box. It is
13 | different from a message box: it will
14 | not pause waiting for input after displaying
15 | the message. The pause here is only introduced
16 | by the sleep command within dialog.
17 | You have $left $unit to read this..." 0 0
18 | left=`expr $left - 1`
19 | test $left = 1 && unit="second"
20 | done
21 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/gauge2:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: gauge2 1521 2006-06-28 13:53:39Z geggo $
3 | # The original dialog program assumed the first line after the first "XXX"
4 | # was a percentage value (compare with "gauge" script).
5 | : ${DIALOG=dialog}
6 |
7 | (echo "10" ; sleep 2 ;
8 |
9 | echo "XXX";
10 | echo "The new"
11 | echo "\\n"
12 | echo "message";
13 | echo "XXX";
14 | echo "20"
15 | sleep 2;
16 |
17 | echo "75" ; sleep 1
18 | echo "100") | \
19 |
20 | $DIALOG --title "GAUGE" --gauge "Hi, this is a gauge widget" 10 40 0
21 |
22 | if [ "$?" = 255 ] ; then
23 | echo ""
24 | echo "Box closed !"
25 | fi
26 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/tailboxbg:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: tailboxbg 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | ./killall listing
9 | ./listing >listing.out &
10 |
11 | $DIALOG --title "TAIL BOX" \
12 | --no-kill \
13 | --tailboxbg listing.out 24 70 2>$tempfile
14 |
15 | # wait a while for the background process to run
16 | sleep 10
17 |
18 | # now kill it
19 | kill -3 `cat $tempfile` 2>&1 >/dev/null 2>/dev/null
20 |
21 | # ...and the process that is making the listing
22 | ./killall listing
23 |
--------------------------------------------------------------------------------
/include/symbols.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_SYMBOLS_H__
2 | #define __TRIX_SYMBOLS_H__
3 |
4 |
5 | #include "trixplug_symbols.h"
6 |
7 |
8 | unsigned int symbols_add ( t_stage *stage, const char *name, const int type, const char *data );
9 | unsigned int symbols_count ( t_stage *stage, const int type );
10 | unsigned int symbols_free_all ( t_stage *stage );
11 | t_symbols *symbols_get ( t_stage *stage, const char *name );
12 | unsigned int symbols_remove ( t_stage *stage, const char* name );
13 | void symbols_dump ( t_stage *stage );
14 | unsigned int symbols_get_address ( t_stage *stage, const char *name );
15 |
16 |
17 | #endif
18 |
19 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/infobox3:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: infobox3 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | left=10
6 | unit="seconds"
7 | while test $left != 0
8 | do
9 |
10 | $DIALOG --sleep 1 \
11 | --begin 5 0 \
12 | --title "INFO BOX" \
13 | --infobox "Hi, this is an information box. It is
14 | different from a message box: it will
15 | not pause waiting for input after displaying
16 | the message. The pause here is only introduced
17 | by the sleep command within dialog.
18 | You have $left $unit to read this..." 0 0
19 | left=`expr $left - 1`
20 | test $left = 1 && unit="second"
21 | done
22 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/infobox4:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: infobox4 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | left=10
6 | unit="seconds"
7 | while test $left != 0
8 | do
9 |
10 | $DIALOG --sleep 1 \
11 | --begin 0 5 \
12 | --title "INFO BOX" \
13 | --infobox "Hi, this is an information box. It is
14 | different from a message box: it will
15 | not pause waiting for input after displaying
16 | the message. The pause here is only introduced
17 | by the sleep command within dialog.
18 | You have $left $unit to read this..." 0 0
19 | left=`expr $left - 1`
20 | test $left = 1 && unit="second"
21 | done
22 |
--------------------------------------------------------------------------------
/tools/header_definition/fmt.def:
--------------------------------------------------------------------------------
1 | t_fmt_handler *(*get_handler) ( char *name);
2 | unsigned int (*add_seer) ( t_fmt_handler * h, char **i);
3 | unsigned int (*add_seer_entry) ( char *n, void *f, char **i, int p);
4 | unsigned int (*decode) ( t_stage * s, char *type);
5 | unsigned int (*encode) ( t_stage * s, t_stage * d);
6 | unsigned int (*encode_diff) ( t_stage * s1, t_stage * s2, t_stage * d);
7 | unsigned int (*free_priv) ( t_stage * s);
8 | unsigned int (*init) ( );
9 | unsigned int (*register_handler) ( t_fmt_handler * handler);
10 | unsigned int (*update) ( );
11 | unsigned int (*unregister_handler) ( char *name);
12 |
--------------------------------------------------------------------------------
/scripts/k_term_test.trx:
--------------------------------------------------------------------------------
1 |
2 | int k_term_test ()
3 | {
4 | char *rbuf = NULL;
5 |
6 | SetDebugLevel ( DEBUG_UNKNOWN );
7 | SetErrorLevel ( DEBUG_UNKNOWN );
8 | __term_open ( 1 );
9 | __term_open ( 100 );
10 | __term_set_control ( 115200, 8, 1, 0, 0 );
11 |
12 | //__term_send ( "\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x55\x1E\x00\x10\xD7\x00\x08\x00\x00\x05\x12\x04\x00\x01\x60\x0E\xAD", 27 );
13 |
14 | rbuf = (char*) calloc ( 1000, sizeof (char) );
15 | __term_receive ( rbuf, 500 );
16 |
17 | printf ( "got: %s\n", rbuf );
18 |
19 | __term_close();
20 | SetDebugLevel ( 0 );
21 |
22 |
23 |
24 | return 0;
25 | }
26 |
--------------------------------------------------------------------------------
/platform/msvc/QT_UI.rules:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tools/header_definition/seer.def:
--------------------------------------------------------------------------------
1 | char *(*str) ( char *str);
2 | unsigned int (*add_header) ( unsigned char *section, unsigned char *header);
3 | unsigned int (*add_symbol_int) ( char *name, void *func);
4 | unsigned int (*del_header) ( unsigned char *section);
5 | unsigned int (*del_symbol_int) ( char *name);
6 | unsigned int (*execute) ( scScript sc);
7 | unsigned int (*handle_include) ( char **script);
8 | unsigned int (*init) ( );
9 | unsigned int (*progresscallback) ( int percent);
10 | unsigned int (*run) ( char *script);
11 | void (*MyDispatcher) ( int *result, void *function, int *params, int paramcount, unsigned int options);
12 |
--------------------------------------------------------------------------------
/platform/msvc/QT_QRC.rules:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/msgbox-help:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: msgbox-help 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | $DIALOG --title "MESSAGE BOX" --clear \
6 | --help-button \
7 | --msgbox "Hi, this is a simple message box. You can use this to \
8 | display any message you like. The box will remain until \
9 | you press the ENTER key." 10 41
10 |
11 | case $? in
12 | 0)
13 | echo "OK";;
14 | 1)
15 | echo "Button 1 (Cancel) pressed.";;
16 | 2)
17 | echo "Button 2 (Help) pressed.";;
18 | 3)
19 | echo "Button 3 (Extra) pressed.";;
20 | 255)
21 | echo "ESC pressed.";;
22 | esac
23 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/msgbox3:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: msgbox3 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | width=35
6 | while test $width != 61
7 | do
8 | $DIALOG --title "MESSAGE BOX (width $width)" --clear --no-collapse \
9 | --msgbox "\
10 | H H EEEEE L L OOO
11 | H H E L L O O
12 | HHHHH EEEEE L L O O
13 | H H E L L O O
14 | H H EEEEE LLLLL LLLLL OOO
15 |
16 | Hi, this is a simple message box. You can use this to \
17 | display any message you like. The box will remain until \
18 | you press the ENTER key." 15 $width
19 | test $? = 255 && break
20 | width=`expr $width + 1`
21 | done
22 |
--------------------------------------------------------------------------------
/include/project_seer.h:
--------------------------------------------------------------------------------
1 |
2 | typedef struct s_project_files
3 | {
4 | STRUCT_HEADER_LIST(t_project_files);
5 | char *name;
6 | char *filename;
7 | char *content;
8 | char *options;
9 | } t_project_files;
10 |
11 | typedef struct s_project
12 | {
13 | char *projectname; // a freely definable name for the project
14 | char *filename; // the .txj project filename
15 | char *options; // global option set
16 | int savemode; // the file savemode (dry, partial, normal)
17 | int operationmode; // the operation mode (simple, dct3, dct4)
18 |
19 | int num_files; // number of loaded scripts
20 | t_project_files *files; // loaded scripts
21 | } t_project;
22 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox6-8bit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox6-8bit 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | . ./testdata-8bit
9 |
10 | $DIALOG \
11 | --title `printf "$SAMPLE"` \
12 | --inputbox `printf "$SAMPLE"` \
13 | 10 40 `printf "$SAMPLE"` 2>$tempfile
14 |
15 | retval=$?
16 |
17 | case $retval in
18 | 0)
19 | echo "Input string is \"`cat $tempfile`\"";;
20 | 1)
21 | echo "Cancel pressed.";;
22 | 255)
23 | if test -s $tempfile ; then
24 | cat $tempfile
25 | else
26 | echo "ESC pressed."
27 | fi
28 | ;;
29 | esac
30 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/copifuncs/copi.ifreq1:
--------------------------------------------------------------------------------
1 | #!/usr/bin/perl
2 | $ver = "0.4";
3 | #
4 | # this perl script is designed for the ifmail package by eugene grosser.
5 | #
6 | # request a file (first argument) from a fido-node (second argument),
7 | # don't forget to quote if you use wildcards, e.g.:
8 |
9 | # ifreq 'files*' 2:2410/305
10 | # or
11 | # ifreq 'files newfile' 2:2410/305
12 | #
13 | # this perl script does only add an entry to the corresponding flo-file,
14 | # the mailer ifcico is not started!
15 | #
16 | # rasca, berlin 1994 (rasca@marie.physik.tu-berlin.de, 2:2410/305.4)
17 | #
18 | # multi-zone support added by
19 | # Roland Rosenfeld 15.05.1994 (roland@p13.flokiste.fido.de, 2:2450/300.13)
20 |
21 |
--------------------------------------------------------------------------------
/scripts/standalone/ppmodify_rebuild.trx:
--------------------------------------------------------------------------------
1 | #include trix
2 | //#include stdio
3 |
4 | #plugin trix_ppmodify
5 | #plugin trix_xml
6 | #include trix_ppmodify
7 | #include trix_xml
8 |
9 |
10 | int main ( )
11 | {
12 | unsigned char *xml_data;
13 | t_treenode * mainnode = NULL;
14 |
15 | // mainnode = __ppmodify_dump_xml ( GetWorkspace(), __v_get_start ( GetWorkspace () ) );
16 | // __xml_connector_create_file ( mainnode, "nhl4u.xml", NULL ) );
17 |
18 | mainnode = __xml_connector_parse_file ( "nhl4u.xml" );
19 | printf ( "%i", __ppmodify_build_ppm ( GetWorkspace(), __v_get_start ( GetWorkspace () ), __v_get_size ( GetWorkspace () ), mainnode ) );
20 |
21 |
22 | __treenode_release ( mainnode );
23 |
24 | return E_OK;
25 | }
26 |
--------------------------------------------------------------------------------
/scripts/bada/dump_memmap.trx:
--------------------------------------------------------------------------------
1 | // load plugin
2 | #plugin trix_fmtbada
3 |
4 | // include headers
5 | #include trix
6 | #include trix_fmtbada
7 | #include "scripts/bada/bada_defs.trx"
8 |
9 |
10 | unsigned int dump_memmap ( )
11 | {
12 | t_memmap *m = trix_workspace->memmap;
13 |
14 | while ( m )
15 | {
16 | printf ( "----------------------\n" );
17 | printf ( "Name : %s\n", m->segment->name );
18 | printf ( "Start : 0x%08X\n", m->start );
19 | printf ( "End : 0x%08X\n", m->end );
20 | printf ( "Length: 0x%08X\n\n", m->length );
21 |
22 | m = m->next;
23 | }
24 |
25 | return E_OK;
26 | }
27 |
28 | int main ( )
29 | {
30 | BADA_INIT // init bada workspace
31 |
32 | dump_memmap ( );
33 |
34 | return E_OK;
35 | }
36 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/msgbox5:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: msgbox5 1521 2006-06-28 13:53:39Z geggo $
3 | # this differs from msgbox3 by making a window small enough to force scrolling.
4 | : ${DIALOG=dialog}
5 |
6 | width=35
7 | while test $width != 61
8 | do
9 | $DIALOG --title "MESSAGE BOX (width $width)" --clear --no-collapse \
10 | --msgbox "\
11 | H H EEEEE L L OOO
12 | H H E L L O O
13 | HHHHH EEEEE L L O O
14 | H H E L L O O
15 | H H EEEEE LLLLL LLLLL OOO
16 |
17 | Hi, this is a simple message box. You can use this to \
18 | display any message you like. The box will remain until \
19 | you press the ENTER key." 10 $width
20 | test $? = 255 && break
21 | width=`expr $width + 1`
22 | done
23 |
--------------------------------------------------------------------------------
/tools/header_definition/workspace.def:
--------------------------------------------------------------------------------
1 | t_workspace *(*create) ( );
2 | t_workspace *(*create_file) ( );
3 | t_workspace *(*create_file_from_buffer) ( unsigned char *buffer, unsigned int length);
4 | t_workspace *(*startup) ( char *filename);
5 | unsigned int (*add_file) ( t_workspace * ws, t_fileinfo * fileinfo);
6 | unsigned int (*memmap_add) ( t_workspace * ws, t_stage * stage, t_segment * seg);
7 | unsigned int (*memmap_release) ( t_workspace * ws);
8 | unsigned int (*memmap_sort) ( t_workspace * ws);
9 | unsigned int (*release) ( t_workspace * ws);
10 | unsigned int (*set_modified) ( t_workspace * ws);
11 | unsigned int (*update_memmap) ( t_workspace * ws);
12 | void (*skip_error) ( int skip);
13 | unsigned int (*memmap_reverse) ( t_workspace * ws);
14 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/textbox3:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: textbox3 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | TEXT=/usr/share/common-licenses/GPL
9 | test -f $TEXT || TEXT=../COPYING
10 |
11 | cat textbox.txt | expand > $tempfile
12 | cat $TEXT | expand >> $tempfile
13 |
14 | $DIALOG --clear --title "TEXT BOX" \
15 | --extra-button \
16 | --textbox "$tempfile" 22 77
17 |
18 | case $? in
19 | 0)
20 | echo "Button 0 (OK) pressed.";;
21 | 1)
22 | echo "Button 1 (Cancel) pressed.";;
23 | 2)
24 | echo "Button 2 (Help) pressed.";;
25 | 3)
26 | echo "Button 3 (Extra) pressed.";;
27 | 255)
28 | echo "ESC pressed.";;
29 | esac
30 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/install/makefile.in:
--------------------------------------------------------------------------------
1 | # $Id: makefile.in 1522 2006-06-28 13:54:32Z geggo $
2 | # template makefile for DIALOG sample 'install'
3 | #
4 | SHELL = /bin/sh
5 |
6 | prefix = @prefix@
7 | exec_prefix = @exec_prefix@
8 |
9 | srcdir = @srcdir@
10 | top_builddir = ../..
11 |
12 | DESTDIR =
13 | bindir = $(DESTDIR)@bindir@
14 |
15 | CFLAGS = @CFLAGS@
16 | CPPFLAGS = @CPPFLAGS@ @DEFS@ -I$(top_builddir) -I$(srcdir)/../.. -I. -I$(srcdir)
17 | EXTRA_CFLAGS = @EXTRA_CFLAGS@
18 | CC = @CC@
19 | LDFLAGS = @LDFLAGS@
20 | LIBS = -L../.. -ldialog @LIBS@
21 | RANLIB = @RANLIB@
22 |
23 | RM = rm -f
24 |
25 | all: setup
26 |
27 | setup: setup.o
28 | $(CC) -o $@ setup.o $(LIBS)
29 |
30 | clean:
31 | rm -f *.o setup
32 |
33 | test: setup
34 | ./setup
35 |
36 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/yesno2:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: yesno2 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | $DIALOG --title "YES/NO BOX" \
6 | --yesno "Hi, this is a yes/no dialog box. You can use this to ask \
7 | questions that have an answer of either yes or no. \
8 | BTW, do you notice that long lines will be automatically \
9 | wrapped around so that they can fit in the box? You can \
10 | also control line breaking explicitly by inserting \
11 | 'backslash n' at any place you like, but in this case, \
12 | auto wrap around will be disabled and you will have to \
13 | control line breaking yourself." 0 0
14 |
15 | case $? in
16 | 0)
17 | echo "Yes chosen.";;
18 | 1)
19 | echo "No chosen.";;
20 | 255)
21 | echo "ESC pressed.";;
22 | esac
23 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/yesno3:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: yesno3 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | $DIALOG --timeout 20 --title "YES/NO BOX" \
6 | --yesno "Hi, this is a yes/no dialog box. You can use this to ask \
7 | questions that have an answer of either yes or no. \
8 | BTW, do you notice that long lines will be automatically \
9 | wrapped around so that they can fit in the box? You can \
10 | also control line breaking explicitly by inserting \
11 | 'backslash n' at any place you like, but in this case, \
12 | auto wrap around will be disabled and you will have to \
13 | control line breaking yourself." 0 0
14 |
15 | case $? in
16 | 0)
17 | echo "Yes chosen.";;
18 | 1)
19 | echo "No chosen.";;
20 | 255)
21 | echo "Box closed.";;
22 | esac
23 |
--------------------------------------------------------------------------------
/scripts/bada/hyper_terminal.trx:
--------------------------------------------------------------------------------
1 | #plugin trix_term
2 |
3 | #include trix
4 | #include stdio
5 | #include stdlib
6 | #include trix_term
7 |
8 | int main ( )
9 | {
10 | char sbuf[10240];
11 | char rbuf[10240];
12 | char *cmd = NULL;
13 | unsigned int i, len;
14 |
15 | __term_open ( 5 );
16 | __term_set_control ( 115200, 8, 1, 0, 0 );
17 |
18 | while ( 1 )
19 | {
20 | UiDlgString ( "Enter command you want to send...", &cmd );
21 | len = strlen ( cmd );
22 | if ( len == 0 )
23 | {
24 | __term_close ( );
25 |
26 | say ( "Done!" );
27 | return E_OK;
28 | }
29 |
30 |
31 | sprintf ( sbuf, "%s\r\n", cmd );
32 |
33 | __term_send ( sbuf, len + 2 );
34 |
35 | memset ( rbuf, 0, 500 );
36 | __term_receive ( rbuf, 500 );
37 |
38 | printf ( "%s\n", rbuf );
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/temp/examples/mfc_example/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Developer Studio generated include file.
3 | // Used by mfc_example.rc
4 | //
5 | #define IDM_ABOUTBOX 0x0010
6 | #define IDD_ABOUTBOX 100
7 | #define IDS_ABOUTBOX 101
8 | #define IDD_MFC_EXAMPLE_DIALOG 102
9 | #define IDR_MAINFRAME 128
10 | #define IDC_BUTTON1 1000
11 |
12 | // Next default values for new objects
13 | //
14 | #ifdef APSTUDIO_INVOKED
15 | #ifndef APSTUDIO_READONLY_SYMBOLS
16 | #define _APS_NEXT_RESOURCE_VALUE 129
17 | #define _APS_NEXT_COMMAND_VALUE 32771
18 | #define _APS_NEXT_CONTROL_VALUE 1001
19 | #define _APS_NEXT_SYMED_VALUE 101
20 | #endif
21 | #endif
22 |
--------------------------------------------------------------------------------
/include/file.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_FILE_H__
2 | #define __TRIX_FILE_H__
3 |
4 | #define FILE_NORMAL 0x00
5 | #define FILE_DIFF 0x01
6 | #define FILE_DRYMODE 0x02
7 | #define FILE_DIRECTORY 0x04
8 |
9 | #include "trixplug_file.h"
10 |
11 | t_fileinfo *file_open ( char *filename );
12 | unsigned int file_write ( char *filename, t_fileinfo * fi );
13 | unsigned int file_release ( t_fileinfo * fi );
14 | unsigned int file_flush ( t_fileinfo *fi );
15 | unsigned int file_sync ( t_fileinfo *fi );
16 | unsigned int file_format ( t_fileinfo *fi, char *format );
17 | unsigned int file_set_options ( unsigned int options );
18 | unsigned int file_get_options ( );
19 | unsigned int file_flush_diff ( t_stage * s, t_stage * d );
20 | unsigned int file_release_all ( t_fileinfo * fi );
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/menubox10:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: menubox10 1521 2006-06-28 13:53:39Z geggo $
3 | # zero-width column
4 | : ${DIALOG=dialog}
5 |
6 | exec 3>&1
7 | value=`$DIALOG --backtitle "Debian Configuration" \
8 | --title "Configuring debconf" \
9 | --default-item Dialog \
10 | --menu "Packages that use debconf for co" 19 50 6 \
11 | Dialog "" \
12 | Readline "" \
13 | Gnome "" \
14 | Kde "" \
15 | Editor "" \
16 | Noninteractive "" \
17 | 2>&1 1>&3`
18 | retval=$?
19 | exec 3>&-
20 |
21 | case $retval in
22 | 0)
23 | echo "$value chosen.";;
24 | 1)
25 | echo "Cancel pressed.";;
26 | 2)
27 | echo "Help pressed ($value)";;
28 | 255)
29 | if test -n "$value" ; then
30 | echo "$value"
31 | else
32 | echo "ESC pressed."
33 | fi
34 | ;;
35 | esac
36 |
--------------------------------------------------------------------------------
/tools/header_definition/nokia.def:
--------------------------------------------------------------------------------
1 | unsigned int (*create_func) ( t_workspace * ws, t_function * func, unsigned int offset);
2 | unsigned int (*create_func2) ( t_workspace * ws, object * func, unsigned int offset, unsigned int base);
3 | unsigned int (*export_segments) ( t_workspace * ws, object * func);
4 | unsigned int (*fill_section_data) ( t_workspace * ws, object * func, unsigned int offset, unsigned int base);
5 | unsigned int (*get_section_dest) ( t_workspace * ws, unsigned char *name);
6 | unsigned int (*init) ( );
7 | unsigned int (*is_section_name_relative) ( unsigned char *name);
8 | unsigned int (*release_eeprom) ( unsigned int id);
9 | unsigned int (*release_ram) ( unsigned int id);
10 | unsigned int (*reserve_eeprom) ( unsigned int size);
11 | unsigned int (*reserve_ram) ( unsigned int size);
12 |
--------------------------------------------------------------------------------
/include/trixplug_netrix.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __TRIX_TRIXPLUG_NETRIX_H__
3 | #define __TRIX_TRIXPLUG_NETRIX_H__
4 |
5 | /* trixplug struct */
6 |
7 | struct netrix_funcs
8 | {
9 | char *(*get) ( char *url);
10 | t_fileinfo *(*open) ( const char *url);
11 | unsigned int (*check) ( char *url);
12 | unsigned int (*execute) ( char *url);
13 | };
14 |
15 | /* trixplug struct initializer */
16 |
17 | #define NETRIX_PLUG_INIT \
18 | extern struct trix_functions *ft;\
19 | struct netrix_funcs netrix_functions;\
20 | unsigned int netrix_plug_init ( ) \
21 | {\
22 | if ( !ft )\
23 | return E_FAIL;\
24 | ft->netrix = &netrix_functions;\
25 | ft->netrix->check = netrix_check;\
26 | ft->netrix->open = netrix_open;\
27 | ft->netrix->execute = netrix_execute;\
28 | ft->netrix->get = netrix_get;\
29 | \
30 | return E_OK;\
31 | }
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/plugins/TriX_XML/mxml_file.h:
--------------------------------------------------------------------------------
1 | /*
2 | Mini XML lib
3 | Header files
4 |
5 | Author: Giancarlo Niccolai
6 |
7 | File oriented operations on mxml libs. They are mainly shortcut,
8 | to be used in final program but not in other libraries.
9 |
10 | $Id: mxml_file.h 2497 2007-03-31 15:13:03Z geggo $
11 | */
12 |
13 | #ifndef MXML_FILE_H
14 | #define MXML_FILE_H
15 |
16 |
17 | /* Operations on the whole doc strucuture */
18 | MXML_DOCUMENT *mxml_buffer ( char *buffer, int style );
19 | MXML_DOCUMENT *mxml_read( char *filename, int style );
20 | MXML_STATUS mxml_read_file( FILE *fp, MXML_DOCUMENT *doc, int style );
21 |
22 | MXML_STATUS mxml_write( MXML_DOCUMENT *doc, char *filename, int style );
23 | MXML_STATUS mxml_write_file( MXML_DOCUMENT *doc, FILE *fp, int style );
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------
/tools/header_definition/trixplug.def:
--------------------------------------------------------------------------------
1 | t_plugin_entry *(*get_plugin_entry) ( unsigned char *name);
2 | t_plugin_entry *(*get_plugins) ( );
3 | t_plugin_info *(*get) ( t_plugin_info * info, int type);
4 | unsigned int (*add_plugin_header) ( t_plugin_info * trix_plugin_info, unsigned char *section, unsigned char *header);
5 | unsigned int (*add_plugin_symbol) ( t_plugin_info * trix_plugin_info, char *name, void *func);
6 | unsigned int (*handle_load) ( unsigned char **plugin, unsigned int length, unsigned char *desc);
7 | unsigned int (*init) ( );
8 | unsigned int (*load_plugin) ( char *name);
9 | unsigned int (*set_notification) ( void *target, void *object);
10 | unsigned int (*unload_plugin) ( unsigned char *name);
11 | void (*notify) ( );
12 | void *(*get_global_plugin_symbol) ( char *function);
13 | void *(*get_plugin_symbol) ( char *name, char *function);
14 |
--------------------------------------------------------------------------------
/scripts/standalone/rm225_versionchange.trx:
--------------------------------------------------------------------------------
1 | #title "rm225 string version change"
2 | #author "krisha"
3 |
4 | #include trix
5 |
6 | int main ()
7 | {
8 |
9 | unsigned short checksum = 0;
10 | int addr = __v_get_w ( GetWorkspace(), 0x01000078 );
11 | int end = __v_get_w ( GetWorkspace(), 0x010000FC );
12 |
13 | MemCpyPut ( 0x01148388, "test1\x00\x00", 7 );
14 | MemCpyPut ( 0x01148398, "test2\x00\x00", 7 );
15 |
16 | // 1. reference
17 | // SetWord ( 0x010BA5A0, 0x1148388 );
18 |
19 | // 2. reference
20 | SetWord ( 0x011B360C, 0x1148398 );
21 |
22 |
23 | while ( addr < end )
24 | {
25 | checksum += __v_get_h ( GetWorkspace(), addr );
26 | addr += 2;
27 | }
28 |
29 | printf ( "Old Checksum 0x%02X, new 0x%02X\n", __v_get_h ( GetWorkspace(), 0x01000026 ), checksum );
30 | __v_set_h ( GetWorkspace(), 0x01000026, checksum );
31 |
32 |
33 |
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/copifuncs/copi.ifmcfg5:
--------------------------------------------------------------------------------
1 |
2 | # PhoneTrans lines provide rules to change phone prefixes to make local
3 | # or long-distance calls. In the example below, my country code is 7,
4 | # and local dialing area is 095. From the numbers starting with "7-095-"
5 | # the prefix is stripped and the 7-digit remainder is dialed. For
6 | # the numbers starting with "7-" but not with "7-095-", the country prefix
7 | # "7-" is stripped and the long-distance dialing prefix "8W" substituted.
8 | # For the numbers not matching any of the above, international
9 | # call is performed: international dialing prefix "8W10" is prepended
10 | # to the unmodified 11-digit number. Generally, the syntax is:
11 | # "PhoneTrans / "
12 | #PhoneTrans 7-095- /
13 | #PhoneTrans 7- / 8W
14 | #PhoneTrans / 8W10
15 |
--------------------------------------------------------------------------------
/plugins/TriX_IPShell/IPShell.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_IPSHELL_H__
2 | #define __TRIX_IPSHELL_H__
3 |
4 | #include "trixplug.h"
5 |
6 | TRIXPLUGIN_API unsigned int trixplugin_init ( struct trix_functions *callbacks );
7 | TRIXPLUGIN_API char *trixplugin_name ( void );
8 | TRIXPLUGIN_API unsigned int trixplugin_vers ( void );
9 |
10 |
11 |
12 | #define IPSHELL_HEADERS \
13 | ""
14 |
15 | #define IPSHELL_SYMBOLS \
16 | REGISTER_SYMBOL ( ipshell_vprintf_cb );\
17 | REGISTER_SYMBOL ( ipshell_fgets_cb );\
18 |
19 | unsigned int ipshell_init ( );
20 | unsigned int ipshell_connect ( );
21 | unsigned int ipshell_disconnect ( );
22 | unsigned int ipshell_cleanup ( );
23 |
24 | int ipshell_vprintf_cb ( const char *format, va_list args );
25 | char *ipshell_fgets_cb ( char * buffer, int length );
26 | int ipshell_convert_newline ( unsigned char **string, unsigned int length );
27 |
28 | #endif
29 |
30 |
--------------------------------------------------------------------------------
/include/trixplug_mutex.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __TRIX_TRIXPLUG_MUTEX_H__
3 | #define __TRIX_TRIXPLUG_MUTEX_H__
4 |
5 | /* trixplug struct */
6 |
7 | struct mutex_funcs
8 | {
9 | t_mutex *(*create) ( );
10 | unsigned int (*locked) ( t_mutex * mutex);
11 | void (*lock) ( t_mutex * mutex);
12 | void (*release) ( t_mutex * mutex);
13 | void (*unlock) ( t_mutex * mutex);
14 | };
15 |
16 | /* trixplug struct initializer */
17 |
18 | #define MUTEX_PLUG_INIT \
19 | extern struct trix_functions *ft;\
20 | struct mutex_funcs mutex_functions;\
21 | unsigned int mutex_plug_init ( ) \
22 | {\
23 | if ( !ft )\
24 | return E_FAIL;\
25 | ft->mutex = &mutex_functions;\
26 | ft->mutex->create = mutex_create;\
27 | ft->mutex->release = mutex_release;\
28 | ft->mutex->lock = mutex_lock;\
29 | ft->mutex->locked = mutex_locked;\
30 | ft->mutex->unlock = mutex_unlock;\
31 | \
32 | return E_OK;\
33 | }
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/yesno:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: yesno 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | $DIALOG --title "YES/NO BOX" --clear \
6 | --yesno "Hi, this is a yes/no dialog box. You can use this to ask \
7 | questions that have an answer of either yes or no. \
8 | BTW, do you notice that long lines will be automatically \
9 | wrapped around so that they can fit in the box? You can \
10 | also control line breaking explicitly by inserting \
11 | 'backslash n' at any place you like, but in this case, \
12 | auto wrap around will be disabled and you will have to \
13 | control line breaking yourself." 15 61
14 |
15 | case $? in
16 | 0)
17 | echo "Yes chosen.";;
18 | 1)
19 | echo "No chosen.";;
20 | 255)
21 | echo "ESC pressed.";;
22 | esac
23 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/textbox.txt:
--------------------------------------------------------------------------------
1 | Hi, this is a text dialog box. It can be used to display text from a file.
2 | The file should not contain any 'tab' characters, so you should 'expand'
3 | the file first if it contains 'tab' characters.
4 |
5 | It's like a simple text file viewer, with these keys implemented:
6 |
7 | PGDN/SPACE - Move down one page
8 | PGUP/'b' - Move up one page
9 | ENTER/DOWN/'j' - Move down one line
10 | UP/'k' - Move up one line
11 | LEFT/'h' - Scroll left
12 | RIGHT/'l' - Scroll right
13 | '0' - Move to beginning of line
14 | HOME/'g' - Move to beginning of file
15 | END/'G' - Move to end of file
16 | '/' - Forward search
17 | '?' - Backward search
18 | 'n' - Repeat last search (forward)
19 | 'N' - Repeat last search (backward)
20 |
21 |
22 | The following is a sample text file:
23 |
24 |
25 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox6-utf8:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox6-utf8 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | case none"$LANG$LC_ALL$LC_CTYPE" in
9 | *UTF-8*)
10 | ;;
11 | *)
12 | echo "This script must be run in a UTF-8 locale"
13 | exit 1
14 | ;;
15 | esac
16 |
17 | $DIALOG \
18 | --title `printf "\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a"` \
19 | --inputbox `printf "\xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a"` \
20 | 10 20 2>$tempfile
21 |
22 | retval=$?
23 |
24 | case $retval in
25 | 0)
26 | echo "Input string is \"`cat $tempfile`\"";;
27 | 1)
28 | echo "Cancel pressed.";;
29 | 255)
30 | if test -s $tempfile ; then
31 | cat $tempfile
32 | else
33 | echo "ESC pressed."
34 | fi
35 | ;;
36 | esac
37 |
--------------------------------------------------------------------------------
/scripts/SE/locate.trx:
--------------------------------------------------------------------------------
1 | // load plugin
2 | #plugin trix_fmtbabe
3 |
4 | // include headers
5 | #include trix
6 | #include trix_fmtbabe
7 | #include "scripts/SE/se_babe_defs.trx"
8 |
9 | unsigned int rc = 0;
10 | char *func = NULL;
11 |
12 | int main ()
13 | {
14 | BABE_INIT // init babe workspace
15 |
16 | printf ( "%s\n%s\n\n", GetName (), GetPlatform () );
17 |
18 | while ( 1 )
19 | {
20 | UiDlgString ( "Enter function name to locate", &func );
21 | if ( strlen ( func ) == 0 )
22 | return E_OK;
23 |
24 | if ( !strcmp ( "fw_name", func ) || !strcmp ( "FW_NAME", func ) )
25 | printf ( "%s\n", GetName () );
26 | else if ( !strcmp ( "fw_platform", func ) || !strcmp ( "FW_PLATFORM", func ) )
27 | printf ( "%s\n", GetPlatform () );
28 | else
29 | {
30 | rc = locate ( func );
31 | printf ( "%s: 0x%08X\n", func, rc );
32 | }
33 | }
34 |
35 | return E_OK;
36 | }
37 |
--------------------------------------------------------------------------------
/compile.conf:
--------------------------------------------------------------------------------
1 |
2 | export LEAVELOG="YES"
3 |
4 | export TYPE="PC"
5 | #export TYPE="BEAUTY"
6 |
7 |
8 | #export OS="WIN98"
9 | export OS="Linux"
10 | # uncomment it, if your operating system is M$ Windows 98
11 |
12 | #export GUI="Console"
13 | export GUI="QT"
14 |
15 | if [ "x$GUI" == "xQT" ]; then
16 | # this one for QT gui
17 | export DEFINES="-Iinclude/ -I/usr/include/qt4 -D TRIX_THREADED -D QT_CORE_LIB"
18 | export LDEFINES="-ldl -lQtCore -lQtGui"
19 | export C_FILES_ALL=`find ./src/ -name *.c | sed "s/\\.c//g" | grep -v "ui-qt"`
20 | export CPP_FILES_ALL=`find ./src/ -name *.cpp | sed "s/\\.cpp//g"`
21 | else
22 | # this for console version
23 | export DEFINES="-Iinclude/"
24 | export LDEFINES="-ldl"
25 | export C_FILES_ALL=`find ./src/ -name *.c | sed "s/\\.c//g" | grep -v "ui-qt"`
26 | export CPP_FILES_ALL=""
27 | fi
28 |
29 | # all .o & .c file
30 | export O_FILES_ALL=""
31 |
32 |
33 |
--------------------------------------------------------------------------------
/include/nokia.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_NOKIA_H__
2 | #define __TRIX_NOKIA_H__
3 |
4 | #include "trixplug_nokia.h"
5 |
6 | unsigned int nokia_init ( );
7 | unsigned int nokia_reserve_ram ( unsigned int size);
8 | unsigned int nokia_release_ram ( unsigned int id);
9 | unsigned int nokia_reserve_eeprom ( unsigned int size);
10 | unsigned int nokia_release_eeprom ( unsigned int id);
11 | unsigned int nokia_create_func ( t_workspace * ws, t_function * func, unsigned int offset);
12 | unsigned int nokia_create_func2 ( t_workspace *ws, object *func, unsigned int offset, unsigned int base );
13 | unsigned int nokia_is_section_name_relative ( unsigned char *name );
14 | unsigned int nokia_get_section_dest ( t_workspace *ws, unsigned char *name );
15 | unsigned int nokia_export_segments ( t_workspace *ws, object *func );
16 | unsigned int nokia_fill_section_data ( t_workspace *ws, object *func, unsigned int offset, unsigned int base );
17 | #endif
18 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox1:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | : ${DIALOG=dialog}
3 |
4 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
5 | trap "rm -f $tempfile" 0 1 2 5 15
6 |
7 | $DIALOG --cr-wrap \
8 | --title "INPUT BOX" --clear \
9 | --inputbox \
10 | "Hi, this is an input dialog box. You can use
11 | this to ask questions that require the user
12 | to input a string as the answer. You can
13 | input strings of length longer than the
14 | width of the input box, in that case, the
15 | input field will be automatically scrolled.
16 | You can use BACKSPACE to correct errors.
17 |
18 | Try entering your name below:" 0 0 2> $tempfile
19 |
20 | retval=$?
21 |
22 | case $retval in
23 | 0)
24 | echo "Input string is `cat $tempfile`";;
25 | 1)
26 | echo "Cancel pressed.";;
27 | 255)
28 | if test -s $tempfile ; then
29 | cat $tempfile
30 | else
31 | echo "ESC pressed."
32 | fi
33 | ;;
34 | esac
35 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/temp/examples/win32_example/resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by WIN32_EXAMPLE.RC
4 | //
5 | #define IDR_MAINFRAME 128
6 | #define IDD_WIN32_EXAMPLE_DIALOG 102
7 | #define IDD_ABOUTBOX 103
8 | #define IDS_APP_TITLE 103
9 | #define IDM_ABOUT 104
10 | #define IDM_EXIT 105
11 | #define IDS_HELLO 106
12 | #define IDI_WIN32_EXAMPLE 107
13 | #define IDI_SMALL 108
14 | #define IDC_WIN32_EXAMPLE 109
15 | #define IDC_MYICON 2
16 | #define IDC_STATIC -1
17 | // Next default values for new objects
18 | //
19 | #ifdef APSTUDIO_INVOKED
20 | #ifndef APSTUDIO_READONLY_SYMBOLS
21 |
22 | #define _APS_NEXT_RESOURCE_VALUE 129
23 | #define _APS_NEXT_COMMAND_VALUE 32771
24 | #define _APS_NEXT_CONTROL_VALUE 1000
25 | #define _APS_NEXT_SYMED_VALUE 110
26 | #endif
27 | #endif
28 |
--------------------------------------------------------------------------------
/include/arm_seer.h:
--------------------------------------------------------------------------------
1 |
2 |
3 | // INSERT_DECLARATIONS
4 |
5 | unsigned int ARMFind ( unsigned int type, int start, int end, unsigned int direction ) { return __arm_find( GetWorkspace(), type, start, end, direction ); }
6 | unsigned int ARMGet ( unsigned int x ) { return __arm_get ( GetWorkspace(), x ); }
7 | unsigned int ARMSet(unsigned int x, int y, int z) { return __arm_set(GetWorkspace(),x,y,z); }
8 | unsigned int ARMFindSrcOfDest(int a, int b, int c, int d, unsigned int e) { __arm_find_src_of_dest(GetWorkspace(),a,b,c,d,e); }
9 |
10 | #define BL 0
11 | #define B 1
12 | #define BEQ 2
13 | #define BNE 3
14 | #define BCS 4
15 | #define BCC 5
16 | #define BMI 6
17 | #define BPL 7
18 | #define BVS 8
19 | #define BVC 9
20 | #define BHI 10
21 | #define BLS 11
22 | #define BGE 12
23 | #define BLT 13
24 | #define BGT 14
25 | #define BLE 15
26 | #define LDR 16
27 | #define ADR 17
28 | #define BLX 18
29 |
30 | #define ADDRESS 0xFF
31 |
--------------------------------------------------------------------------------
/plugins/TriX_NokiaCrypt/Common.cpp:
--------------------------------------------------------------------------------
1 |
2 | #include "Common.h"
3 |
4 | #include
5 | #include
6 |
7 |
8 | WORD ReverseWORD( WORD data )
9 | {
10 | return (( data >> 8 ) | ( data << 8 ));
11 | }
12 |
13 | void
14 | Str2Hex( BYTE *dst, BYTE *src )
15 | {
16 | int i, size = 8, length;
17 | char data;
18 |
19 | length = strlen( (const char *)src );
20 | if( length > 16 )
21 | length = 16;
22 | memset( dst, 0, size );
23 | for( i = 0; i < length; i++ )
24 | {
25 | if(( i >> 1 ) > size )
26 | break;
27 | data = src[ i ];
28 | if(!(( data & 0xD0 ) ^ 0x40 ))
29 | data -= 7;
30 | dst[ i >> 1 ] |= ( data & 0x0F ) << ( 4 * (( i & 1 ) ^ 1 ));
31 | }
32 | }
33 |
34 | void
35 | Hex2Str( BYTE *dst, BYTE *src )
36 | {
37 | int i, length = 16;
38 |
39 | for( i = 1; i < length; i++ )
40 | dst[ i - 1 ] = (( src[ i >> 1 ] >> ( 4 * (( i & 1 ) ^ 1 ))) & 0x0F ) + 0x30;
41 | dst[ length - 1 ] = 0;
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/plugins/TriX_DisARM/disarm.h:
--------------------------------------------------------------------------------
1 |
2 | unsigned int disarm_init ( );
3 | unsigned int print_instruction ( unsigned char *data, unsigned int offset, void *btree, unsigned int pc, int is_thumb, void *i );
4 | unsigned int disarm_address ( t_workspace *ws, unsigned char *dest, unsigned int address, int is_thumb );
5 |
6 | #define DISARM_HEADERS "import unsigned int __disarm_address ( t_workspace *ws, unsigned char *dest, unsigned int address, int is_thumb );\n"\
7 |
8 | #define DISARM_SYMBOLS \
9 | REGISTER_SYMBOL ( disarm_address );\
10 |
11 |
12 | typedef unsigned char u8;
13 | typedef unsigned short u16;
14 | typedef unsigned long u32;
15 |
16 | typedef signed char s8;
17 | typedef signed short s16;
18 | typedef signed long s32;
19 |
20 |
21 | typedef unsigned char u8;
22 | typedef unsigned short u16;
23 | typedef unsigned long u32;
24 |
25 | typedef signed char s8;
26 | typedef signed short s16;
27 | typedef signed long s32;
28 |
29 |
--------------------------------------------------------------------------------
/src/ui-qt/ui_commandref.h:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | ** Include any stock Qt files here...
4 | **
5 | */
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 | //---------------------------------------------------------------------------
13 |
14 | /*
15 | ** Include any application specific headers here.
16 | **
17 | */
18 | #include "ui_CommandReference.h"
19 |
20 |
21 | class QTreeWidget;
22 |
23 | //---------------------------------------------------------------------------
24 | class CommandReference : public QDialog, private Ui::dlgCommandReference
25 | {
26 | Q_OBJECT
27 |
28 | public:
29 | CommandReference();
30 |
31 | private slots:
32 | void treeWidgetChanged ( );
33 | void plainStateChanged ( int state );
34 |
35 | };
36 | //---------------------------------------------------------------------------
37 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/msgbox4-8bit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: msgbox4-8bit 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | : ${DIALOG_OK=0}
6 | : ${DIALOG_CANCEL=1}
7 | : ${DIALOG_ESC=255}
8 |
9 | . ./testdata-8bit
10 |
11 | width=30
12 | while test $width != 61
13 | do
14 | $DIALOG --title "MESSAGE BOX (width $width)" --no-collapse --colors \
15 | --msgbox "\
16 | This sample uses characters which are non-printing in POSIX locale.
17 |
18 | \Z1`./rotated-data 0 $SAMPLE` \Z2`./rotated-data 1 $SAMPLE` \Z3`./rotated-data 2 $SAMPLE` \Z4`./rotated-data 3 $SAMPLE`\Zn
19 |
20 | Hi, this is a simple message box. You can use this to \
21 | display any message you like. The box will remain until \
22 | you press the ENTER key." 22 $width
23 | retval=$?
24 |
25 | case $retval in
26 | $DIALOG_CANCEL)
27 | echo "Cancel pressed.";exit;;
28 | $DIALOG_ESC)
29 | echo "ESC pressed.";exit;;
30 | esac
31 |
32 | width=`expr $width + 1`
33 |
34 | done
35 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/tailboxbg1:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: tailboxbg1 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | ./killall listing
9 | ./listing >listing.out &
10 |
11 | $DIALOG --title "TAIL BOXES" \
12 | --begin 10 10 --tailboxbg listing.out 8 58 \
13 | --and-widget \
14 | --begin 15 15 --tailboxbg listing.out 8 58 \
15 | --and-widget \
16 | --begin 3 10 --msgbox "Press OK " 5 30 \
17 | 2>$tempfile
18 |
19 | # The --and-widget causes a tab to be emitted, but our example will only
20 | # write one number to stderr.
21 | pid=`cat $tempfile |sed -e 's/ //g'`
22 | if test -n "$pid" ; then
23 | # wait a while for the background process to run
24 | sleep 10
25 |
26 | # now kill it
27 | kill -3 $pid 2>&1 >/dev/null 2>/dev/null
28 | echo "killed [$pid]"
29 | fi
30 |
31 | # ...and the process that is making the listing
32 | ./killall listing
33 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --title "INPUT BOX" --clear \
9 | --inputbox "Hi, this is an input dialog box. You can use \n
10 | this to ask questions that require the user \n
11 | to input a string as the answer. You can \n
12 | input strings of length longer than the \n
13 | width of the input box, in that case, the \n
14 | input field will be automatically scrolled. \n
15 | You can use BACKSPACE to correct errors. \n\n
16 | Try entering your name below:" 16 51 2> $tempfile
17 |
18 | retval=$?
19 |
20 | case $retval in
21 | 0)
22 | echo "Input string is `cat $tempfile`";;
23 | 1)
24 | echo "Cancel pressed.";;
25 | 255)
26 | if test -s $tempfile ; then
27 | cat $tempfile
28 | else
29 | echo "ESC pressed."
30 | fi
31 | ;;
32 | esac
33 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox2:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox2 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --title "INPUT BOX" --clear \
9 | --inputbox "Hi, this is an input dialog box. You can use \n
10 | this to ask questions that require the user \n
11 | to input a string as the answer. You can \n
12 | input strings of length longer than the \n
13 | width of the input box, in that case, the \n
14 | input field will be automatically scrolled. \n
15 | You can use BACKSPACE to correct errors. \n\n
16 | Try entering your name below:" 16 51 2> $tempfile
17 |
18 | retval=$?
19 |
20 | case $retval in
21 | 0)
22 | echo "Input string is `cat $tempfile`";;
23 | 1)
24 | echo "Cancel pressed.";;
25 | 255)
26 | if test -s $tempfile ; then
27 | cat $tempfile
28 | else
29 | echo "ESC pressed."
30 | fi
31 | ;;
32 | esac
33 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox4:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox4 1521 2006-06-28 13:53:39Z geggo $
3 | # An example which does not use temporary files, as suggested by Cary Evans:
4 | : ${DIALOG=dialog}
5 |
6 | exec 3>&1
7 | RESULT=`$DIALOG --title "INPUT BOX" --clear \
8 | --inputbox "Hi, this is an input dialog box. You can use \n
9 | this to ask questions that require the user \n
10 | to input a string as the answer. You can \n
11 | input strings of length longer than the \n
12 | width of the input box, in that case, the \n
13 | input field will be automatically scrolled. \n
14 | You can use BACKSPACE to correct errors. \n\n
15 | Try entering your name below:" 16 51 2>&1 1>&3`
16 | retval=$?
17 | exec 3>&-
18 |
19 | case $retval in
20 | 0)
21 | echo "Input string is $RESULT";;
22 | 1)
23 | echo "Cancel pressed.";;
24 | 255)
25 | if test -n "$RESULT" ; then
26 | echo "$RESULT"
27 | else
28 | echo "ESC pressed."
29 | fi
30 | ;;
31 | esac
32 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/tailboxbg2:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: tailboxbg2 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | ./killall listing
9 | ./listing >listing.out &
10 |
11 | $DIALOG --title "TAIL BOXES" \
12 | --no-kill \
13 | --begin 10 10 --tailboxbg listing.out 8 58 \
14 | --and-widget \
15 | --begin 15 15 --tailboxbg listing.out 8 58 \
16 | --and-widget \
17 | --begin 3 10 --msgbox "Press OK " 5 30 \
18 | 2>$tempfile
19 |
20 | # The --and-widget causes a tab to be emitted, but our example will only
21 | # write one number to stderr.
22 | pid=`cat $tempfile |sed -e 's/ //g'`
23 | if test -n "$pid" ; then
24 | # wait a while for the background process to run
25 | sleep 10
26 |
27 | # now kill it
28 | kill -3 $pid 2>&1 >/dev/null 2>/dev/null
29 | echo "killed [$pid]"
30 | fi
31 |
32 | # ...and the process that is making the listing
33 | ./killall listing
34 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/password:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: password 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --title "INPUT BOX" --clear \
9 | --passwordbox "Hi, this is an password dialog box. You can use \n
10 | this to ask questions that require the user \n
11 | to input a string as the answer. You can \n
12 | input strings of length longer than the \n
13 | width of the input box, in that case, the \n
14 | input field will be automatically scrolled. \n
15 | You can use BACKSPACE to correct errors. \n\n
16 | Try entering your name below:" 16 51 2> $tempfile
17 |
18 | retval=$?
19 |
20 | case $retval in
21 | 0)
22 | echo "Input string is `cat $tempfile`";;
23 | 1)
24 | echo "Cancel pressed.";;
25 | 255)
26 | if test -s $tempfile ; then
27 | cat $tempfile
28 | else
29 | echo "ESC pressed."
30 | fi
31 | ;;
32 | esac
33 |
--------------------------------------------------------------------------------
/tools/header_definition/segment.def:
--------------------------------------------------------------------------------
1 | t_segment *(*add) ( t_segment * s);
2 | t_segment *(*create) ( );
3 | t_segment *(*duplicate) ( t_segment * s);
4 | t_segment *(*find_by_end) ( t_segment * s, unsigned int addr, unsigned int flags);
5 | t_segment *(*find_by_end_and_name) ( t_segment * s, unsigned int addr, char *name, unsigned int flags);
6 | t_segment *(*find_by_name) ( t_segment * s, char *name, unsigned int flags);
7 | t_segment *(*find_by_num) ( t_segment * s, unsigned int num);
8 | t_segment *(*find_by_start) ( t_segment * s, unsigned int addr, unsigned int flags);
9 | t_segment *(*get_last) ( t_segment * s);
10 | unsigned int (*count) ( t_segment * s);
11 | unsigned int (*dump) ( t_segment * s);
12 | unsigned int (*is_mapped) ( t_segment * s);
13 | unsigned int (*release) ( t_segment * s);
14 | unsigned int (*release_all) ( t_segment * s);
15 | void (*hide_in_mem) ( t_segment * s);
16 | void (*map_in_mem) ( t_segment * s);
17 | unsigned int (*is_sparse) ( t_segment * s);
18 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox3:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox3 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --nocancel \
9 | --title "INPUT BOX" --clear \
10 | --inputbox "Hi, this is an input dialog box. You can use \n\
11 | this to ask questions that require the user \n\
12 | to input a string as the answer. You can \n\
13 | input strings of length longer than the \n\
14 | width of the input box, in that case, the \n\
15 | input field will be automatically scrolled. \n\
16 | You can use BACKSPACE to correct errors. \n\n\
17 | Try entering your name below:" 16 51 2> $tempfile
18 |
19 | retval=$?
20 |
21 | case $retval in
22 | 0)
23 | echo "Input string is `cat $tempfile`";;
24 | 1)
25 | echo "Cancel pressed.";;
26 | 255)
27 | if test -s $tempfile ; then
28 | cat $tempfile
29 | else
30 | echo "ESC pressed."
31 | fi
32 | ;;
33 | esac
34 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/password1:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: password1 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --title "INPUT BOX" --clear \
9 | --insecure \
10 | --passwordbox "Hi, this is an password dialog box. You can use \n
11 | this to ask questions that require the user \n
12 | to input a string as the answer. You can \n
13 | input strings of length longer than the \n
14 | width of the input box, in that case, the \n
15 | input field will be automatically scrolled. \n
16 | You can use BACKSPACE to correct errors. \n\n
17 | Try entering your name below:" 16 51 2> $tempfile
18 |
19 | retval=$?
20 |
21 | case $retval in
22 | 0)
23 | echo "Input string is `cat $tempfile`";;
24 | 1)
25 | echo "Cancel pressed.";;
26 | 255)
27 | if test -s $tempfile ; then
28 | cat $tempfile
29 | else
30 | echo "ESC pressed."
31 | fi
32 | ;;
33 | esac
34 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/yesno-help:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: yesno-help 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | $DIALOG --title "YES/NO BOX" --clear --help-button \
6 | --yesno "Hi, this is a yes/no dialog box. You can use this to ask \
7 | questions that have an answer of either yes or no. \
8 | BTW, do you notice that long lines will be automatically \
9 | wrapped around so that they can fit in the box? You can \
10 | also control line breaking explicitly by inserting \
11 | 'backslash n' at any place you like, but in this case, \
12 | auto wrap around will be disabled and you will have to \
13 | control line breaking yourself." 15 61
14 |
15 | case $? in
16 | 0)
17 | echo "Yes chosen.";;
18 | 1)
19 | echo "No chosen.";;
20 | 2)
21 | echo "Help pressed.";;
22 | 3)
23 | echo "Extra pressed.";;
24 | 255)
25 | echo "ESC pressed.";;
26 | esac
27 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/password2:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: password2 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --title "INPUT BOX" --clear \
9 | --insecure \
10 | --passwordbox "Hi, this is an password dialog box. You can use \n
11 | this to ask questions that require the user \n
12 | to input a string as the answer. You can \n
13 | input strings of length longer than the \n
14 | width of the input box, in that case, the \n
15 | input field will be automatically scrolled. \n
16 | You can use BACKSPACE to correct errors. \n\n
17 | Try entering your name below:" 16 51 stupid 2> $tempfile
18 |
19 | retval=$?
20 |
21 | case $retval in
22 | 0)
23 | echo "Input string is `cat $tempfile`";;
24 | 1)
25 | echo "Cancel pressed.";;
26 | 255)
27 | if test -s $tempfile ; then
28 | cat $tempfile
29 | else
30 | echo "ESC pressed."
31 | fi
32 | ;;
33 | esac
34 |
--------------------------------------------------------------------------------
/tools/dialog.src/mkdirs.sh:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # mkinstalldirs --- make directory hierarchy
3 | # Author: Noah Friedman
4 | # Created: 1993-05-16
5 | # Last modified: 1994-03-25
6 | # Public domain
7 | #
8 |
9 | errstatus=0
10 | umask 022
11 |
12 | for file in ${1+"$@"} ; do
13 | set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
14 | shift
15 |
16 | pathcomp=
17 | for d in ${1+"$@"} ; do
18 | pathcomp="$pathcomp$d"
19 | case "$pathcomp" in
20 | -* ) pathcomp=./$pathcomp ;;
21 | esac
22 |
23 | if test ! -d "$pathcomp"; then
24 | echo "mkdir $pathcomp" 1>&2
25 | case "$pathcomp" in
26 | [abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]: )
27 | ;; # DOSISH systems
28 | * ) mkdir "$pathcomp" || errstatus=$? ;;
29 | esac
30 | fi
31 |
32 | pathcomp="$pathcomp/"
33 | done
34 | done
35 |
36 | exit $errstatus
37 |
38 | # mkinstalldirs ends here
39 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/infobox5:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: infobox5 1521 2006-06-28 13:53:39Z geggo $
3 | # get rid of all flickering by constructing a script unroll the loop, leaving
4 | # us in curses-mode until we're done counting.
5 | : ${DIALOG=dialog}
6 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
7 | trap "rm -f $tempfile" 0 1 2 5 15
8 |
9 | left=10
10 | unit="seconds"
11 | last='\'
12 |
13 | cat >>$tempfile <>$tempfile <>$tempfile
37 |
38 | . $tempfile
39 |
--------------------------------------------------------------------------------
/include/file_io.h:
--------------------------------------------------------------------------------
1 | #ifndef __TRIX_FILE_IO_H__
2 | #define __TRIX_FILE_IO_H__
3 |
4 |
5 | //typedef, so we can miss the struct while programming
6 | typedef struct s_fileinfo t_fileinfo;
7 | struct s_fileinfo
8 | {
9 | STRUCT_HEADER_LIST(t_fileinfo);
10 | char *filename;
11 | char *path;
12 | t_stage *stages;
13 | t_stage *stages_org;
14 | t_stage *stages_mod;
15 | void *priv;
16 | unsigned int options;
17 | };
18 |
19 |
20 | #include "trixplug_file_io.h"
21 |
22 | t_fileinfo *file_io_open ( const char *path, const char *filename );
23 | unsigned int file_io_write ( const char *filename, const t_fileinfo * fi );
24 | unsigned int file_io_release ( t_fileinfo * fi );
25 | t_fileinfo *file_io_create_empty ( );
26 | unsigned int file_io_release ( t_fileinfo * fi );
27 | unsigned int file_io_release_all ( t_fileinfo * fi );
28 | t_fileinfo *file_io_open_directory ( char *path, unsigned int *ret_entries );
29 | int file_io_create_directory ( char *dirname );
30 |
31 | #endif
32 |
--------------------------------------------------------------------------------
/projects/lcd_test/lcd_test.c:
--------------------------------------------------------------------------------
1 |
2 |
3 | #include "hw_defines.h"
4 | #include "base.h"
5 | #include "lcd.h"
6 |
7 |
8 |
9 | // this one must set up stack before it changes ARM mode
10 | int
11 | main ( )
12 | {
13 |
14 | #ifdef OWN_STACK
15 | // use our own stack to make sure we have enough
16 | u32 old_stack = get_stack ();
17 | arm_mode_set ( 0x1F );
18 | set_stack ( OWN_STACK );
19 | #endif
20 |
21 | code_main ( );
22 |
23 | #ifdef OWN_STACK
24 | // restore old stack pointer
25 | set_stack ( old_stack );
26 | #endif
27 |
28 | return 1;
29 | }
30 |
31 | u32
32 | code_main ( )
33 | {
34 | mcupll_set ( 3, 0 );
35 |
36 | // disable interrups
37 | arm_int_disable ( );
38 | int_init ( );
39 |
40 | // enable CBUS access for illumination
41 | cbus_unlock ();
42 | cbus_init ();
43 | uem_init ();
44 |
45 | // LCD stuff
46 | lcd_setup ();
47 | lcd_clear ();
48 |
49 | // lcd_pcf8833_draw_line ( 0, 0, 10, 0, 0xAA55 );
50 |
51 | lcd_write ( 10, 10, "Welcome", COLOR(0,0,0), 0 );
52 |
53 | return 1;
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox5:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox5 1521 2006-06-28 13:53:39Z geggo $
3 | # use --output-fd to write to a different output than stderr
4 | : ${DIALOG=dialog}
5 |
6 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
7 | trap "rm -f $tempfile" 0 1 2 5 15
8 |
9 | $DIALOG --title "INPUT BOX" --clear --output-fd 4 \
10 | --inputbox "Hi, this is an input dialog box. You can use \n
11 | this to ask questions that require the user \n
12 | to input a string as the answer. You can \n
13 | input strings of length longer than the \n
14 | width of the input box, in that case, the \n
15 | input field will be automatically scrolled. \n
16 | You can use BACKSPACE to correct errors. \n\n
17 | Try entering your name below:" 16 51 4> $tempfile
18 |
19 | retval=$?
20 |
21 | case $retval in
22 | 0)
23 | echo "Input string is `cat $tempfile`";;
24 | 1)
25 | echo "Cancel pressed.";;
26 | 255)
27 | if test -s $tempfile ; then
28 | cat $tempfile
29 | else
30 | echo "ESC pressed."
31 | fi
32 | ;;
33 | esac
34 |
--------------------------------------------------------------------------------
/src/ui-qt/ui_plug.h:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | ** Include any stock Qt files here...
4 | **
5 | */
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 | //---------------------------------------------------------------------------
13 |
14 | /*
15 | ** Include any application specific headers here.
16 | **
17 | */
18 | #include "ui_Plugins.h"
19 |
20 |
21 | class QTreeWidget;
22 |
23 | //---------------------------------------------------------------------------
24 | class PluginWindow : public QDialog, private Ui::dlgPlugins
25 | {
26 | Q_OBJECT
27 |
28 | public:
29 | PluginWindow();
30 | void refresh_content();
31 | bool unload_allowed;
32 | void unloading ( bool state );
33 | void update_timer();
34 | int needs_update;
35 |
36 | private slots:
37 | void treeWidgetChanged ( );
38 | void btnUnloadClicked();
39 |
40 | };
41 | //---------------------------------------------------------------------------
42 |
--------------------------------------------------------------------------------
/platform/msvc/TriX.manifest:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
10 |
11 |
12 |
21 |
22 |
23 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/src/ui-qt/ui_opt.h:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | ** Include any stock Qt files here...
4 | **
5 | */
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 |
13 | #include "ui_options.h"
14 |
15 | //forward declaration - so class needn't be included (compiles faster)
16 | class QTreeWidget;
17 |
18 | class options : public QDialog, private Ui::dlgOptions
19 | {
20 | Q_OBJECT
21 |
22 | public:
23 | options( bool modal );
24 | ~options();
25 |
26 | public:
27 | char *option_get_part ( char * option, int part );
28 | void refresh_content ();
29 | void update_timer();
30 | int needs_update;
31 |
32 | private slots:
33 | void sel_changed(QTreeWidgetItem *item, int col);
34 | void item_dbl_clicked(QTreeWidgetItem *item, int col);
35 | void value_edited ( const QString& text );
36 | void test();
37 | void default_option();
38 | void accept_options();
39 | void apply_options();
40 | void resize_all ();
41 |
42 | };
43 |
44 |
--------------------------------------------------------------------------------
/scripts/g_test_fileinfo.trx:
--------------------------------------------------------------------------------
1 |
2 | int g_test_fileinfo()
3 | {
4 | t_fileinfo *fi = NULL;
5 |
6 | printf ( "\n\n\n" );
7 | printf ( "------------------------------------------------------\n" );
8 | printf ( "-------------- test script for TriX --------------\n" );
9 | printf ( "------------------------------------------------------\n" );
10 | printf ( "\n" );
11 |
12 | printf ( "Getting FileInfo struct: " );
13 | fi = GetWorkspace ()->fileinfo;
14 | if ( !fi )
15 | {
16 | printf ( "Failed :(\n" );
17 | return 0;
18 | }
19 | printf ( "Okay\n" );
20 | printf ( "dump it:\n" );
21 | __stage_dump ( fi->stages );
22 |
23 | printf ( "\n" );
24 | printf ( "------------------------------------------------------\n" );
25 | printf ( "\n" );
26 |
27 | printf ( "Opening external file: " );
28 | fi = __file_open ( "test.fls" );
29 | if ( !fi )
30 | {
31 | printf ( "Error opening file\n" );
32 | return 0;
33 | }
34 |
35 | printf ( "Okay\n" );
36 | printf ( "dump it:\n" );
37 | __stage_dump ( fi->stages );
38 |
39 | return 0;
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/menubox9:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: menubox9 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | exec 3>&1
6 | value=`$DIALOG --help-button \
7 | --clear \
8 | --title "Select Linux installation partition:" \
9 | --menu \
10 | "Please select a partition from the following list to use for your \
11 | root (/) Linux partition." 13 70 5 \
12 | "/dev/hda2" "Linux native 30724312K" \
13 | "/dev/hda4" "Linux native 506047K" \
14 | "/dev/hdb1" "Linux native 4096543K" \
15 | "/dev/hdb2" "Linux native 2586465K" \
16 | "---" "(add none, continue with setup)" \
17 | "---" "(add none, continue with setup)" \
18 | "---" "(add none, continue with setup)" \
19 | "---" "(add none, continue with setup)" \
20 | "---" "(add none, continue with setup)" \
21 | 2>&1 1>&3`
22 | retval=$?
23 | exec 3>&-
24 |
25 | case $retval in
26 | 0)
27 | echo "$value chosen.";;
28 | 1)
29 | echo "Cancel pressed.";;
30 | 2)
31 | echo "Help pressed ($value)";;
32 | 255)
33 | if test -n "$value" ; then
34 | echo "$value"
35 | else
36 | echo "ESC pressed."
37 | fi
38 | ;;
39 | esac
40 |
--------------------------------------------------------------------------------
/plugins/TriX_UFS/source/FIA.h:
--------------------------------------------------------------------------------
1 | #ifndef FIAH
2 | #define FIAH
3 |
4 | #include
5 |
6 | #define FIA_2NDBOOT 0xA0
7 | #define FIA_FLASH 0xA1
8 | #define FIA_CBUS 0xA1
9 |
10 | enum {
11 | FIAERR_OK = 0,
12 | FIAERR_OPEN,
13 | FIAERR_SECTION,
14 | FIAERR_NOASIC,
15 | FIAERR_NOFLASHID
16 | };
17 |
18 | typedef struct {
19 | unsigned char type;
20 | unsigned int length;
21 | unsigned int sections;
22 | } TFIAHdr;
23 |
24 | typedef struct {
25 | unsigned char *ptr;
26 | int size;
27 | } TData;
28 |
29 | class TFIA
30 | {
31 | private:
32 | int handle;
33 |
34 | public:
35 | TFIAHdr hdr;
36 | TData dataBin;
37 | TData dataSec;
38 | char filepath[ 256 ];
39 |
40 | int Open( unsigned char *filename );
41 | void Close();
42 | int GetSection( unsigned char num, unsigned char *data, int *size );
43 | int CheckASIC( unsigned short asicid );
44 | int CheckFlashID( int flashid );
45 |
46 | unsigned long EndianDWORD( unsigned long i );
47 | unsigned short EndianWORD( unsigned short i );
48 |
49 | TFIA();
50 | ~TFIA();
51 | };
52 | #endif
--------------------------------------------------------------------------------
/tools/dialog.src/samples/infobox6:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: infobox6 1521 2006-06-28 13:53:39Z geggo $
3 | # get rid of all flickering by constructing a script unroll the loop, leaving
4 | # us in curses-mode until we're done counting.
5 | #
6 | # a little fancier than infobox5, this moves the widget at each step.
7 | : ${DIALOG=dialog}
8 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
9 | trap "rm -f $tempfile" 0 1 2 5 15
10 |
11 | left=10
12 | unit="seconds"
13 | last='\'
14 |
15 | cat >>$tempfile <>$tempfile <>$tempfile
39 |
40 | . $tempfile
41 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox-help:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox-help 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --title "INPUT BOX" --clear \
9 | --help-button \
10 | --inputbox "Hi, this is an input dialog box. You can use \n
11 | this to ask questions that require the user \n
12 | to input a string as the answer. You can \n
13 | input strings of length longer than the \n
14 | width of the input box, in that case, the \n
15 | input field will be automatically scrolled. \n
16 | You can use BACKSPACE to correct errors. \n\n
17 | Try entering your name below:" 16 51 2> $tempfile
18 |
19 | retval=$?
20 |
21 | case $retval in
22 | 0)
23 | echo "Input string is `cat $tempfile`";;
24 | 1)
25 | echo "Button 1 (Cancel) pressed.";;
26 | 2)
27 | echo "Button 2 (Help) pressed.";;
28 | 3)
29 | echo "Button 3 (Extra) pressed.";;
30 | 255)
31 | if test -s $tempfile ; then
32 | cat $tempfile
33 | else
34 | echo "ESC pressed."
35 | fi
36 | ;;
37 | esac
38 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox-extra:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox-extra 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --title "INPUT BOX" --clear \
9 | --extra-button \
10 | --inputbox "Hi, this is an input dialog box. You can use \n
11 | this to ask questions that require the user \n
12 | to input a string as the answer. You can \n
13 | input strings of length longer than the \n
14 | width of the input box, in that case, the \n
15 | input field will be automatically scrolled. \n
16 | You can use BACKSPACE to correct errors. \n\n
17 | Try entering your name below:" 16 51 2> $tempfile
18 |
19 | retval=$?
20 |
21 | case $retval in
22 | 0)
23 | echo "Input string is `cat $tempfile`";;
24 | 1)
25 | echo "Button 1 (Cancel) pressed.";;
26 | 2)
27 | echo "Button 2 (Help) pressed.";;
28 | 3)
29 | echo "Button 3 (Extra) pressed.";;
30 | 255)
31 | if test -s $tempfile ; then
32 | cat $tempfile
33 | else
34 | echo "ESC pressed."
35 | fi
36 | ;;
37 | esac
38 |
--------------------------------------------------------------------------------
/include/seer_vcpudeco.h:
--------------------------------------------------------------------------------
1 | /************************************************************************
2 | SeeR a C-scripting library v 0.95a
3 | http://przemekp.prv.pl/seer/ dev@przemekp.prv.pl
4 |
5 | File:vcpudeco.h (portable)
6 | Desc:fixed arythmetics, included from vcpudeco.c
7 |
8 | Copyright (c) 1998-99,2002, Przemyslaw Podsiadly
9 | All rights reserved.
10 | See seer.h for license information.
11 | ************************************************************************/
12 |
13 | #ifndef __inline__
14 | #if defined(WIN32) && defined (_MSC_VER)
15 | #define __inline__ __inline
16 | #else
17 | #define __inline__ inline
18 | #endif
19 | #endif
20 |
21 | //assume 'portable' has 64bit long called 'long long'
22 | //this is standard gcc
23 | //it would be cool if I could use 32 bit ints only...
24 | //typedef int64 long long;
25 |
26 | __inline__ int fixedmul(int x,int y)
27 | {
28 | int64 d=x;
29 | d*=y;
30 | d>>=16;
31 | return (int)d;
32 | }
33 |
34 | __inline__ int fixeddiv(int x,int y)
35 | {
36 | int64 d=x;
37 | d<<=16;
38 | if (y) d/=y;
39 | return (int)d;
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox7:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox7 1521 2006-06-28 13:53:39Z geggo $
3 | # An example which produces two widget outputs.
4 | : ${DIALOG=dialog}
5 |
6 | MSG='Hi, this is an input dialog box. You can use \n
7 | this to ask questions that require the user \n
8 | to input a string as the answer. You can \n
9 | input strings of length longer than the \n
10 | width of the input box, in that case, the \n
11 | input field will be automatically scrolled. \n
12 | You can use BACKSPACE to correct errors. \n\n
13 | Try entering your name below:'
14 |
15 | # separate with a line-break (newline)
16 | SEP='
17 | '
18 |
19 | exec 3>&1
20 | RESULT=`$DIALOG --title "INPUT BOX" --clear --separate-widget "$SEP" \
21 | --inputbox "$MSG" 16 51 \
22 | --title "ANOTHER INPUT BOX" \
23 | --inputbox "$MSG" 16 51 \
24 | 2>&1 1>&3`
25 | retval=$?
26 | exec 3>&-
27 |
28 | case $retval in
29 | 0)
30 | echo "Input string is $RESULT";;
31 | 1)
32 | echo "Cancel pressed.";;
33 | 255)
34 | if test -n "$RESULT" ; then
35 | echo "$RESULT"
36 | else
37 | echo "ESC pressed."
38 | fi
39 | ;;
40 | esac
41 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/inputbox-both:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: inputbox-both 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --title "INPUT BOX" --clear \
9 | --extra-button \
10 | --help-button \
11 | --inputbox "Hi, this is an input dialog box. You can use \n
12 | this to ask questions that require the user \n
13 | to input a string as the answer. You can \n
14 | input strings of length longer than the \n
15 | width of the input box, in that case, the \n
16 | input field will be automatically scrolled. \n
17 | You can use BACKSPACE to correct errors. \n\n
18 | Try entering your name below:" 16 51 2> $tempfile
19 |
20 | retval=$?
21 |
22 | case $retval in
23 | 0)
24 | echo "Input string is `cat $tempfile`";;
25 | 1)
26 | echo "Button 1 (Cancel) pressed.";;
27 | 2)
28 | echo "Button 2 (Help) pressed.";;
29 | 3)
30 | echo "Button 3 (Extra) pressed.";;
31 | 255)
32 | if test -s $tempfile ; then
33 | cat $tempfile
34 | else
35 | echo "ESC pressed."
36 | fi
37 | ;;
38 | esac
39 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/temp/examples/win32_example/StdAfx.h:
--------------------------------------------------------------------------------
1 | // stdafx.h : include file for standard system include files,
2 | // or project specific include files that are used frequently, but
3 | // are changed infrequently
4 | //
5 |
6 | #if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
7 | #define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_
8 |
9 | #if _MSC_VER > 1000
10 | #pragma once
11 | #endif // _MSC_VER > 1000
12 |
13 | #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
14 |
15 |
16 | // Windows Header Files:
17 | #include
18 |
19 | // C RunTime Header Files
20 | #include
21 | #include
22 | #include
23 | #include
24 |
25 | // Local Header Files
26 |
27 | // TODO: reference additional headers your program requires here
28 |
29 | //{{AFX_INSERT_LOCATION}}
30 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
31 |
32 | # import "pdginterfc.dll"
33 | using namespace pdginterfc;
34 |
35 | #endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
36 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/yesno-extra:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: yesno-extra 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | $DIALOG --title "YES/NO/MAYBE BOX" \
6 | --clear \
7 | --ok-label "Next" \
8 | --no-label "Cancel" \
9 | --extra-label "Previous" --extra-button \
10 | --yesno "Hi, this is a yes/no dialog box with its labels changed. \
11 | You can use this to ask \
12 | questions that have an answer of either yes or no (or maybe). \
13 | BTW, do you notice that long lines will be automatically \
14 | wrapped around so that they can fit in the box? You can \
15 | also control line breaking explicitly by inserting \
16 | 'backslash n' at any place you like, but in this case, \
17 | auto wrap around will be disabled and you will have to \
18 | control line breaking yourself." 15 61
19 |
20 | case $? in
21 | 0)
22 | echo "Next chosen.";;
23 | 1)
24 | echo "Cancel chosen.";;
25 | 2)
26 | echo "Help pressed.";;
27 | 3)
28 | echo "Previous pressed.";;
29 | 255)
30 | echo "ESC pressed.";;
31 | esac
32 |
--------------------------------------------------------------------------------
/include/trixplug_trixcrypt.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __TRIX_TRIXPLUG_TRIXCRYPT_H__
3 | #define __TRIX_TRIXPLUG_TRIXCRYPT_H__
4 |
5 | /* trixplug struct */
6 |
7 | struct trixcrypt_funcs
8 | {
9 | unsigned int (*alloc_priv) ( t_stage * stage);
10 | unsigned int (*set_cryptkeys) ( t_crypt_key * encrypt_key, t_crypt_key * decrypt_key);
11 | unsigned int (*set_decryptkey) ( t_crypt_key * key);
12 | unsigned int (*set_encryptkey) ( t_crypt_key * key);
13 | unsigned int (*copy_cryptkey) ( t_crypt_key * dst, t_crypt_key * src);
14 | };
15 |
16 | /* trixplug struct initializer */
17 |
18 | #define TRIXCRYPT_PLUG_INIT \
19 | extern struct trix_functions *ft;\
20 | struct trixcrypt_funcs trixcrypt_functions;\
21 | unsigned int trixcrypt_plug_init ( ) \
22 | {\
23 | if ( !ft )\
24 | return E_FAIL;\
25 | ft->trixcrypt = &trixcrypt_functions;\
26 | ft->trixcrypt->alloc_priv = trixcrypt_alloc_priv;\
27 | ft->trixcrypt->copy_cryptkey = trixcrypt_copy_cryptkey;\
28 | ft->trixcrypt->set_decryptkey = trixcrypt_set_decryptkey;\
29 | ft->trixcrypt->set_encryptkey = trixcrypt_set_encryptkey;\
30 | ft->trixcrypt->set_cryptkeys = trixcrypt_set_cryptkeys;\
31 | \
32 | return E_OK;\
33 | }
34 |
35 | #endif
36 |
--------------------------------------------------------------------------------
/scripts/k_compile_arm_c_files/rotate_lcd.c:
--------------------------------------------------------------------------------
1 |
2 | #define MAX (128*128-2)
3 | #define PIXEL(num) address[(num)/2*3]
4 |
5 | void trans ( unsigned char *pos1, unsigned char *pos2 );
6 |
7 | void rotate_lcd( unsigned char *address, int length )
8 | {
9 | int pos = 0;
10 | unsigned char buf[3];
11 |
12 |
13 | while ( pos < MAX/2 )
14 | {
15 | trans ( &PIXEL(pos), &PIXEL(MAX-pos) );
16 | pos += 2;
17 | }
18 |
19 | spi_send_dma ( address, length );
20 | while ( !spi_check_bit ( 2 ) );
21 |
22 | pos = 0;
23 | while ( pos < MAX/2 )
24 | {
25 | trans ( &PIXEL(pos), &PIXEL(MAX-pos) );
26 | pos += 2;
27 | }
28 | }
29 |
30 |
31 | void trans ( unsigned char *pos1, unsigned char *pos2 )
32 | {
33 | unsigned char buf[3];
34 | unsigned char *x = pos1+0;
35 | unsigned char *y = pos1+1;
36 | unsigned char *z = pos1+2;
37 | unsigned char *a = pos2+0;
38 | unsigned char *b = pos2+1;
39 | unsigned char *c = pos2+2;
40 |
41 | buf[0] = (*y)<<4|(*z)>>4;
42 | buf[1] = (*z)<<4|(*x)>>4;
43 | buf[2] = (*x)<<4|(*y)>>4;
44 |
45 | *x = (*b)<<4|(*c)>>4;
46 | *y = (*c)<<4|(*a)>>4;
47 | *z = (*a)<<4|(*b)>>4;
48 |
49 | *a = buf[0];
50 | *b = buf[1];
51 | *c = buf[2];
52 |
53 | }
54 |
--------------------------------------------------------------------------------
/src/ui-qt/ui_object_tree.h:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | ** Include any stock Qt files here...
4 | **
5 | */
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 | //---------------------------------------------------------------------------
13 |
14 | /*
15 | ** Include any application specific headers here.
16 | **
17 | */
18 | #include "ui_ObjectTree.h"
19 |
20 | extern "C"
21 | {
22 | #include "defines.h"
23 | #include "treenode.h"
24 |
25 | };
26 |
27 | class QTreeWidget;
28 |
29 | //---------------------------------------------------------------------------
30 | class ObjectTree : public QDialog, private Ui::dlgObjectTreeDisplay
31 | {
32 | Q_OBJECT
33 |
34 | public:
35 | ObjectTree();
36 | unsigned int SetData ( t_treenode *data );
37 | unsigned int SetDataSubcall ( t_treenode *treenode, QTreeWidgetItem *tree );
38 |
39 | private slots:
40 | int treeItemClicked ( QTreeWidgetItem * item, int column );
41 | void treeItemChanged ( );
42 |
43 | };
44 | //---------------------------------------------------------------------------
45 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/yesno-both:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: yesno-both 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | $DIALOG --title "YES/NO/MAYBE BOX" \
6 | --clear \
7 | --ok-label "Next" \
8 | --no-label "Cancel" \
9 | --extra-label "Previous" --extra-button \
10 | --help-button \
11 | --yesno "Hi, this is a yes/no dialog box with its labels changed. \
12 | You can use this to ask \
13 | questions that have an answer of either yes or no (or maybe). \
14 | BTW, do you notice that long lines will be automatically \
15 | wrapped around so that they can fit in the box? You can \
16 | also control line breaking explicitly by inserting \
17 | 'backslash n' at any place you like, but in this case, \
18 | auto wrap around will be disabled and you will have to \
19 | control line breaking yourself." 15 61
20 |
21 | case $? in
22 | 0)
23 | echo "Next chosen.";;
24 | 1)
25 | echo "Cancel chosen.";;
26 | 2)
27 | echo "Help pressed.";;
28 | 3)
29 | echo "Previous pressed.";;
30 | 255)
31 | echo "ESC pressed.";;
32 | esac
33 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/menubox:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: menubox 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --clear --title "MENU BOX" \
9 | --menu "Hi, this is a menu box. You can use this to \n\
10 | present a list of choices for the user to \n\
11 | choose. If there are more items than can fit \n\
12 | on the screen, the menu will be scrolled. \n\
13 | You can use the UP/DOWN arrow keys, the first \n\
14 | letter of the choice as a hot key, or the \n\
15 | number keys 1-9 to choose an option.\n\
16 | Try it now!\n\n\
17 | Choose the OS you like:" 20 51 4 \
18 | "Linux" "The Great Unix Clone for 386/486" \
19 | "NetBSD" "Another free Unix Clone for 386/486" \
20 | "OS/2" "IBM OS/2" \
21 | "WIN NT" "Microsoft Windows NT" \
22 | "PCDOS" "IBM PC DOS" \
23 | "MSDOS" "Microsoft DOS" 2> $tempfile
24 |
25 | retval=$?
26 |
27 | choice=`cat $tempfile`
28 |
29 | case $retval in
30 | 0)
31 | echo "'$choice' chosen.";;
32 | 1)
33 | echo "Cancel pressed.";;
34 | 255)
35 | echo "ESC pressed.";;
36 | esac
37 |
--------------------------------------------------------------------------------
/include/crypto_seer.h:
--------------------------------------------------------------------------------
1 |
2 | typedef struct s_crypt_key {
3 | unsigned char id;
4 | char *name;
5 | char *primefac;
6 | char *key;
7 | } t_crypt_key;
8 |
9 | // INSERT_DECLARATIONS
10 |
11 | unsigned int CryptoGenerateKey ( int bits, t_crypt_key *priv_key, t_crypt_key *pub_key ) { return __crypto_generate_key ( bits, priv_key, pub_key ); }
12 | unsigned int CryptoGenerateSHA1 ( const unsigned char *data, unsigned int length, char *hash ) { return __crypto_generate_sha1 ( data, length, hash ); }
13 | unsigned int CryptoGenerateMD5 ( const unsigned char *data, unsigned int length, char *hash ) { return __crypto_generate_md5 ( data, length, hash ); }
14 | char *CryptoCheckIntegrity ( char **data, int length, t_crypt_key *key ) { return __crypto_check_integrity ( data, length, key ) ;}
15 | char *CryptoGenerateCert ( char *data, int length, char *signature, t_crypt_key *key ) { return __crypto_generate_cert ( data, length, signature, key );}
16 | char *CryptoGetSigner ( char *signature ) { return __crypto_get_signer ( signature );}
17 | char *CryptoGetSignee ( char *signature ) { return __crypto_get_signee ( signature );}
18 | char *CryptoGetSignkey ( char *signature ) { return __crypto_get_signkey ( signature );}
19 |
20 |
--------------------------------------------------------------------------------
/scripts/SE/super_size_me.trx:
--------------------------------------------------------------------------------
1 | // load plugin
2 | #plugin trix_fmtbabe
3 |
4 | // include headers
5 | #include trix
6 | #include trix_fmtbabe
7 | #include "scripts/SE/se_babe_defs.trx"
8 |
9 | int main ()
10 | {
11 | t_segment *cs = NULL;
12 | char *extra = NULL;
13 | unsigned int length = 0;
14 | unsigned int max = 0;
15 | unsigned int start = 0;
16 |
17 | BABE_INIT // init babe workspace
18 |
19 | max = 0x3330000 - GetSize();
20 |
21 | length = UiDlgInt ( "How many bytes you want to add?\nPress enter to get maximal number of available bytes", 0, max );
22 | if ( length == E_FAIL )
23 | length = max;
24 |
25 | cs = __stage_get_current ( ws->fileinfo->stages )->segments;
26 | cs = __segment_find_by_name ( cs, "DATA", -1 );
27 |
28 | cs->length += length;
29 | cs->end += length;
30 | cs->data = __mem_reallocate ( cs->data, cs->length, NULL, 0 );
31 | __stage_set_modified ( __stage_get_current ( ws->fileinfo->stages ) );
32 |
33 | if ( length )
34 | printf ( "Added %s extra space at 0x%08X.\nDone!\n", PrintBytes ( length ), ( cs->end - length + 15 ) & ~ 15 );
35 | else
36 | printf ( "Added no extra space.\nDone!\n" );
37 | return E_OK;
38 | }
39 |
--------------------------------------------------------------------------------
/doc/html/main.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | TriX: TriX DoX
4 |
5 |
6 |
7 |
8 |
13 | TriX DoX
14 |
15 |
0.2
This is the TriX Documentation.
16 | We hope you will enjoy it and that it will help you creating your own patches ;)
17 |
18 | All documentation is usually for internal use.
19 | The TriX user documentation can be found in the user.dox.
20 |
Generated on Sun Apr 16 03:09:39 2006 for TriX by
21 |
22 |
1.4.6-NO
23 |
24 |
25 |
--------------------------------------------------------------------------------
/tools/dialog.src/dialog.lsm:
--------------------------------------------------------------------------------
1 | Begin3
2 | Title: dialog - Display dialog boxes in scripts
3 | Version: 1.0-20060221
4 | Entered-date: 21FEB06
5 | Description: Dialog is a program that will let you present a variety
6 | of questions or display messages in nice looking color
7 | non-graphical dialog boxes from a shell or perl script.
8 | Various dialog boxes can be presented such as yes/no, menu,
9 | input, message, checklist, radiolist, and more.
10 |
11 | This program is based on the no longer maintained cdialog, but
12 | contains bug fixes and more features.
13 | Keywords: dialog, cdialog, shell, script, window
14 | Author: Originally Savio Lam for the ancient version
15 | Maintained-by: Thomas E. Dickey
16 | Vila, Santiago
17 | Primary-site: http://invisible-island.net/dialog/
18 | http://packages.debian.org/
19 | Alternate-site: ftp://ftp.us.debian.org/debian/pool/main/d/dialog/
20 | Original-site: ftp://sunsite.unc.edu/pub/Linux/utils/shell
21 | Platforms: Linux *nix, OS/2 EMX
22 | Copying-policy: LGPL
23 | End
24 |
--------------------------------------------------------------------------------
/src/ui-qt/ui_resource.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | icons/22x22-gartoon/amusement.png
4 | icons/22x22-gartoon/calculator.png
5 | icons/22x22-gartoon/chat.png
6 | icons/22x22-gartoon/choice-no.png
7 | icons/22x22-gartoon/choice-yes.png
8 | icons/22x22-gartoon/configuration.png
9 | icons/22x22-gartoon/disk-floppy.png
10 | icons/22x22-gartoon/disk.png
11 | icons/22x22-gartoon/editor.png
12 | icons/22x22-gartoon/file.png
13 | icons/22x22-gartoon/folder-open.png
14 | icons/22x22-gartoon/ghostview.png
15 | icons/22x22-gartoon/information.png
16 | icons/22x22-gartoon/item.png
17 | icons/22x22-gartoon/modules.png
18 | icons/22x22-gartoon/quit.png
19 | icons/22x22-gartoon/science.png
20 | icons/22x22-gartoon/viewer.png
21 | icons/22x22-gartoon/window.png
22 | icons/22x22-gartoon/www.png
23 |
24 |
25 |
--------------------------------------------------------------------------------
/scripts/k_compile_arm_c_files.trx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | void k_compile_arm_c_files ()
6 | {
7 | t_workspace *ws = NULL;
8 | t_fileinfo *fi = NULL;
9 | char *buff = NULL;
10 | char *directory = "scripts/k_compile_arm_c_files";
11 |
12 | buff = malloc ( 200 + strlen(directory) );
13 |
14 | fi = __file_io_create_empty ();
15 | if ( !fi || ! buff )
16 | return;
17 |
18 | sprintf ( buff, "" );
19 | strcat ( buff, "export PATH=../../tools/arm:$PATH\n" );
20 | strcat ( buff, "echo $PATH\n" );
21 | strcat ( buff, "cd " );
22 | strcat ( buff, directory );
23 | strcat ( buff, "\n" );
24 | strcat ( buff, "rm *.o\n" );
25 | strcat ( buff, "make\n" );
26 |
27 | fi->stages->segments->length = strlen ( buff );
28 | fi->stages->segments->data = strdup ( buff );
29 |
30 |
31 | if ( __file_io_write ( "run.sh", fi ) != E_OK )
32 | printf ( "Write failed\n" );
33 |
34 | system ( "tools\\arm\\bash.exe run.sh" );
35 |
36 | sprintf ( buff, "%s/dump_objects.o", directory );
37 | ws = __workspace_startup ( buff );
38 | __elf_dump_object ( ws );
39 |
40 | sprintf ( buff, "%s/rotate_lcd.o", directory );
41 | ws = __workspace_startup ( buff );
42 | __elf_dump_object ( ws );
43 |
44 | free ( buff );
45 | printf ( "done!\n" );
46 |
47 | }
--------------------------------------------------------------------------------
/tools/dialog.src/samples/checklist10:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: checklist10 1521 2006-06-28 13:53:39Z geggo $
3 | # zero-width column
4 | : ${DIALOG=dialog}
5 |
6 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
7 | trap "rm -f $tempfile" 0 1 2 5 15
8 |
9 | $DIALOG \
10 | --backtitle "No such organization" \
11 | --title "CHECKLIST BOX" \
12 | --checklist "Hi, this is a checklist box. You can use this to \n\
13 | present a list of choices which can be turned on or \n\
14 | off. If there are more items than can fit on the \n\
15 | screen, the list will be scrolled. You can use the \n\
16 | UP/DOWN arrow keys, the first letter of the choice as a \n\
17 | hot key, or the number keys 1-9 to choose an option. \n\
18 | Press SPACE to toggle an option on/off. \n\n\
19 | Which of the following are fruits?" 20 61 5 \
20 | Dialog "" on \
21 | Readline "" off \
22 | Gnome "" off \
23 | Kde "" off \
24 | Editor "" off \
25 | Noninteractive "" on \
26 | 2> $tempfile
27 |
28 | retval=$?
29 |
30 | choice=`cat $tempfile`
31 | case $retval in
32 | 0)
33 | echo "'$choice' chosen.";;
34 | 1)
35 | echo "Cancel pressed.";;
36 | 255)
37 | echo "ESC pressed.";;
38 | *)
39 | echo "Unexpected code $retval";;
40 | esac
41 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/radiolist10:
--------------------------------------------------------------------------------
1 | #! /bin/sh
2 | # $Id: radiolist10 1521 2006-06-28 13:53:39Z geggo $
3 | # zero-width column
4 | : ${DIALOG=dialog}
5 |
6 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
7 | trap "rm -f $tempfile" 0 1 2 5 15
8 |
9 | $DIALOG \
10 | --backtitle "No such organization" \
11 | --title "RADIOLIST BOX" \
12 | --radiolist "Hi, this is a radiolist box. You can use this to \n\
13 | present a list of choices which can be turned on or \n\
14 | off. If there are more items than can fit on the \n\
15 | screen, the list will be scrolled. You can use the \n\
16 | UP/DOWN arrow keys, the first letter of the choice as a \n\
17 | hot key, or the number keys 1-9 to choose an option. \n\
18 | Press SPACE to toggle an option on/off. \n\n\
19 | Which of the following are fruits?" 20 61 5 \
20 | Dialog "" on \
21 | Readline "" off \
22 | Gnome "" off \
23 | Kde "" off \
24 | Editor "" off \
25 | Noninteractive "" on \
26 | 2> $tempfile
27 |
28 | retval=$?
29 |
30 | choice=`cat $tempfile`
31 | case $retval in
32 | 0)
33 | echo "'$choice' chosen.";;
34 | 1)
35 | echo "Cancel pressed.";;
36 | 255)
37 | echo "ESC pressed.";;
38 | *)
39 | echo "Unexpected code $retval";;
40 | esac
41 |
--------------------------------------------------------------------------------
/tools/dialog.src/version.c:
--------------------------------------------------------------------------------
1 | /*
2 | * $Id: version.c 1521 2006-06-28 13:53:39Z geggo $
3 | *
4 | * version.c -- dialog's version string
5 | *
6 | * Copyright 2003,2005 Thomas E. Dickey
7 | *
8 | * This program is free software; you can redistribute it and/or modify
9 | * it under the terms of the GNU Lesser General Public License as
10 | * published by the Free Software Foundation; either version 2.1 of the
11 | * License, or (at your option) any later version.
12 | *
13 | * This program is distributed in the hope that it will be useful, but
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 | * Lesser General Public License for more details.
17 | *
18 | * You should have received a copy of the GNU Lesser General Public
19 | * License along with this program; if not, write to
20 | * Free Software Foundation, Inc.
21 | * 51 Franklin St., Fifth Floor
22 | * Boston, MA 02110, USA.
23 | */
24 | #include
25 |
26 | #define quoted(a) #a
27 | #define concat(a,b) a "-" quoted(b)
28 | #define DLG_VERSION concat(DIALOG_VERSION,DIALOG_PATCHDATE)
29 |
30 | char *
31 | dialog_version(void)
32 | {
33 | return DLG_VERSION;
34 | }
35 |
--------------------------------------------------------------------------------
/include/crypto_jk.h:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include "crypto_arith.h"
4 |
5 | /* jprim testet auf der Basis den Miller-Rabin-Primzahltests eine Zahl vom Typ
6 | LONG darauf eine Primzahl zu sein */
7 |
8 | int jprim (LONG n[LAENGE], unsigned long durchlaeufe);
9 |
10 | /* jmexpo potenziert zwei grosse zahlen auf der basis des
11 | Algorithmus zur schnellen modularen Exponentiation */
12 |
13 | int jmexpo (LONG basis[LAENGE], LONG exponent [LAENGE], LONG modul[LAENGE], LONG ergb[LAENGE]);
14 |
15 | /* jinvers berechnet das Inverse der "zahl" mod "modul". Das Ergebnis wird an inverses zurueckgeliefert.
16 | Desweiteren berechnet jinvers die Darstellung des ggt's als Linearkombination von zahl und modul.
17 | ggt = zahl * n - modul * m
18 | Die entsprechenden Koeffizieten n,m werden in n m uebergeben */
19 |
20 | int jinvers( const LONG zahl[LAENGE], const LONG modul[LAENGE],
21 | LONG inverses[LAENGE], LONG n[LAENGE],
22 | LONG m[LAENGE] );
23 |
24 | /* jgcd berechnet den ggt der beiden Zahlen zahl1 und zahl2.
25 | Die Loesung wird in der Variabel ergb uebergeben */
26 |
27 | int jgcd ( const LONG zahl1[LAENGE], const LONG zahl2[LAENGE],
28 | LONG ergb[LAENGE]);
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/plugins/TriX_Prodigize/temp/examples/mfc_example/StdAfx.h:
--------------------------------------------------------------------------------
1 | // stdafx.h : include file for standard system include files,
2 | // or project specific include files that are used frequently, but
3 | // are changed infrequently
4 | //
5 |
6 | #if !defined(AFX_STDAFX_H__060A5498_8D95_4D74_A9E4_763FDFFBA268__INCLUDED_)
7 | #define AFX_STDAFX_H__060A5498_8D95_4D74_A9E4_763FDFFBA268__INCLUDED_
8 |
9 | #if _MSC_VER > 1000
10 | #pragma once
11 | #endif // _MSC_VER > 1000
12 |
13 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
14 |
15 | #include // MFC core and standard components
16 | #include // MFC extensions
17 | #include // MFC Automation classes
18 | #include // MFC support for Internet Explorer 4 Common Controls
19 | #ifndef _AFX_NO_AFXCMN_SUPPORT
20 | #include // MFC support for Windows Common Controls
21 | #endif // _AFX_NO_AFXCMN_SUPPORT
22 |
23 |
24 | //{{AFX_INSERT_LOCATION}}
25 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
26 |
27 | # import "pdginterfc.dll"
28 | using namespace pdginterfc;
29 |
30 | #endif // !defined(AFX_STDAFX_H__060A5498_8D95_4D74_A9E4_763FDFFBA268__INCLUDED_)
31 |
--------------------------------------------------------------------------------
/plugins/TriX_UFS/source/UFSx.cpp:
--------------------------------------------------------------------------------
1 | //---------------------------------------------------------------------------
2 |
3 | #include
4 | #pragma hdrstop
5 | //---------------------------------------------------------------------------
6 | USEFORM("Main.cpp", MainForm);
7 | //---------------------------------------------------------------------------
8 | WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
9 | {
10 | try
11 | {
12 | Application->Initialize();
13 | Application->Title = "UFSx";
14 | Application->CreateForm(__classid(TMainForm), &MainForm);
15 | Application->Run();
16 | }
17 | catch (Exception &exception)
18 | {
19 | Application->ShowException(&exception);
20 | }
21 | catch (...)
22 | {
23 | try
24 | {
25 | throw Exception("");
26 | }
27 | catch (Exception &exception)
28 | {
29 | Application->ShowException(&exception);
30 | }
31 | }
32 | return 0;
33 | }
34 | //---------------------------------------------------------------------------
35 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/msgbox4-utf8:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: msgbox4-utf8 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | : ${DIALOG_OK=0}
6 | : ${DIALOG_CANCEL=1}
7 | : ${DIALOG_ESC=255}
8 |
9 | case none"$LANG$LC_ALL$LC_CTYPE" in
10 | *UTF-8*)
11 | ;;
12 | *)
13 | echo "This script must be run in a UTF-8 locale"
14 | exit 1
15 | ;;
16 | esac
17 |
18 | width=30
19 | while test $width != 61
20 | do
21 | $DIALOG --title "MESSAGE BOX (width $width)" --no-collapse \
22 | --msgbox "\
23 | This sample is written in UTF-8.
24 | There are several checking points:
25 | (1) whether the fullwidth characters are displayed well or not,
26 | (2) whether the width of characters are evaluated properly, and
27 | (3) whether the character at line-folding is lost or not.
28 |
29 | あいうえおかきくけこさしすせそたちつてとなにぬねの
30 | 1234567890123456789012345
31 | ABCDEFGHIJKLMNOPQRSTUVWXY
32 |
33 | Hi, this is a simple message box. You can use this to \
34 | display any message you like. The box will remain until \
35 | you press the ENTER key." 22 $width
36 | retval=$?
37 |
38 | case $retval in
39 | $DIALOG_CANCEL)
40 | echo "Cancel pressed.";exit;;
41 | $DIALOG_ESC)
42 | echo "ESC pressed.";exit;;
43 | esac
44 |
45 | width=`expr $width + 1`
46 |
47 | done
48 |
--------------------------------------------------------------------------------
/include/trixplug_project.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __TRIX_TRIXPLUG_PROJECT_H__
3 | #define __TRIX_TRIXPLUG_PROJECT_H__
4 |
5 | /* trixplug struct */
6 |
7 | struct project_funcs
8 | {
9 | t_project *(*load) ( char *file);
10 | t_project_files *(*get_file) ( t_project * p, unsigned int pos);
11 | unsigned int (*add_file) ( t_project * p, char *file);
12 | unsigned int (*del_file) ( t_project * p, unsigned int pos);
13 | unsigned int (*init) ( );
14 | unsigned int (*save) ( t_project * p, char *file);
15 | t_project *(*create) ( );
16 | unsigned int (*free) ( t_project * p);
17 | };
18 |
19 | /* trixplug struct initializer */
20 |
21 | #define PROJECT_PLUG_INIT \
22 | extern struct trix_functions *ft;\
23 | struct project_funcs project_functions;\
24 | unsigned int project_plug_init ( ) \
25 | {\
26 | if ( !ft )\
27 | return E_FAIL;\
28 | ft->project = &project_functions;\
29 | ft->project->free = project_free;\
30 | ft->project->create = project_create;\
31 | ft->project->init = project_init;\
32 | ft->project->add_file = project_add_file;\
33 | ft->project->get_file = project_get_file;\
34 | ft->project->del_file = project_del_file;\
35 | ft->project->load = project_load;\
36 | ft->project->save = project_save;\
37 | \
38 | return E_OK;\
39 | }
40 |
41 | #endif
42 |
--------------------------------------------------------------------------------
/include/trixplug_symbols.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __TRIX_TRIXPLUG_SYMBOLS_H__
3 | #define __TRIX_TRIXPLUG_SYMBOLS_H__
4 |
5 | /* trixplug struct */
6 |
7 | struct symbols_funcs
8 | {
9 | t_symbols *(*get) ( t_stage * stage, const char *name);
10 | unsigned int (*add) ( t_stage * stage, const char *name, const int type, const char *data);
11 | unsigned int (*count) ( t_stage * stage, const int type);
12 | unsigned int (*free_all) ( t_stage * stage);
13 | unsigned int (*get_address) ( t_stage * stage, const char *name);
14 | unsigned int (*remove) ( t_stage * stage, const char *name);
15 | void (*dump) ( t_stage * stage);
16 | };
17 |
18 | /* trixplug struct initializer */
19 |
20 | #define SYMBOLS_PLUG_INIT \
21 | extern struct trix_functions *ft;\
22 | struct symbols_funcs symbols_functions;\
23 | unsigned int symbols_plug_init ( ) \
24 | {\
25 | if ( !ft )\
26 | return E_FAIL;\
27 | ft->symbols = &symbols_functions;\
28 | ft->symbols->dump = symbols_dump;\
29 | ft->symbols->add = symbols_add;\
30 | ft->symbols->remove = symbols_remove;\
31 | ft->symbols->free_all = symbols_free_all;\
32 | ft->symbols->get = symbols_get;\
33 | ft->symbols->get_address = symbols_get_address;\
34 | ft->symbols->count = symbols_count;\
35 | \
36 | return E_OK;\
37 | }
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/src/ui-qt/ui_text_box.h:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | ** Include any stock Qt files here...
4 | **
5 | */
6 | #include
7 | #include
8 | #include
9 | #include
10 | #include
11 | #include
12 | //---------------------------------------------------------------------------
13 |
14 | /*
15 | ** Include any application specific headers here.
16 | **
17 | */
18 | #include "ui_TextBox.h"
19 |
20 | extern "C"
21 | {
22 | #include "defines.h"
23 |
24 | };
25 |
26 | //---------------------------------------------------------------------------
27 | class TextBox : public QDialog, private Ui::dlgTextBox
28 | {
29 | Q_OBJECT
30 |
31 | public:
32 | TextBox( );
33 | unsigned int Clear ();
34 | unsigned int AppendLine ( unsigned char *msg );
35 | unsigned int AppendChar ( unsigned char *msg );
36 | unsigned int SetWindowName ( unsigned char *title );
37 | unsigned int SetWindowSize ( unsigned int width, unsigned int height );
38 | int LastChar;
39 | int *LastCharPtr;
40 | int GetLastKeypress ();
41 | void SetKeypressPtr (int *ptr);
42 |
43 | private:
44 |
45 |
46 |
47 | };
48 | //---------------------------------------------------------------------------
49 |
--------------------------------------------------------------------------------
/include/trixplug_file_io.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef __TRIX_TRIXPLUG_FILE_IO_H__
3 | #define __TRIX_TRIXPLUG_FILE_IO_H__
4 |
5 | /* trixplug struct */
6 |
7 | struct file_io_funcs
8 | {
9 | t_fileinfo *(*create_empty) ( );
10 | t_fileinfo *(*open) ( const char *path, const char *filename);
11 | unsigned int (*release) ( t_fileinfo * fi);
12 | unsigned int (*release_all) ( t_fileinfo * fi);
13 | unsigned int (*write) ( const char *filename, const t_fileinfo * fi);
14 | int (*create_directory) ( char *dirname);
15 | t_fileinfo *(*open_directory) ( char *path, unsigned int *ret_entries);
16 | };
17 |
18 | /* trixplug struct initializer */
19 |
20 | #define FILE_IO_PLUG_INIT \
21 | extern struct trix_functions *ft;\
22 | struct file_io_funcs file_io_functions;\
23 | unsigned int file_io_plug_init ( ) \
24 | {\
25 | if ( !ft )\
26 | return E_FAIL;\
27 | ft->file_io = &file_io_functions;\
28 | ft->file_io->create_empty = file_io_create_empty;\
29 | ft->file_io->create_directory = file_io_create_directory;\
30 | ft->file_io->open_directory = file_io_open_directory;\
31 | ft->file_io->open = file_io_open;\
32 | ft->file_io->write = file_io_write;\
33 | ft->file_io->release = file_io_release;\
34 | ft->file_io->release_all = file_io_release_all;\
35 | \
36 | return E_OK;\
37 | }
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/src/seer/seer_protect.c:
--------------------------------------------------------------------------------
1 | /************************************************************************
2 | SeeR a C-scripting library v 0.95a
3 | http://przemekp.prv.pl/seer/ dev@przemekp.prv.pl
4 |
5 | File:protect.c
6 | Desc:priorities, "protected" calling exported functions in script
7 |
8 | Copyright (c) 1998-99,2002, Przemyslaw Podsiadly
9 | All rights reserved.
10 | See seer.h for license information.
11 | ************************************************************************/
12 | #include
13 | #define INTERNAL_FILE
14 | #include
15 | #include "seer_internal.h"
16 |
17 | #include "mem.h"
18 |
19 | void
20 | scSet_Priority ( scInstance * Ins, int priority_level )
21 | {
22 | // scKernelOnly(;);
23 | if ( Ins )
24 | {
25 | Ins->flags.priority = priority_level;
26 | }
27 | }
28 |
29 | int
30 | scGet_Priority ( scInstance * Ins ) //if NULL returns scrights_TOP
31 | {
32 | // scKernelOnly(scrights_USER);
33 | if ( !Ins )
34 | return scrights_TOP;
35 | return Ins->flags.priority;
36 | }
37 |
38 | int
39 | scGet_Actual_Priority ( )
40 | {
41 | if ( !scActual_Instance )
42 | return scrights_TOP;
43 | return scActual_Instance->flags.priority;
44 | return scGet_Priority ( scActual_Instance );
45 | }
46 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/menubox1:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: menubox1 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --default-item "OS/2" --clear --title "MENU BOX" \
9 | --menu "Hi, this is a menu box. You can use this to \n\
10 | present a list of choices for the user to \n\
11 | choose. If there are more items than can fit \n\
12 | on the screen, the menu will be scrolled. \n\
13 | You can use the UP/DOWN arrow keys, the first \n\
14 | letter of the choice as a hot key, or the \n\
15 | number keys 1-9 to choose an option.\n\
16 | Try it now!\n\n\
17 | Choose the OS you like:" 20 51 4 \
18 | "Linux" "The Great Unix Clone for 386/486" \
19 | "NetBSD" "Another free Unix Clone for 386/486" \
20 | "OS/2" "IBM OS/2" \
21 | "WIN NT" "Microsoft Windows NT" \
22 | "PCDOS" "IBM PC DOS" \
23 | "MSDOS" "Microsoft DOS" 2> $tempfile
24 |
25 | retval=$?
26 |
27 | case $retval in
28 | 0)
29 | echo "`cat $tempfile` chosen.";;
30 | 1)
31 | echo "Cancel pressed.";;
32 | 255)
33 | if test -s $tempfile ; then
34 | cat $tempfile
35 | else
36 | echo "ESC pressed."
37 | fi
38 | ;;
39 | esac
40 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/menubox2:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: menubox2 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/test$$
6 | trap "rm -f $tempfile" 0 1 2 5 15
7 |
8 | $DIALOG --default-item "MSDOS" --clear --title "MENU BOX" \
9 | --menu "Hi, this is a menu box. You can use this to \n\
10 | present a list of choices for the user to \n\
11 | choose. If there are more items than can fit \n\
12 | on the screen, the menu will be scrolled. \n\
13 | You can use the UP/DOWN arrow keys, the first \n\
14 | letter of the choice as a hot key, or the \n\
15 | number keys 1-9 to choose an option.\n\
16 | Try it now!\n\n\
17 | Choose the OS you like:" 20 51 4 \
18 | "Linux" "The Great Unix Clone for 386/486" \
19 | "NetBSD" "Another free Unix Clone for 386/486" \
20 | "OS/2" "IBM OS/2" \
21 | "WIN NT" "Microsoft Windows NT" \
22 | "PCDOS" "IBM PC DOS" \
23 | "MSDOS" "Microsoft DOS" 2> $tempfile
24 |
25 | retval=$?
26 |
27 | case $retval in
28 | 0)
29 | echo "`cat $tempfile` chosen.";;
30 | 1)
31 | echo "Cancel pressed.";;
32 | 255)
33 | if test -s $tempfile ; then
34 | cat $tempfile
35 | else
36 | echo "ESC pressed."
37 | fi
38 | ;;
39 | esac
40 |
--------------------------------------------------------------------------------
/tools/dialog.src/samples/menubox8:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | # $Id: menubox8 1521 2006-06-28 13:53:39Z geggo $
3 | : ${DIALOG=dialog}
4 |
5 | exec 3>&1
6 | value=`$DIALOG --help-button \
7 | --default-item "MSDOS" \
8 | --clear \
9 | --title "MENU BOX" \
10 | --menu "Hi, this is a menu box. You can use this to \n\
11 | present a list of choices for the user to \n\
12 | choose. If there are more items than can fit \n\
13 | on the screen, the menu will be scrolled. \n\
14 | You can use the UP/DOWN arrow keys, the first \n\
15 | letter of the choice as a hot key, or the \n\
16 | number keys 1-9 to choose an option.\n\
17 | Try it now!\n\n\
18 | Choose the OS you like:" 20 51 4 \
19 | "Linux" "The Great Unix Clone for 386/486" \
20 | "NetBSD" "Another free Unix Clone for 386/486" \
21 | "OS/2" "IBM OS/2" \
22 | "WIN NT" "Microsoft Windows NT" \
23 | "PCDOS" "IBM PC DOS" \
24 | "MSDOS" "Microsoft DOS" \
25 | 2>&1 1>&3`
26 | retval=$?
27 | exec 3>&-
28 |
29 | case $retval in
30 | 0)
31 | echo "$value chosen.";;
32 | 1)
33 | echo "Cancel pressed.";;
34 | 2)
35 | echo "Help pressed ($value)";;
36 | 255)
37 | if test -n "$value" ; then
38 | echo "$value"
39 | else
40 | echo "ESC pressed."
41 | fi
42 | ;;
43 | esac
44 |
--------------------------------------------------------------------------------
/tools/header_definition/crypto.def:
--------------------------------------------------------------------------------
1 | char *(*check_integrity) ( char **in_data, int length, t_crypt_key * keys);
2 | char *(*generate_cert) ( char *data, int length, char *signature, t_crypt_key * key);
3 | char *(*get_keyname) ( unsigned char key_id, t_crypt_key * keys);
4 | char *(*get_signee) ( char *signature);
5 | char *(*get_signer) ( char *signature);
6 | char *(*get_signkey) ( char *signature);
7 | char *(*get_signopt) ( char *signature);
8 | t_crypt_key *(*get_key) ( unsigned char key_id, t_crypt_key * keys);
9 | unsigned char *(*decrypt_buffer) ( unsigned char *in_buffer, int *length, t_crypt_key * key);
10 | unsigned char *(*encrypt_buffer) ( unsigned char *in_buffer, int *length, t_crypt_key * key);
11 | unsigned int (*generate_key) ( int nbits, t_crypt_key * priv_key, t_crypt_key * pub_key);
12 | int (*unfold) ( char **in_data, int length, t_crypt_key * keys);
13 | unsigned int (*init_algoiv) ( unsigned char *algoiv_data, unsigned int algoiv_length, t_crypt_key * rsa_key);
14 | unsigned int (*init_algokey) ( unsigned char *algokey_data, unsigned int algokey_length, t_crypt_key * rsa_key);
15 | unsigned int (*generate_sha1) ( const unsigned char *data, unsigned int length, char *hash);
16 | unsigned int (*generate_md5) ( const unsigned char *data, unsigned int length, char *hash);
17 |
--------------------------------------------------------------------------------
/tools/header_definition/elf.def:
--------------------------------------------------------------------------------
1 | Elf32_Sym *(*get_symbol) ( t_workspace * ws, int symbol_id);
2 | char *(*get_section_name) ( t_workspace * ws, int section);
3 | char *(*get_string) ( t_workspace * ws, int string);
4 | char *(*get_symbol_name) ( t_workspace * ws, int symbol_id);
5 | object *(*create_object) ( t_workspace * ws);
6 | t_segment *(*get_reloc) ( t_workspace * ws, int num);
7 | t_segment *(*get_section) ( t_workspace * ws, int section);
8 | t_segment *(*get_strtab) ( t_workspace * ws, int num);
9 | t_segment *(*get_symtab) ( t_workspace * ws, int num);
10 | t_segment *(*get_tab) ( t_workspace * ws, int type, int num);
11 | unsigned int (*byteswap_rel) ( t_priv * source, Elf32_Rel * header);
12 | unsigned int (*byteswap_sym) ( t_priv * source, Elf32_Sym * header);
13 | unsigned int (*dump_object) ( t_workspace * ws);
14 | unsigned int (*dump_relocs) ( t_workspace * ws);
15 | unsigned int (*dump_symtabs) ( t_workspace * ws);
16 | unsigned int (*fmt_elf_cify) ( char *name);
17 | unsigned int (*free_object) ( t_elf_object * obj);
18 | unsigned int (*parse_reloc) ( t_workspace * ws, t_elf_object * obj, t_segment * rel);
19 | unsigned int (*parse_symtab) ( t_workspace * ws, t_elf_object * obj, t_segment * tab);
20 | unsigned int (*section_used) ( t_workspace * ws, t_elf_object * obj, t_segment * seg);
21 |
--------------------------------------------------------------------------------