Files
mcde/programs/dtfile/Makefile.am
T
lotherk 709a7866c1 MCDE dtfile: search over folders, with the sidebar's SEARCH FOR (t0119)
A search window of its own: "Search in:" (the home folder, a path, or
"This computer"), "Name contains:", "Changed:" (any time, today, yesterday,
the past week), the findings as paths relative to the scope, and Open,
Save... and Search (Return searches too).  The walk is opendir/readdir in C
-- no index, nothing in the background -- bounded to 24 levels, 200000
entries and 500 findings, so a wrong search cannot freeze the window.

The sidebar's SEARCH FOR group is alive: Today, Yesterday and Past Week run
the search at once, and the saved searches (~/.dt/searches/NAME.search:
name=, when=, scope=) are listed under them and run with their criteria.
Save... writes such a file; "Open" goes to the finding's folder (a folder
itself is opened).

Measured under Xvfb: "Today" in a home with Documents/heute.txt (today) and
Documents/gestern.txt (yesterday) finds 2 -- Documents and
Documents/heute.txt -- in 3 entries (docs/screenshots/leopard/
Finder-Search-mcde.png); Save... writes ~/.dt/searches/search.search with
"name=", "when=today", "scope=~" (cat), and the group lists it on the next
start.

Open: "All Images", "All Movies" and "All Documents" are still grey -- they
need a type criterion through the data types (t0194); Open shows the folder,
it does not choose the finding in it; the search runs synchronously between
two redraws; and the toolbar's search field still filters the folder shown,
not the whole computer.
2026-11-14 09:18:02 +00:00

52 lines
1.5 KiB
Makefile

configdir = $(CDE_INSTALLATION_TOP)/config/C
SUBDIRS = dtcopy
bin_PROGRAMS = dtfile
BUILT_SOURCES = dtfile.config
CLEANFILES = dtfile.config
dist_config_DATA = dtfile.config
dtfile_CPPFLAGS = -I./dtcopy -DSHAPE -D_ILS_MACROS -DSUN_PERF \
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" \
-DCDE_CONFIGURATION_TOP=\"$(CDE_CONFIGURATION_TOP)\"
dtfile_LDADD = $(LIBMCDESOUND) \
dtcopy/sharedFuncs.o \
dtcopy/fsrtns.o \
$(LIBMCDESYS) $(DTCLIENTLIBS) $(TIRPCLIB) $(XTOOLLIB)
if OPENBSD
dtfile_CPPFLAGS += -DFILE_MAP_OPTIMIZE
endif
if LINUX
dtfile_CPPFLAGS += -DFILE_MAP_OPTIMIZE
endif
if SOLARIS
dtfile_LDADD += -lintl -lresolv
endif
dtfile_SOURCES = ChangeDir.c ChangeDirP.c Command.c Common.c \
Desktop.c Directory.c Encaps.c File.c \
FileDialog.c FileManip.c FileMgr.c FileOp.c \
Filter.c FilterP.c Find.c FindP.c \
Help.c HelpCB.c HelpP.c IconWindow.c \
IconicPath.c Main.c Menu.c MkDir.c \
ModAttr.c ModAttrP.c MultiView.c OverWrite.c \
Prefs.c PrefsP.c SharedMsgs.c SharedProcs.c \
ToolTalk.c Trash.c Utils.c fsDialog.c \
Navigation.c Columns.c NetView.c Peek.c GoToFolder.c Info.c Connect.c Search.c
# Mind the quoting here...
SCRIPTFLAGS = -DSHAPE -D_ILS_MACROS -DSUN_PERF \
-DCDE_INSTALLATION_TOP="$(CDE_INSTALLATION_TOP)" \
-DCDE_CONFIGURATION_TOP="$(CDE_CONFIGURATION_TOP)"
dtfile.config: dtfile.config.cpp
$(RM) $@
$(GENCPP) -P -DXCOMM=# $(SCRIPTFLAGS) $< > $@