From 4f82f91e47e747fe97439916b52a35e626009ac3 Mon Sep 17 00:00:00 2001 From: mattpass Date: Sun, 15 Mar 2020 14:16:41 +0000 Subject: [PATCH] Remove code assist toggle from UI, keep in settings screen only --- index.php | 4 ---- lang/chinese-simplified.php | 2 -- lang/chinese-traditional.php | 2 -- lang/dutch.php | 2 -- lang/english.php | 2 -- lang/french.php | 2 -- lang/german.php | 2 -- lang/italian.php | 2 -- lang/norwegian.php | 2 -- lang/persian.php | 2 -- lang/portuguese-brazilian.php | 2 -- lang/spanish.php | 2 -- lib/icecoder.css | 3 --- lib/icecoder.js | 2 -- 14 files changed, 31 deletions(-) diff --git a/index.php b/index.php index 947ff2b..c9a6d31 100644 --- a/index.php +++ b/index.php @@ -309,10 +309,6 @@ $t = $text['index']; ">
-
- > - 0" onClick="ICEcoder.codeAssistToggle()"> -
diff --git a/lang/chinese-simplified.php b/lang/chinese-simplified.php index 3c9f938..93753f6 100644 --- a/lang/chinese-simplified.php +++ b/lang/chinese-simplified.php @@ -91,8 +91,6 @@ $text = array( // "open documents" => "打开的文件", // "all files" => "所有文件", // "all filenames" => "所有文件名", - "Turn on/off..." => "开启/关闭代码辅助", - "Code Assist" => "代码辅助", "Go to Line" => "转到行", "View" => "预览", "Bug reporting not active" => "错误报告没有激活" diff --git a/lang/chinese-traditional.php b/lang/chinese-traditional.php index c04907a..ab18a26 100644 --- a/lang/chinese-traditional.php +++ b/lang/chinese-traditional.php @@ -91,8 +91,6 @@ $text = array( // "open documents" => "打開的文件", // "all files" => "所有文件", // "all filenames" => "所有文件名", - "Turn on/off..." => "開啓/關閉代碼輔助", - "Code Assist" => "代碼輔助", "Go to Line" => "轉到行", "View" => "預覽", "Bug reporting not active" => "錯誤報告沒有激活" diff --git a/lang/dutch.php b/lang/dutch.php index 164a89a..5bbd6af 100644 --- a/lang/dutch.php +++ b/lang/dutch.php @@ -92,8 +92,6 @@ $text = array( "open documents" => "open documenten", "all files" => "alle bestanden", "all filenames" => "alle bestandsnamen", - "Turn on/off..." => "Schakel codehulp aan/uit", - "Code Assist" => "Codehulp", "Go to Line" => "Ga naar regel", "View" => "Beeld", "Bug reporting not active" => "Bug rapportage niet actief", diff --git a/lang/english.php b/lang/english.php index 53390c2..c93254f 100644 --- a/lang/english.php +++ b/lang/english.php @@ -91,8 +91,6 @@ $text = array( "open documents" => "open documents", "all files" => "all files", "all filenames" => "all filenames", - "Turn on/off..." => "Turn on/off code assist", - "Code Assist" => "Code Assist", "Go to Line" => "Go to Line", "View" => "View", "Bug reporting not active" => "Bug reporting not active", diff --git a/lang/french.php b/lang/french.php index 161ca06..f8ca207 100644 --- a/lang/french.php +++ b/lang/french.php @@ -91,8 +91,6 @@ $text = array( // "open documents" => "les documents ouverts", // "all files" => "tous les fichiers", // "all filenames" => "tous les noms de fichiers", - "Turn on/off..." => "Basculer on/off l'assistance au code", - "Code Assist" => "Assistance au Code", "Go to Line" => "Aller à la ligne", "View" => "Afficher", "Bug reporting not active" => "Le signalement de dysfonctionnement n'est pas actif" diff --git a/lang/german.php b/lang/german.php index 887a68b..c2d5472 100644 --- a/lang/german.php +++ b/lang/german.php @@ -91,8 +91,6 @@ $text = array( // "open documents" => "geöffnete Dokumente", // "all files" => "Alle Dateien", // "all filenames" => "Alle Dateinamen", - "Turn on/off..." => "Codeassistenten ein- ausschalten", - "Code Assist" => "Codeassistent", "Go to Line" => "Geh zur Zeile", "View" => "Anzeigen", "Bug reporting not active" => "Fehlermeldungen sind nicht aktiv" diff --git a/lang/italian.php b/lang/italian.php index 3b2877e..aa743e1 100644 --- a/lang/italian.php +++ b/lang/italian.php @@ -91,8 +91,6 @@ $text = array( "open documents" => "apri documenti", "all files" => "tutti i file", "all filenames" => "tutti i nomi", - "Turn on/off..." => "Attiva/disattiva code assist", - "Code Assist" => "Code Assist", "Go to Line" => "Vai alla linea", "View" => "Visualizza", "Bug reporting not active" => "Segnalazione bug non attiva", diff --git a/lang/norwegian.php b/lang/norwegian.php index 336e327..823d4fb 100644 --- a/lang/norwegian.php +++ b/lang/norwegian.php @@ -91,8 +91,6 @@ $text = array( "open documents" => "åpne dokumenter", "all files" => "alle filer", "all filenames" => "alle filenavn", - "Turn on/off..." => "Svitsj på/av kode assistenten", - "Code Assist" => "Kode Assistenten", "Go to Line" => "Gå til Linje", "View" => "Vis", "Bug reporting not active" => "Bug rapportering ikke aktiv" diff --git a/lang/persian.php b/lang/persian.php index 9e5c9a2..775437b 100644 --- a/lang/persian.php +++ b/lang/persian.php @@ -91,8 +91,6 @@ $text = array( // "open documents" => "سند های باز", // "all files" => "همه فایل ها", // "all filenames" => "همه نام فایل ها", - "Turn on/off..." => "روشن / خاموش کردن کد کمد", - "Code Assist" => "کد کمک", "Go to Line" => "برو به خط", "View" => "نمایش", "Bug reporting not active" => "گزارش اشکال فعال نیست" diff --git a/lang/portuguese-brazilian.php b/lang/portuguese-brazilian.php index e5712e2..79502b0 100644 --- a/lang/portuguese-brazilian.php +++ b/lang/portuguese-brazilian.php @@ -91,8 +91,6 @@ $text = array( "open documents" => "documentos abertos", "all files" => "todos os arquivos", "all filenames" => "todos nomes de arquivo", - "Turn on/off..." => "Ligar/Desligar Assistente", - "Code Assist" => "Assistente", "Go to Line" => "Ir para linha", "View" => "Exibir", "Bug reporting not active" => "Relatório de Bug desativado" diff --git a/lang/spanish.php b/lang/spanish.php index c11f35e..8dfe0f3 100644 --- a/lang/spanish.php +++ b/lang/spanish.php @@ -91,8 +91,6 @@ $text = array( "open documents" => "abrir documentos", "all files" => "todos los archivos", "all filenames" => "todos los nombres de archivo", - "Turn on/off..." => "Encender o apagar asistente de código", - "Code Assist" => "Asistente de código", "Go to Line" => "Ir a la línea", "View" => "Ver", "Bug reporting not active" => "Reporte de Errores no activado", diff --git a/lib/icecoder.css b/lib/icecoder.css index 3519516..b6086a7 100644 --- a/lib/icecoder.css +++ b/lib/icecoder.css @@ -131,9 +131,6 @@ h2 {font-size: 18px; font-weight: normal; color: #fff} .findReplace .submit {position: relative; top: -2px; height: 28px; padding-top: 2px; border: 0; background-color: #1d1d1b; color: #eee; font-size: 10px; margin-left: 2px; cursor: pointer} .findReplace .submit:hover {background-color: #2187e7; color: #eee} .findReplace .results {position: relative; display: inline-block; width: 200px; height: 20px; font-size: 10px; margin: 7px 0 0 20px} -.findBar .codeAssist {position: fixed; display: inline-block; width: 100px; right: 180px; top: 50px; height: 21px; font-size: 10px; color: #eee; cursor: default; z-index: 1} -.findBar .codeAssist .codeAssistCheckbox {display: none} -.findBar .codeAssist .codeAssistDisplay {display: inline-block; width: 16px; height: 16px; margin: -1px 4px 0 0; vertical-align: middle; background: url('../images/checkbox.gif') 0 0 no-repeat; cursor: pointer} .findBar .goLine {position: fixed; display: inline-block; width: 120px; right: 65px; top: 49px; height: 21px; font-size: 10px; color: #eee; cursor: default; z-index: 1} .goLine .goToLine {width: 50px; height: 28px; border: 0; font-size: 12px; margin: -7px 0 0 3px; padding-left: 4px; background: #333; color: #eee} .findReplace input:focus, .goLine .goToLine:focus {outline: none; background: rgba(0,198,255,0.5); color: #000} diff --git a/lib/icecoder.js b/lib/icecoder.js index 5967d6d..dc83946 100644 --- a/lib/icecoder.js +++ b/lib/icecoder.js @@ -2973,7 +2973,6 @@ var ICEcoder = { var cM, cMdiff, fileName, fileExt; this.codeAssist = !this.codeAssist; - get('codeAssistDisplay').style.backgroundPosition = this.codeAssist ? "0 0" : "-16px 0"; this.cssColorPreview(); this.focus(this.editorFocusInstance.indexOf('diff') > -1 ? 'diff' : false); @@ -3271,7 +3270,6 @@ var ICEcoder = { // Check/uncheck Code Assist setting if (codeAssist != this.codeAssist) { - get('codeAssist').checked = codeAssist; this.codeAssistToggle(); }