2018-05-16 16:27:38 +02:00
|
|
|
/*
|
|
|
|
* GDSII-Converter
|
|
|
|
* Copyright (C) 2018 Mario Hüttel <mario.huettel@gmx.net>
|
|
|
|
*
|
|
|
|
* This file is part of GDSII-Converter.
|
|
|
|
*
|
|
|
|
* GDSII-Converter is free software: you can redistribute it and/or modify
|
2018-05-16 16:29:34 +02:00
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
2018-05-16 16:27:38 +02:00
|
|
|
*
|
|
|
|
* GDSII-Converter is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with GDSII-Converter. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2018-05-16 16:20:09 +02:00
|
|
|
#ifndef __LAYER_SELECTOR_H__
|
|
|
|
#define __LAYER_SELECTOR_H__
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <glib.h>
|
2018-05-17 21:46:14 +02:00
|
|
|
#include <layer-element.h>
|
2018-05-16 16:20:09 +02:00
|
|
|
|
|
|
|
struct layer_info {
|
|
|
|
int id;
|
|
|
|
/* This contains both: opacity and Color */
|
|
|
|
GdkRGBA color;
|
|
|
|
};
|
|
|
|
|
|
|
|
void generate_layer_widgets(GtkListBox *listbox, GList *libs);
|
|
|
|
void clear_list_box_widgets();
|
|
|
|
|
2018-05-17 21:46:14 +02:00
|
|
|
void setup_load_mapping_callback(GtkWidget *button, GtkWindow *main_window);
|
|
|
|
void setup_save_mapping_callback(GtkWidget *button, GtkWindow *main_window);
|
2018-05-16 16:20:09 +02:00
|
|
|
|
|
|
|
void get_layer_info(GList **info_list, GtkListBox *box);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __LAYER_SELECTOR_H__ */
|