Files
mcde/programs/dtsystemsettings/panes.h
T
lotherkandClaude Opus 5.5 6f68d92f75 mcde: dtsystemsettings, the settings of the computer in one window
Four bands of icons -- Personal, Hardware, Internet & Network, System --
from panes.c (plain C, PASS test_panes); a click opens the pane in the
window, Show All goes back, -pane ID opens one directly.  Own panes through
McdeSys: Sound (volume, mute), Network (the cards, addresses, SSID),
Bluetooth (state, on/off), Date & Time (a running clock, the zone), About
(everything mcde_sys_info knows).  Appearance, Desktop, Fonts, Language,
Screen Saver, Keyboard, Mouse, Startup open dtstyle, Printers dtprintinfo,
until they are drawn here; Accounts and Software Update are greyed.  dtbar's
System Settings... and the Sound/Bluetooth/Network Settings... items open
it.  New icons: a 48-pixel Makronix logo, 32-pixel network and Bluetooth.
Seen on Xvfb with dtwm and dtbar, sound against a private PulseAudio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:24:42 +00:00

43 lines
1.1 KiB
C

/*
* panes.h -- dtsystemsettings: the panes and their categories (panes.c)
*
* Copyright (c) 2026 The Makronix project. GNU LGPL 2.0 or later, as CDE.
*
* C99 only, no X: test_panes.c tests it (make check).
*/
#ifndef _dtsystemsettings_panes_h
#define _dtsystemsettings_panes_h
enum PaneCategory {
CAT_PERSONAL,
CAT_HARDWARE,
CAT_NETWORK,
CAT_SYSTEM,
CAT_COUNT
};
enum PaneKind {
PANE_OWN, /* drawn by dtsystemsettings (main.c) */
PANE_COMMAND, /* a program of the desktop opens it */
PANE_LATER /* named, not there yet: shown greyed */
};
typedef struct {
const char *id; /* -pane ID: "sound", "network" ... */
const char *label; /* under the icon */
int category; /* enum PaneCategory */
const char *icon; /* an icon file of appconfig/icons/C */
int kind; /* enum PaneKind */
const char *command; /* PANE_COMMAND: a shell command line */
} Pane;
extern const char *const categoryNames[CAT_COUNT];
extern const Pane panes[];
extern const int paneCount;
/* the pane with ID, or NULL */
extern const Pane *PaneFind(const char *id);
#endif /* _dtsystemsettings_panes_h */