Logo Search packages:      
Sourcecode: aeskulap version File versions  Download package

astockids.cpp

/*
    Aeskulap - DICOM image viewer and network client
    Copyright (C) 2005  Alexander Pipelka

    This file is part of Aeskulap.

    Aeskulap is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    Aeskulap 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 Aeskulap; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

    Alexander Pipelka
    pipelka@teleweb.at

    Last Update:      $Author: braindead $
    Update Date:      $Date: 2006/03/17 12:24:41 $
    Source File:      $Source: /sources/aeskulap/aeskulap/src/astockids.cpp,v $
    CVS/RCS Revision: $Revision: 1.6 $
    Status:           $State: Exp $
*/

#include "astockids.h"
#include "gettext.h"

namespace Aeskulap {
      
Gtk::StockID Stock::GRID_1X1("aeskulap-grid-1x1");

Gtk::StockID Stock::GRID_1X2("aeskulap-grid-1x2");

Gtk::StockID Stock::GRID_2X1("aeskulap-grid-2x1");

Gtk::StockID Stock::GRID_2X2("aeskulap-grid-2x2");

Gtk::StockID Stock::GRID_4X4("aeskulap-grid-4x4");

Gtk::StockID Stock::SERIES_SINGLE("aeskulap-series-single");

Gtk::StockID Stock::SERIES_ALL("aeskulap-series-all");

Gtk::StockID Stock::SERIES_1X1("aeskulap-series-1x1");

Gtk::StockID Stock::SERIES_2X1("aeskulap-series-2x1");

Gtk::StockID Stock::SERIES_2X2("aeskulap-series-2x2");

Gtk::StockID Stock::SERIES_3X2("aeskulap-series-3x2");

Gtk::StockID Stock::SERIES_3X3("aeskulap-series-3x3");

Gtk::StockID Stock::SERIES_4X4("aeskulap-series-4x4");

Gtk::StockID Stock::REFFRAME("aeskulap-reference-frame");

Gtk::StockID Stock::DRAW_ERASER("aeskulap-draw-eraser");

Gtk::StockID Stock::THREEDEE_CURSOR("aeskulap-3d-cursor");

Gtk::StockID Stock::VALUE_CURSOR("aeskulap-value-cursor");

Gtk::StockID Stock::MEASURE("aeskulap-measure");

Gtk::StockItem Stock::StockItems[] = {
      Gtk::StockItem(Stock::GRID_1X1, gettext("1 Image"), Gdk::ModifierType(0), GDK_1),
      Gtk::StockItem(Stock::GRID_1X2, gettext("1x2 Images"), Gdk::ModifierType(0), GDK_2),
      Gtk::StockItem(Stock::GRID_2X1, gettext("2x1 Images"), Gdk::ModifierType(0), GDK_3),
      Gtk::StockItem(Stock::GRID_2X2, gettext("2x2 Images"), Gdk::ModifierType(0), GDK_4),
      Gtk::StockItem(Stock::GRID_4X4, gettext("4x4 Images"), Gdk::ModifierType(0), GDK_5),
      Gtk::StockItem(Stock::SERIES_SINGLE, gettext("Single"), Gdk::ModifierType(0), GDK_s),
      Gtk::StockItem(Stock::SERIES_ALL, gettext("All")),
      Gtk::StockItem(Stock::SERIES_1X1, gettext("1 Series"), Gdk::CONTROL_MASK, GDK_1),
      Gtk::StockItem(Stock::SERIES_2X1, gettext("2x1 Series"), Gdk::CONTROL_MASK, GDK_2),
      Gtk::StockItem(Stock::SERIES_2X2, gettext("2x2 Series"), Gdk::CONTROL_MASK, GDK_3),
      Gtk::StockItem(Stock::SERIES_3X2, gettext("3x2 Series"), Gdk::CONTROL_MASK, GDK_4),
      Gtk::StockItem(Stock::SERIES_3X3, gettext("3x3 Series"), Gdk::CONTROL_MASK, GDK_5),
      Gtk::StockItem(Stock::SERIES_4X4, gettext("4x4 Series"), Gdk::CONTROL_MASK, GDK_6),
      Gtk::StockItem(Stock::REFFRAME, gettext("Reference")),
      Gtk::StockItem(Stock::DRAW_ERASER, gettext("Delete item")),
      Gtk::StockItem(Stock::THREEDEE_CURSOR, gettext("3D Cursor")),
      Gtk::StockItem(Stock::VALUE_CURSOR, gettext("Value Picker")),
      Gtk::StockItem(Stock::MEASURE, gettext("Measure"))
};

void Stock::init_stock_items() {
      int s = sizeof(Aeskulap::Stock::StockItems) / sizeof(Gtk::StockItem);
      
      for(int i=0; i<s; i++) {
            Gtk::Stock::add(Aeskulap::Stock::StockItems[i]);
      }
}


} // namespace Aeskulap


Generated by  Doxygen 1.6.0   Back to index