More work on icons

This commit is contained in:
Joel Holdsworth 2008-05-16 19:23:12 +01:00
parent a51d91d7b5
commit 8437450767
8 changed files with 111 additions and 44 deletions

BIN
icons/assets-panel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 447 B

After

Width:  |  Height:  |  Size: 453 B

View file

@ -14,7 +14,7 @@
id="svg2677" id="svg2677"
sodipodi:version="0.32" sodipodi:version="0.32"
inkscape:version="0.46" inkscape:version="0.46"
sodipodi:docname="timeline.svg" sodipodi:docname="timeline-panel.svg"
version="1.0" version="1.0"
inkscape:output_extension="org.inkscape.output.svg.inkscape" inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/joel/workspace/lumiera/lumiera/icons/timeline.png" inkscape:export-filename="/home/joel/workspace/lumiera/lumiera/icons/timeline.png"
@ -331,16 +331,84 @@
y1="9" y1="9"
x2="16" x2="16"
y2="9" /> y2="9" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5654"
id="linearGradient2427"
gradientUnits="userSpaceOnUse"
x1="0"
y1="9"
x2="16"
y2="9" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5580"
id="linearGradient2430"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-5,1)"
x1="5"
y1="5"
x2="11"
y2="9.5" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5580"
id="linearGradient2433"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(1,1)"
x1="5"
y1="5"
x2="11"
y2="9.5" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5633"
id="linearGradient2436"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(0,1)"
x1="16"
y1="2.5"
x2="0"
y2="2.5" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5580"
id="linearGradient2439"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(7,1)"
x1="5"
y1="5"
x2="11"
y2="9.5" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5572"
id="linearGradient2444"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,0.8888889,0,1.3333333)"
x1="0"
y1="4.5"
x2="16"
y2="4.5" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient5654"
id="linearGradient2467"
gradientUnits="userSpaceOnUse"
x1="0"
y1="9"
x2="16"
y2="9" />
<mask <mask
maskUnits="userSpaceOnUse" maskUnits="userSpaceOnUse"
id="mask5749"> id="mask2463">
<rect <rect
y="0" style="fill:url(#linearGradient2467);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:1, 1;stroke-dashoffset:0"
x="0" id="rect2465"
height="16"
width="16" width="16"
id="rect5751" height="16"
style="fill:url(#linearGradient5753);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:1, 1;stroke-dashoffset:0" /> x="0"
y="0" />
</mask> </mask>
</defs> </defs>
<metadata <metadata
@ -359,30 +427,14 @@
inkscape:groupmode="layer" inkscape:groupmode="layer"
inkscape:label="Layer 1"> inkscape:label="Layer 1">
<g <g
id="g5740" id="g2456"
mask="url(#mask5749)"> mask="url(#mask2463)">
<rect <path
ry="0"
y="4"
x="0"
height="8"
width="16"
id="rect3249" id="rect3249"
style="fill:url(#linearGradient5707);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none" /> d="M 0 4 L 0 5 L 0 6 L 0 10 L 0 11 L 0 12 L 16 12 L 16 11 L 15 11 L 15 10 L 16 10 L 16 6 L 15 6 L 15 5 L 16 5 L 16 4 L 0 4 z M 1 5 L 2 5 L 2 6 L 1 6 L 1 5 z M 3 5 L 4 5 L 4 6 L 3 6 L 3 5 z M 5 5 L 6 5 L 6 6 L 5 6 L 5 5 z M 7 5 L 8 5 L 8 6 L 7 6 L 7 5 z M 9 5 L 10 5 L 10 6 L 9 6 L 9 5 z M 11 5 L 12 5 L 12 6 L 11 6 L 11 5 z M 13 5 L 14 5 L 14 6 L 13 6 L 13 5 z M 1 10 L 2 10 L 2 11 L 1 11 L 1 10 z M 3 10 L 4 10 L 4 11 L 3 11 L 3 10 z M 5 10 L 6 10 L 6 11 L 5 11 L 5 10 z M 7 10 L 8 10 L 8 11 L 7 11 L 7 10 z M 9 10 L 10 10 L 10 11 L 9 11 L 9 10 z M 11 10 L 12 10 L 12 11 L 11 11 L 11 10 z M 13 10 L 14 10 L 14 11 L 13 11 L 13 10 z "
<path style="fill:url(#linearGradient2444);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none" />
sodipodi:nodetypes="cc"
id="path4035"
d="M -1,5.5 L 16,5.5"
style="fill:none;fill-rule:evenodd;stroke:#eeeeec;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker-start:none;marker-mid:none;stroke-miterlimit:4;stroke-dasharray:1, 1;stroke-dashoffset:0;stroke-opacity:1" />
<path
inkscape:export-ydpi="90"
inkscape:export-xdpi="90"
sodipodi:nodetypes="cc"
style="fill:none;fill-rule:evenodd;stroke:#eeeeec;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker-start:none;marker-mid:none;stroke-miterlimit:4;stroke-dasharray:1, 1;stroke-dashoffset:0;stroke-opacity:1"
d="M -1,10.5 L 16,10.5"
id="path5564" />
<rect <rect
style="fill:url(#linearGradient5702);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none" style="fill:url(#linearGradient2439);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none"
id="rect5588" id="rect5588"
width="5" width="5"
height="4" height="4"
@ -392,7 +444,7 @@
<path <path
sodipodi:nodetypes="cccccccccc" sodipodi:nodetypes="cccccccccc"
d="M 0,3 L 0,4 L 16,4 L 16,3 L 0,3 z M 0,12 L 0,13 L 16,13 L 16,12 L 0,12 z" d="M 0,3 L 0,4 L 16,4 L 16,3 L 0,3 z M 0,12 L 0,13 L 16,13 L 16,12 L 0,12 z"
style="fill:url(#linearGradient5696);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" style="fill:url(#linearGradient2436);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
id="path5616" /> id="path5616" />
<rect <rect
ry="0" ry="0"
@ -401,9 +453,9 @@
height="4" height="4"
width="5" width="5"
id="rect5732" id="rect5732"
style="fill:url(#linearGradient5734);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none" /> style="fill:url(#linearGradient2433);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none" />
<rect <rect
style="fill:url(#linearGradient5738);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none" style="fill:url(#linearGradient2430);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none"
id="rect5736" id="rect5736"
width="5" width="5"
height="4" height="4"

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -72,15 +72,18 @@ lumigui_LDADD = $(GTK_LUMIERA_LIBS)
lumigui_DEPENDENCIES = \ lumigui_DEPENDENCIES = \
$(top_builddir)/lumiera_ui.rc \ $(top_builddir)/lumiera_ui.rc \
$(top_builddir)/viewer-panel.png \ $(top_builddir)/assets-panel.png \
$(top_builddir)/timeline.png $(top_builddir)/timeline-panel.png \
$(top_builddir)/viewer-panel.png
$(top_builddir)/lumiera_ui.rc: $(top_builddir)/lumiera_ui.rc:
cp $(lumigui_srcdir)/lumiera_ui.rc $(top_builddir) cp $(lumigui_srcdir)/lumiera_ui.rc $(top_builddir)
$(top_builddir)/assets-panel.png:
cp $(top_srcdir)/icons/assets-panel.png $(top_builddir)
$(top_builddir)/timeline-panel.png:
cp $(top_srcdir)/icons/timeline-panel.png $(top_builddir)
$(top_builddir)/viewer-panel.png: $(top_builddir)/viewer-panel.png:
cp $(top_srcdir)/icons/viewer-panel.png $(top_builddir) cp $(top_srcdir)/icons/viewer-panel.png $(top_builddir)
$(top_builddir)/timeline-panel.png:
cp $(top_srcdir)/icons/timeline-panel.png $(top_builddir)

