Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
9da282d7
Commit
9da282d7
authored
May 30, 2006
by
Hisham Muhammad
Browse files
Remove references to ListBox
parent
ea855aef
Changes
2
Hide whitespace changes
Inline
Side-by-side
CategoriesPanel.c
View file @
9da282d7
...
...
@@ -108,27 +108,27 @@ HandlerResult CategoriesPanel_eventHandler(Panel* super, int ch) {
}
void
CategoriesPanel_makeMetersPage
(
CategoriesPanel
*
this
)
{
Panel
*
l
bL
eftMeters
=
(
Panel
*
)
MetersPanel_new
(
this
->
settings
,
"Left column"
,
this
->
settings
->
header
->
leftMeters
,
this
->
scr
);
Panel
*
lbR
ightMeters
=
(
Panel
*
)
MetersPanel_new
(
this
->
settings
,
"Right column"
,
this
->
settings
->
header
->
rightMeters
,
this
->
scr
);
Panel
*
lbA
vailableMeters
=
(
Panel
*
)
AvailableMetersPanel_new
(
this
->
settings
,
l
bL
eftMeters
,
lbR
ightMeters
,
this
->
scr
);
ScreenManager_add
(
this
->
scr
,
l
bL
eftMeters
,
FunctionBar_new
(
10
,
MetersFunctions
,
NULL
,
NULL
),
20
);
ScreenManager_add
(
this
->
scr
,
lbR
ightMeters
,
FunctionBar_new
(
10
,
MetersFunctions
,
NULL
,
NULL
),
20
);
ScreenManager_add
(
this
->
scr
,
lbA
vailableMeters
,
FunctionBar_new
(
10
,
AvailableMetersFunctions
,
NULL
,
NULL
),
-
1
);
Panel
*
leftMeters
=
(
Panel
*
)
MetersPanel_new
(
this
->
settings
,
"Left column"
,
this
->
settings
->
header
->
leftMeters
,
this
->
scr
);
Panel
*
r
ightMeters
=
(
Panel
*
)
MetersPanel_new
(
this
->
settings
,
"Right column"
,
this
->
settings
->
header
->
rightMeters
,
this
->
scr
);
Panel
*
a
vailableMeters
=
(
Panel
*
)
AvailableMetersPanel_new
(
this
->
settings
,
leftMeters
,
r
ightMeters
,
this
->
scr
);
ScreenManager_add
(
this
->
scr
,
leftMeters
,
FunctionBar_new
(
10
,
MetersFunctions
,
NULL
,
NULL
),
20
);
ScreenManager_add
(
this
->
scr
,
r
ightMeters
,
FunctionBar_new
(
10
,
MetersFunctions
,
NULL
,
NULL
),
20
);
ScreenManager_add
(
this
->
scr
,
a
vailableMeters
,
FunctionBar_new
(
10
,
AvailableMetersFunctions
,
NULL
,
NULL
),
-
1
);
}
void
CategoriesPanel_makeDisplayOptionsPage
(
CategoriesPanel
*
this
)
{
Panel
*
lbD
isplayOptions
=
(
Panel
*
)
DisplayOptionsPanel_new
(
this
->
settings
,
this
->
scr
);
ScreenManager_add
(
this
->
scr
,
lbD
isplayOptions
,
FunctionBar_new
(
10
,
DisplayOptionsFunctions
,
NULL
,
NULL
),
-
1
);
Panel
*
d
isplayOptions
=
(
Panel
*
)
DisplayOptionsPanel_new
(
this
->
settings
,
this
->
scr
);
ScreenManager_add
(
this
->
scr
,
d
isplayOptions
,
FunctionBar_new
(
10
,
DisplayOptionsFunctions
,
NULL
,
NULL
),
-
1
);
}
void
CategoriesPanel_makeColorsPage
(
CategoriesPanel
*
this
)
{
Panel
*
lbC
olors
=
(
Panel
*
)
ColorsPanel_new
(
this
->
settings
,
this
->
scr
);
ScreenManager_add
(
this
->
scr
,
lbC
olors
,
FunctionBar_new
(
10
,
ColorsFunctions
,
NULL
,
NULL
),
-
1
);
Panel
*
c
olors
=
(
Panel
*
)
ColorsPanel_new
(
this
->
settings
,
this
->
scr
);
ScreenManager_add
(
this
->
scr
,
c
olors
,
FunctionBar_new
(
10
,
ColorsFunctions
,
NULL
,
NULL
),
-
1
);
}
void
CategoriesPanel_makeColumnsPage
(
CategoriesPanel
*
this
)
{
Panel
*
lbC
olumns
=
(
Panel
*
)
ColumnsPanel_new
(
this
->
settings
,
this
->
scr
);
Panel
*
lbA
vailableColumns
=
(
Panel
*
)
AvailableColumnsPanel_new
(
this
->
settings
,
lbC
olumns
,
this
->
scr
);
ScreenManager_add
(
this
->
scr
,
lbC
olumns
,
FunctionBar_new
(
10
,
ColumnsFunctions
,
NULL
,
NULL
),
20
);
ScreenManager_add
(
this
->
scr
,
lbA
vailableColumns
,
FunctionBar_new
(
10
,
AvailableColumnsFunctions
,
NULL
,
NULL
),
-
1
);
Panel
*
c
olumns
=
(
Panel
*
)
ColumnsPanel_new
(
this
->
settings
,
this
->
scr
);
Panel
*
a
vailableColumns
=
(
Panel
*
)
AvailableColumnsPanel_new
(
this
->
settings
,
c
olumns
,
this
->
scr
);
ScreenManager_add
(
this
->
scr
,
c
olumns
,
FunctionBar_new
(
10
,
ColumnsFunctions
,
NULL
,
NULL
),
20
);
ScreenManager_add
(
this
->
scr
,
a
vailableColumns
,
FunctionBar_new
(
10
,
AvailableColumnsFunctions
,
NULL
,
NULL
),
-
1
);
}
ColorsPanel.c
View file @
9da282d7
...
...
@@ -88,10 +88,10 @@ HandlerResult ColorsPanel_EventHandler(Panel* super, int ch) {
this
->
settings
->
changed
=
true
;
Header
*
header
=
this
->
settings
->
header
;
CRT_setColors
(
mark
);
Panel
*
lbM
enu
=
(
Panel
*
)
Vector_get
(
this
->
scr
->
items
,
0
);
Panel
*
m
enu
=
(
Panel
*
)
Vector_get
(
this
->
scr
->
items
,
0
);
Header_draw
(
header
);
RichString_setAttr
(
&
(
super
->
header
),
CRT_colors
[
PANEL_HEADER_FOCUS
]);
RichString_setAttr
(
&
(
lbM
enu
->
header
),
CRT_colors
[
PANEL_HEADER_UNFOCUS
]);
RichString_setAttr
(
&
(
m
enu
->
header
),
CRT_colors
[
PANEL_HEADER_UNFOCUS
]);
ScreenManager_resize
(
this
->
scr
,
this
->
scr
->
x1
,
header
->
height
,
this
->
scr
->
x2
,
this
->
scr
->
y2
);
}
return
result
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment