The pane for the backup: Back Up Automatically, every hour; the backup disk with Choose Disk... -- the partitions that do not hold the system, and a password, twice, whose fields show stars, that encrypts the backups (a reminder to keep it safe follows); when the last backup ran and how it ended; Back Up Now, which runs dtbackup in a terminal where it shows what it does; Restore..., the backups newest last and a path to bring back into ~/Restored; how many hourly, daily and weekly backups are kept, every monthly one or not, and the free space in percent below which the oldest go. As a user it shows and offers Unlock.... Measured on Xvfb as a user (build/mcde-shots/desk-0.png): no disk, no backup yet, the defaults 24/30/52, every monthly, 10 %, all greyed but Back Up Now and Unlock.... Not measured: setting up, running and restoring (borg comes into the set with the next userland). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
67 lines
2.6 KiB
C
67 lines
2.6 KiB
C
/*
|
|
* ui.h -- dtsystemsettings: what the panes share (main.c)
|
|
*
|
|
* Copyright (c) 2026 The Makronix project. GNU LGPL 2.0 or later, as CDE.
|
|
*/
|
|
|
|
#ifndef _dtsystemsettings_ui_h
|
|
#define _dtsystemsettings_ui_h
|
|
|
|
#include <X11/Intrinsic.h>
|
|
#include <Xm/Xm.h>
|
|
|
|
extern XtAppContext app;
|
|
|
|
XmRenderTable PaneFont(Widget w, int size, Boolean bold);
|
|
Widget Text(Widget parent, const char *name, const char *text);
|
|
void SetText(Widget w, const char *text);
|
|
Widget Button(Widget parent, const char *label, XtCallbackProc cb,
|
|
XtPointer data);
|
|
Widget PaneButton(Widget parent, const char *label, XtCallbackProc cb,
|
|
XtPointer data);
|
|
Widget Table(Widget parent, const char *const *rows, int n, Widget *values);
|
|
Pixmap Icon(Widget w, const char *file);
|
|
void Spawn(const char *command);
|
|
|
|
/* a message in a small window; ERROR: an error */
|
|
void Message(Widget parent, const char *text, int error);
|
|
/* the command line that runs COMMAND as root in a terminal, after su(1)
|
|
* asked for the password there ("Unlock..."); into BUF */
|
|
void AsRoot(const char *title, const char *command, char *buf, size_t len);
|
|
|
|
/* the panes in accounts.c and update.c */
|
|
Widget MakeAccounts(Widget parent);
|
|
Widget MakeUpdate(Widget parent);
|
|
/* the value of a resource in the server's RESOURCE_MANAGER, read anew
|
|
* (Xlib keeps the string of the connection's start); DEF when none */
|
|
void ServerResource(Display *dpy, const char *name, const char *class,
|
|
const char *def, char *buf, size_t len);
|
|
/* the pane in desktop.c, opened on its desktop or its screen saver page */
|
|
Widget MakeDesktop(Widget parent);
|
|
Widget MakeScreenSaver(Widget parent);
|
|
/* the Wi-Fi part of the Network pane (wifi.c); NULL without a Wi-Fi card */
|
|
Widget MakeWifi(Widget parent);
|
|
/* dtsystemsettings -join-wifi IF [SSID in hex]: the terminal of "Join..." */
|
|
int JoinWifiCommand(const char *ifname, const char *hexssid);
|
|
/* the Backup pane (backup.c) */
|
|
Widget MakeBackup(Widget parent);
|
|
/* the Sharing pane (sharing.c) */
|
|
Widget MakeSharing(Widget parent);
|
|
/* the Startup pane (startup.c) */
|
|
Widget MakeStartup(Widget parent);
|
|
/* the time zone in Date & Time (timezone.c) */
|
|
Widget MakeZoneChooser(Widget parent);
|
|
/* dtsystemsettings -set-timezone ZONE: what the terminal of "Set Time Zone"
|
|
* runs */
|
|
int SetTimezoneCommand(const char *zone);
|
|
/* the panes in appearance.c */
|
|
Widget MakeAppearance(Widget parent);
|
|
Widget MakeFonts(Widget parent);
|
|
/* the panes in input.c */
|
|
Widget MakeKeyboard(Widget parent);
|
|
Widget MakeMouse(Widget parent);
|
|
/* dtsystemsettings -apply-update: what the terminal of "Update Now" runs */
|
|
int ApplyUpdate(void);
|
|
|
|
#endif /* _dtsystemsettings_ui_h */
|