View file

@ -27,7 +27,7 @@ namespace gui {
namespace panels { namespace panels {
AssetsPanel::AssetsPanel() : AssetsPanel::AssetsPanel() :
Panel("assets", "Assets"), Panel("assets", "Assets", "assets_panel"),
placeholder("Placeholder label. Is this supposed to be titled assets\nas in the proc layer? or resources\nas in cinelerra?") placeholder("Placeholder label. Is this supposed to be titled assets\nas in the proc layer? or resources\nas in cinelerra?")
{ {
pack_start(placeholder); pack_start(placeholder);

View file

@ -65,10 +65,13 @@ namespace workspace {
// View Menu // View Menu
actionGroup->add(Action::create("ViewMenu", _("_View"))); actionGroup->add(Action::create("ViewMenu", _("_View")));
actionGroup->add(Action::create("ViewViewer", Gtk::StockID("viewer_panel")), actionGroup->add(Action::create("ViewAssets", Gtk::StockID("assets_panel")),
sigc::mem_fun(*this, &Actions::on_menu_view_viewer)); sigc::mem_fun(*this, &Actions::on_menu_view_assets));
actionGroup->add(Action::create("ViewTimeline", Gtk::StockID("timeline_panel")), actionGroup->add(Action::create("ViewTimeline", Gtk::StockID("timeline_panel")),
sigc::mem_fun(*this, &Actions::on_menu_view_timeline)); sigc::mem_fun(*this, &Actions::on_menu_view_timeline));
actionGroup->add(Action::create("ViewViewer", Gtk::StockID("viewer_panel")),
sigc::mem_fun(*this, &Actions::on_menu_view_viewer));
// Help Menu // Help Menu
actionGroup->add(Action::create("HelpMenu", _("_Help")) ); actionGroup->add(Action::create("HelpMenu", _("_Help")) );
@ -80,8 +83,9 @@ namespace workspace {
Actions::register_stock_items() Actions::register_stock_items()
{ {
RefPtr<IconFactory> factory = IconFactory::create(); RefPtr<IconFactory> factory = IconFactory::create();
add_stock_item(factory, "viewer-panel.png", "viewer_panel", _("_Viewer")); add_stock_item(factory, "assets-panel.png", "assets_panel", _("_Assets"));
add_stock_item(factory, "timeline-panel.png", "timeline_panel", _("_Timeline")); add_stock_item(factory, "timeline-panel.png", "timeline_panel", _("_Timeline"));
add_stock_item(factory, "viewer-panel.png", "viewer_panel", _("_Viewer"));
factory->add_default(); //Add factory to list of factories. factory->add_default(); //Add factory to list of factories.
} }
@ -147,9 +151,9 @@ namespace workspace {
} }
void void
Actions::on_menu_view_viewer() Actions::on_menu_view_assets()
{ {
//workspaceWindow.viewer_panel.show(); //workspaceWindow.timeline_panel.show();
} }
void void
@ -158,6 +162,12 @@ namespace workspace {
//workspaceWindow.timeline_panel.show(); //workspaceWindow.timeline_panel.show();
} }
void
Actions::on_menu_view_viewer()
{
//workspaceWindow.viewer_panel.show();
}
void void
Actions::on_menu_help_about() Actions::on_menu_help_about()
{ {

View file

@ -66,8 +66,9 @@ class WorkspaceWindow;
void on_menu_edit_preferences(); void on_menu_edit_preferences();
void on_menu_view_viewer(); void on_menu_view_assets();
void on_menu_view_timeline(); void on_menu_view_timeline();
void on_menu_view_viewer();
void on_menu_help_about(); void on_menu_help_about();

View file

@ -91,8 +91,9 @@ namespace workspace {
" <menuitem action='EditPreferences'/>" " <menuitem action='EditPreferences'/>"
" </menu>" " </menu>"
" <menu action='ViewMenu'>" " <menu action='ViewMenu'>"
" <menuitem action='ViewViewer'/>" " <menuitem action='ViewAssets'/>"
" <menuitem action='ViewTimeline'/>" " <menuitem action='ViewTimeline'/>"
" <menuitem action='ViewViewer'/>"
" </menu>" " </menu>"
" <menu action='HelpMenu'>" " <menu action='HelpMenu'>"
" <menuitem action='HelpAbout'/>" " <menuitem action='HelpAbout'/>"