/**
* @file
* Extension editor dialog.
*/
/* Authors:
* Bryce W. Harrington <bryce@bryceharrington.org>
* Ted Gould <ted@gould.cx>
*
* Copyright (C) 2004-2006 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "extension-editor.h"
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/alignment.h>
#include <gtkmm/notebook.h>
#include "verbs.h"
#include "preferences.h"
#include "ui/interface.h"
#include "extension/extension.h"
namespace Inkscape {
namespace UI {
namespace Dialog {
/**
* Create a new ExtensionEditor dialog.
*
* This function creates a new extension editor dialog. The dialog
* consists of two basic areas. The left side is a tree widget, which
* is only used as a list. And the right side is a notebook of information
* about the selected extension. A handler is set up so that when
* a new extension is selected, the notebooks are changed appropriately.
*/
{
//Main HBox
//Pagelist
_page_list.set_headers_visible(false);
page_list_selection->signal_changed().connect(sigc::mem_fun(*this, &ExtensionEditor::on_pagelist_selection_changed));
//Pages
this->setExtension(defaultext);
}
/**
* Destroys the extension editor dialog.
*/
{
}
void
return;
}
bool
{
return true;
}
return false;
}
/**
* Called every time a new extention is selected
*
* This function is set up to handle the signal for a changed extension
* from the tree view in the left pane. It figure out which extension
* is selected and updates the widgets to have data for that extension.
*/
{
if (iter) {
/* Get the row info */
/* Set the selection in the preferences */
/* Adjust the dialog's title */
// set_title(utitle + ": " + name);
/* Clear the notbook pages */
/* Make sure we have all the widges */
}
/* Place them in the pages */
}
}
}
}
return;
}
/**
* A function to pass to the iterator in the Extensions Database.
*
* This function is a static function with the prototype required for
* the Extension Database's foreach function. It will get called for
* every extension in the database, and will then turn around and
* call the more object oriented function \c add_extension in the
* ExtensionEditor.
*
* @param in_plug The extension to evaluate.
* @param in_data A pointer to the Extension Editor class.
*/
{
return;
}
/**
* Adds an extension into the tree model.
*
* This function takes the data out of the extension and puts it
* into the tree model for the dialog.
*
* @param ext The extension to add.
* @return The iterator representing the location in the tree model.
*/
{
return iter;
}
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :