Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
f3151f4d
Commit
f3151f4d
authored
12 years ago
by
mcmlxxix
Browse files
Options
Downloads
Patches
Plain Diff
support frame tab types, add hotkeys tab property
parent
5bd870b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/load/layout.js
+30
-3
30 additions, 3 deletions
exec/load/layout.js
with
30 additions
and
3 deletions
exec/load/layout.js
+
30
−
3
View file @
f3151f4d
...
...
@@ -158,7 +158,7 @@ function Layout(frame) {
if
(
!
cmd
)
return
false
;
switch
(
cmd
.
toUpperCase
())
{
case
"
\t
"
:
case
'
\
x09
'
:
if
(
properties
.
views
.
length
>
1
)
nextView
();
return
true
;
...
...
@@ -446,6 +446,7 @@ function LayoutView(title,frame,parent) {
tab
.
getcmd
=
function
(
cmd
)
{
return
this
.
tree
.
getcmd
.
call
(
tab
.
tree
,
cmd
);
}
tab
.
hotkeys
=
true
;
break
;
case
"
CHAT
"
:
if
(
typeof
JSONChat
==
"
undefined
"
)
...
...
@@ -481,6 +482,25 @@ function LayoutView(title,frame,parent) {
}
properties
.
chat
=
tab
.
chat
;
tab
.
frame
.
lf_strict
=
false
;
tab
.
hotkeys
=
false
;
break
;
case
"
FRAME
"
:
tab
.
getcmd
=
function
(
cmd
)
{
switch
(
cmd
.
toUpperCase
())
{
case
KEY_UP
:
return
this
.
frame
.
scroll
(
0
,
-
1
);
case
KEY_DOWN
:
return
this
.
frame
.
scroll
(
0
,
1
);
case
KEY_LEFT
:
return
this
.
frame
.
scroll
(
-
1
,
1
);
case
KEY_RIGHT
:
return
this
.
frame
.
scroll
(
1
,
0
);
}
}
tab
.
hotkeys
=
true
;
tab
.
frame
.
v_scroll
=
true
;
tab
.
frame
.
h_scroll
=
true
;
tab
.
frame
.
open
();
break
;
case
"
GRAPHIC
"
:
//ToDo
...
...
@@ -629,7 +649,8 @@ function ViewTab(title,frame,parent) {
content
:
undefined
}
var
settings
=
{
active
:
false
active
:
false
,
hotkeys
:
true
}
var
frames
=
{
main
:
undefined
...
...
@@ -660,7 +681,7 @@ function ViewTab(title,frame,parent) {
this
.
__defineGetter__
(
"
frame
"
,
function
()
{
return
frames
.
main
;
});
this
.
__defineGetter__
(
"
parent
"
,
function
()
{
this
.
__defineGetter__
(
"
parent
"
,
function
()
{
return
relations
.
parent
;
});
...
...
@@ -673,6 +694,12 @@ function ViewTab(title,frame,parent) {
frames
.
main
.
top
();
return
true
;
});
this
.
__defineGetter__
(
"
hotkeys
"
,
function
()
{
return
settings
.
hotkeys
;
});
this
.
__defineSetter__
(
"
hotkeys
"
,
function
(
hotkeys
)
{
settings
.
hotkeys
=
hotkeys
;
});
/* default command handler
* (can be overridden for specialized tabs) */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment