ui/common/icons.c

Tue, 09 Jun 2026 18:50:13 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 09 Jun 2026 18:50:13 +0200
changeset 1187
7b5ee7367b32
parent 1160
881dfcf46cd6
permissions
-rw-r--r--

fix AppDelegate source file case (Cocoa)

/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright 2026 Olaf Wintermann. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   1. Redistributions of source code must retain the above copyright
 *      notice, this list of conditions and the following disclaimer.
 *
 *   2. Redistributions in binary form must reproduce the above copyright
 *      notice, this list of conditions and the following disclaimer in the
 *      documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#include "icons.h"

const char* ui_icon_name(enum UiIconId icon_id) {
    switch(icon_id) {
        case UI_ICON_ID_HOME        : return UI_ICON_HOME;
        case UI_ICON_ID_NEW_WINDOW  : return UI_ICON_NEW_WINDOW;
        case UI_ICON_ID_REFRESH     : return UI_ICON_REFRESH;
        case UI_ICON_ID_NEW_FOLDER  : return UI_ICON_NEW_FOLDER;
        case UI_ICON_ID_ADD         : return UI_ICON_ADD;
        case UI_ICON_ID_UPLOAD      : return UI_ICON_UPLOAD;
        case UI_ICON_ID_SAVE_LOCAL  : return UI_ICON_SAVE_LOCAL;
        case UI_ICON_ID_DELETE      : return UI_ICON_DELETE;
        case UI_ICON_ID_DOCK_LEFT   : return UI_ICON_DOCK_LEFT;
        case UI_ICON_ID_DOCK_RIGHT  : return UI_ICON_DOCK_RIGHT;
        case UI_ICON_ID_GO_BACK     : return UI_ICON_GO_BACK;
        case UI_ICON_ID_GO_FORWARD  : return UI_ICON_GO_FORWARD;
        case UI_ICON_ID_GO_UP       : return UI_ICON_GO_UP;
        case UI_ICON_ID_GO_DOWN     : return UI_ICON_GO_DOWN;
    }
    return NULL;
}

mercurial