Files
mcde/programs/dtfile/Navigation.h
T
lotherkandClaude Opus 5.5 d0fd050046 mcde: dtfile: the column view
A fourth view button, Columns: one column per folder from Home (or /)
down to the window's folder, as many of the deepest as fit, and on the
right a preview of what is chosen -- the type's icon, its kind (TYPE_LABEL
as words, and the MIME type), size and date.  A folder chosen opens the
next column and becomes the window's folder through dtfile's own
ChangeDirectoryToParent, so title, path bar, history and the other views
follow; Back, Forward and the places rebuild the columns; a double click
on a file runs the first action of its type.

The columns are a sibling of CDE's work frame with its attachments; they
are managed before the work frame is unmanaged, with the form around held
at XmRESIZE_NONE: otherwise the window shrank to the columns' own size.

Measured on Xvfb (build/mcde-shots/df-*.png): Columns, Documents,
Projects, plan.txt -- three columns, the preview with the text icon,
"Kind: Textfile (text/plain)", 6 bytes; Back rebuilt the columns at
Documents; Icons brought the work area back; the window kept its size.
Not measured: the double click.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 09:00:01 +00:00

30 lines
1.3 KiB
C

/*
* Navigation.h -- MCDE: the navigation parts of the file manager window (Navigation.c)
*
* Copyright (c) 2026 The Makronix project. GNU LGPL 2.0 or later, as CDE.
*/
#ifndef _Navigation_h
#define _Navigation_h
/* the form that holds toolbar, sidebar and (after _McdeNavAttachWork) the
* work area; it becomes the main window's work window */
extern Widget _McdeNavCreate(FileMgrRec *rec, Widget parent);
extern void _McdeNavAttachWork(FileMgrRec *rec, Widget work);
/* called by ShowNewDirectory for every directory the window shows */
extern void _McdeNavVisit(FileMgrRec *rec, const char *dir);
/* appends ", 12.3 GB available" to the status text in buf */
/* go to PATH as the "Go To" dialog does (Columns.c) */
extern void _McdeNavGoTo(FileMgrRec *rec, const char *path);
/* the column view (Columns.c) */
extern void _McdeColumnsCreate(FileMgrRec *rec, Widget parent, Widget work);
extern void _McdeColumnsShow(FileMgrRec *rec, Widget work, const char *dir,
Boolean on);
extern void _McdeColumnsFollow(FileMgrRec *rec, const char *dir);
extern void _McdeNavFreeSpace(const char *dir, char *buf, size_t len);
/* MCDE: the search field of the window of DATA: is NAME hidden by it
* (FilterFiles in File.c asks for every file) */
extern Boolean _McdeNavHidden(FileMgrData *data, const char *name);
#endif /* _Navigation_h */