1 / 8

Programming Guide for SEDIK

Programming Guide for SEDIK. Adviser: Prof. J.S. HU Author: artis.jiang@gmail.com. Table of Content. Coding Style File Struture Abbreviation Reference Hmic_ASRDlg UI Layout Revision. Coding Style. [ One for all, all for one. ]: 讓 source tree 看起來像是一個人寫的,不可以看得出來有很多個人風格混雜其中

gavin-chan
Télécharger la présentation

Programming Guide for SEDIK

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programming Guide for SEDIK Adviser: Prof. J.S. HU Author: artis.jiang@gmail.com

  2. Table of Content • Coding Style • File Struture • Abbreviation Reference • Hmic_ASRDlg UI Layout • Revision SEDIK-DOC-002 Programming Guide for SEDIK

  3. Coding Style • [One for all, all for one.]:讓 source tree 看起來像是一個人寫的,不可以看得出來有很多個人風格混雜其中 • Scope:MATLAB, C/C++ • 採用西元紀年(e.g.: 2010-0506-080057 means 08:00:57, 5/6/2010) • 每行不超過 80 characters/bytes • Indent = 4 spaces • Daily building / extreme programming • Bracket style • If (something) { //put comments here pseudo_code(); } • SVN for version control: SVN server IP Address:140.113.151.??? • 每次工作前:update local host source tree with SVN server • 每次回家前:commit local host source tree to SVN server • Variable Convenience: • Hungarian naming. • Global variables/Constants: all upper case letters, e.g. GLOBAL_VARIABLE • Inter-function variables in same file: capitalized , e.g. Cross_Variable • Inside function variables: all lower case letters , e.g. local_variable • No magic number • No goto • Default font: Arial:12 • Review, review and review! SEDIK-DOC-002 Programming Guide for SEDIK

  4. File management • .\hub\ : 本目錄用以存放中間檔, 或run-time時系統產生的暫時檔案. 請勿將上述檔案置於 root directory. • 一個檔案以編程單一功能為原則 SEDIK-DOC-002 Programming Guide for SEDIK

  5. Abbreviation Reference SEDIK-DOC-002 Programming Guide for SEDIK

  6. Hmic_ASRDlg UI Layout 嘜選擇 Robot picture icon 主功能按鈕區 WAVEFORM_DA_HEIGHT 畫波形+麥克風狀態 即時監視輸入裝置 WAVEFORM_DA_WIDTH ()=() 強音後波型顯示 次功能按鈕區 隨聽隨寫,即時顯示字詞, 劇本對話型式呈現, A: … B:… • 人機介面規格需求: • 緊貼顯示器右緣: widget 型式 • 次功能(即時改變狀態):緊貼clientDC 右緣,以免影響視線 • Tool tip on buttons and components • Resizable ClientDC 停止 系統狀態條列 可存檔+debug 存檔 語音強化 SEDIK-DOC-002 Programming Guide for SEDIK

  7. Flow Chart On_BtnInputSel() MM_WIM_DATA OnMM_WIM_DATA() SEDIK-DOC-002 Programming Guide for SEDIK

  8. Revision SEDIK-DOC-002 Programming Guide for SEDIK

More Related