summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-02-05 11:19:47 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-02-06 10:39:01 +0900
commit8c249c286eb6ba9c6789b7bf2f50b58ea3e45d06 (patch)
treeedc37ece9f28c15a072eaa843901603be31b6e12 /scripts
parenta120985048e7e9e5c745b97c561c9a1ae531ec03 (diff)
downloadtdesdk-8c249c286eb6ba9c6789b7bf2f50b58ea3e45d06.tar.gz
tdesdk-8c249c286eb6ba9c6789b7bf2f50b58ea3e45d06.zip
Replace Q_SIGNALS and Q_SLOTS
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/completions/zsh/_tdekillall2
-rw-r--r--scripts/kde-devel-emacs.el4
-rw-r--r--scripts/kde-emacs/kde-emacs-core.el10
-rw-r--r--scripts/kde-emacs/kde-emacs-semantic.el22
-rw-r--r--scripts/kde-emacs/kde-emacs-vars.el2
5 files changed, 20 insertions, 20 deletions
diff --git a/scripts/completions/zsh/_tdekillall b/scripts/completions/zsh/_tdekillall
index bff071af..77700f31 100644
--- a/scripts/completions/zsh/_tdekillall
+++ b/scripts/completions/zsh/_tdekillall
@@ -4,5 +4,5 @@ local progs
progs=(`ps x | grep tdeinit: | grep -v Running | grep -v grep | sed 's,.*tdeinit: ,,' | sed 's, .*,,'`)
_alternative \
- 'Q_SIGNALS:: _Q_SIGNALS -p' \
+ 'signals:: _signals -p' \
'compadd $progs'
diff --git a/scripts/kde-devel-emacs.el b/scripts/kde-devel-emacs.el
index ad3cebe0..ef7188f5 100644
--- a/scripts/kde-devel-emacs.el
+++ b/scripts/kde-devel-emacs.el
@@ -98,7 +98,7 @@ With arg, to it arg times."
indent-tabs-mode nil
fume-auto-rescan-buffer-p nil
c-basic-offset 4
- c-access-key "\\<\\(Q_SIGNALS\\|k_dcop\\|\\(public\\|protected\\|private\\)\\([ ]+Q_SLOTS\\)?\\)\\>:"
+ c-access-key "\\<\\(signals\\|k_dcop\\|\\(public\\|protected\\|private\\)\\([ ]+slots\\)?\\)\\>:"
c-hanging-comment-ender-p nil
c-offsets-alist (append '((case-label . 0)
(access-label . -)
@@ -758,7 +758,7 @@ With arg, to it arg times."
(save-excursion
(c-safe (progn (c-backward-sexp 1) t))
;; agulbrahack 2
- (and (looking-at "Q_SLOTS:")
+ (and (looking-at "slots:")
(c-backward-sexp 1))
(looking-at c-access-key)))
(c-backward-sexp 1)
diff --git a/scripts/kde-emacs/kde-emacs-core.el b/scripts/kde-emacs/kde-emacs-core.el
index 030ffd39..5b09f95c 100644
--- a/scripts/kde-emacs/kde-emacs-core.el
+++ b/scripts/kde-emacs/kde-emacs-core.el
@@ -151,10 +151,10 @@ With arg, do it arg times."
(define-key c++-mode-map "\ef" 'c-forward-into-nomenclature)
(define-key c++-mode-map "\ed" 'agulbra-delete-into-nomenclature)
(define-key c++-mode-map "\eb" 'c-backward-into-nomenclature)
- ;; fontify "public|protected|private Q_SLOTS" with one and the same face :)
+ ;; fontify "public|protected|private slots" with one and the same face :)
;; NOTE: write face-at-point function to fontify those just like other
;; access specifiers
- (font-lock-add-keywords nil '(("\\<\\(\\(public\\|protected\\|private\\) Q_SLOTS\\)\\>"
+ (font-lock-add-keywords nil '(("\\<\\(\\(public\\|protected\\|private\\) slots\\)\\>"
. font-lock-reference-face)))
;; Add (set magic-keys-mode nil) to your .emacs (before loading this file)
;; to disable the magic keys in C++ mode.
@@ -866,7 +866,7 @@ This function does not do any hidden buffer changes."
(not (bobp))
(save-excursion
(c-safe (progn (c-backward-sexp 1) t))
- (and (looking-at "Q_SLOTS:")
+ (and (looking-at "slots:")
(c-backward-sexp 1))
(looking-at c-opt-access-key)))
(c-backward-sexp 1)
@@ -2116,7 +2116,7 @@ This function does not do any hidden buffer changes."
(not (bobp))
(save-excursion
(c-safe (progn (c-backward-sexp 1) t))
- (and (looking-at "Q_SLOTS:")
+ (and (looking-at "slots:")
(c-backward-sexp 1))
(looking-at c-opt-access-key)))
(c-backward-sexp 1)
@@ -3172,7 +3172,7 @@ This function does not do any hidden buffer changes."
(save-excursion
(c-safe (progn (c-backward-sexp 1) t))
;; agulbrahack 2
- (and (looking-at "Q_SLOTS:")
+ (and (looking-at "slots:")
(c-backward-sexp 1))
(looking-at c-access-key)))
(c-backward-sexp 1)
diff --git a/scripts/kde-emacs/kde-emacs-semantic.el b/scripts/kde-emacs/kde-emacs-semantic.el
index 5e5c156b..57db7f75 100644
--- a/scripts/kde-emacs/kde-emacs-semantic.el
+++ b/scripts/kde-emacs/kde-emacs-semantic.el
@@ -148,12 +148,12 @@ token and TOKENS have to be a list of functions from buffer."
ret
))
-(defmacro kde-label-Q_SIGNALS (pt)
- "Returns none-nil if the current access label == \"Q_SIGNALS\""
+(defmacro kde-label-signals (pt)
+ "Returns none-nil if the current access label == \"signals\""
`(save-excursion
(goto-char ,pt)
(if (looking-at ":")
- (re-search-backward "Q_SIGNALS" (point-at-bol) t)
+ (re-search-backward "signals" (point-at-bol) t)
)
))
@@ -171,13 +171,13 @@ token and TOKENS have to be a list of functions from buffer."
)
))
-(defmacro kde-label-Q_SLOTS (pt)
- "Return none-nil if at PT there's Q_SLOTS access specifier."
+(defmacro kde-label-slots (pt)
+ "Return none-nil if at PT there's slots access specifier."
`(save-excursion
(goto-char ,pt)
(if (looking-at ":")
;; export this regex to a kde-emacs-vars defvar
- (re-search-backward "\\(public\\|protected\\|private\\)[ \t]+Q_SLOTS" (point-at-bol) t))
+ (re-search-backward "\\(public\\|protected\\|private\\)[ \t]+slots" (point-at-bol) t))
))
(defmacro kde-is-constructor (function)
@@ -304,7 +304,7 @@ class-token has to be a token representing either a class or a struct."
(stringp cur-token-name))
(set aslot nil
asignal nil)
- ;;LABEL - unsets both Q_SIGNALS and Q_SLOTS
+ ;;LABEL - unsets both signals and slots
)
((and
(eq cur-token 'variable)
@@ -313,8 +313,8 @@ class-token has to be a token representing either a class or a struct."
)
((not (stringp cur-token-name))
(cond
- ((kde-label-Q_SIGNALS (car (semantic-token-extent elt)))
- ;;SIGNALS - next prototypes belong to Q_SIGNALS and we don't want to
+ ((kde-label-signals (car (semantic-token-extent elt)))
+ ;;SIGNALS - next prototypes belong to signals and we don't want to
;; expand those
(set asignal t
aslot nil)
@@ -324,8 +324,8 @@ class-token has to be a token representing either a class or a struct."
;; so we do ;)
(set namespace (kde-label-namespace (car (semantic-token-extent elt))))
)
- ((kde-label-Q_SLOTS (car (semantic-token-extent elt)))
- ;;SLOTS - for now just unset Q_SIGNALS
+ ((kde-label-slots (car (semantic-token-extent elt)))
+ ;;SLOTS - for now just unset signals
(set aslot t
asignal nil)
)
diff --git a/scripts/kde-emacs/kde-emacs-vars.el b/scripts/kde-emacs/kde-emacs-vars.el
index b2333b30..216e64f5 100644
--- a/scripts/kde-emacs/kde-emacs-vars.el
+++ b/scripts/kde-emacs/kde-emacs-vars.el
@@ -39,7 +39,7 @@
;*---------------------------------------------------------------------*/
(defconst kde-access-labels
- "\\<\\(Q_SIGNALS\\|k_dcop\\|\\(public\\|protected\\|private\\)\\([ ]+Q_SLOTS\\)?\\)\\>:"
+ "\\<\\(signals\\|k_dcop\\|\\(public\\|protected\\|private\\)\\([ ]+slots\\)?\\)\\>:"
"KDE specific access labels regexp.")
(defconst kde-source-files '("cpp" "cc" "cxx" "CC" "C" "c")