Horizon
src
imp
footprint_generator
footag
display.hpp
1
#pragma once
2
#include "core/core_package.hpp"
3
#include <gtkmm.h>
4
extern
"C"
{
5
#include "footag/footag.h"
6
}
7
namespace
horizon {
8
class
FootagDisplay
:
public
Gtk::Box {
9
public
:
10
FootagDisplay
(BaseObjectType *cobject,
const
Glib::RefPtr<Gtk::Builder> &x,
CorePackage
*c,
enum
footag_type type);
11
static
FootagDisplay
*create(
CorePackage
*c,
enum
footag_type type);
12
13
~
FootagDisplay
()
override
;
14
bool
generate();
15
bool
isopen();
16
17
private
:
18
CorePackage
*core;
19
Gtk::Label *reference_label =
nullptr
;
20
Gtk::Label *reference_title =
nullptr
;
21
Gtk::CheckButton *autofit;
22
Gtk::Label *hint_label =
nullptr
;
23
Package
ppkg;
24
class
PreviewCanvas
*canvas_package =
nullptr
;
25
26
struct
footag_ctx
*ctx = NULL;
27
struct
footag_param
*params;
28
29
void
calc_and_display();
30
void
calc(
Package
*pkg,
const
struct
footag_spec
*s);
31
void
display();
32
void
help(
const
struct
footag_param
*p);
33
};
34
}
// namespace horizon
horizon::FootagDisplay
Definition:
display.hpp:8
horizon::PreviewCanvas
Definition:
preview_canvas.hpp:5
footag_param
Definition:
footag.h:85
horizon::CorePackage
Definition:
core_package.hpp:11
footag_spec
Definition:
footag.h:139
horizon::Package
Definition:
package.hpp:28
footag_ctx
Definition:
priv.h:48
Generated by
1.8.16