source: mainline/uspace/lib/ui/test/main.c@ 11662bd

ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since 11662bd was 11662bd, checked in by Jiri Svoboda <jiri@…>, 3 years ago

File list control

File dialogs now allow browsing files/directories using the new
file list control. This is essentialy a copy of the Panel class
from Navigator, modified and extended to work in graphics mode as well.
Later Panel should be re-implemented using file list to prevent
duplication.

Note that this is not 100% done, it needs, for example, a scrollbar
(instead of scrolling by clicking the edges).

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[f80690a]1/*
[96c6a00]2 * Copyright (c) 2022 Jiri Svoboda
[f80690a]3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <pcut/pcut.h>
30
31PCUT_INIT;
32
[96c6a00]33PCUT_IMPORT(accel);
[8009dc27]34PCUT_IMPORT(control);
[d70dc1c4]35PCUT_IMPORT(checkbox);
[8965860c]36PCUT_IMPORT(clickmatic);
[03145ee]37PCUT_IMPORT(entry);
[5e109e1]38PCUT_IMPORT(file_dialog);
[11662bd]39PCUT_IMPORT(file_list);
[8009dc27]40PCUT_IMPORT(fixed);
[f93e4e3]41PCUT_IMPORT(image);
[ba09d06]42PCUT_IMPORT(label);
[95a9cbc]43PCUT_IMPORT(menu);
44PCUT_IMPORT(menubar);
45PCUT_IMPORT(menuentry);
[5e109e1]46PCUT_IMPORT(msg_dialog);
[de9992c]47PCUT_IMPORT(paint);
[f80690a]48PCUT_IMPORT(pbutton);
[3c8c580]49PCUT_IMPORT(popup);
[7020d1f]50PCUT_IMPORT(rbutton);
[47728678]51PCUT_IMPORT(resource);
[5ef85c0]52PCUT_IMPORT(scrollbar);
[ef734b7]53PCUT_IMPORT(slider);
[f7a90df]54PCUT_IMPORT(ui);
[1769693]55PCUT_IMPORT(wdecor);
[f7a90df]56PCUT_IMPORT(window);
[f80690a]57PCUT_MAIN();
Note: See TracBrowser for help on using the repository browser.