panel-dialog.h revision bdbe820a64466474fd8e92eede41a77255fdb0ae
/** @file
* @brief A panel holding dialog
*/
/* Authors:
* Gustav Broberg <broberg@kth.se>
*
* Copyright (C) 2007 Authors
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifndef INKSCAPE_PANEL_DIALOG_H
#define INKSCAPE_PANEL_DIALOG_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "verbs.h"
#include "dialog.h"
#include "ui/dialog/swatches.h"
#include "ui/dialog/floating-behavior.h"
#include "ui/dialog/dock-behavior.h"
#include "preferences.h"
virtual ~PanelDialogBase() {}
static void handle_deactivate_desktop(Inkscape::Application *application, SPDesktop *desktop, void *data) {
}
static void _handle_activate_desktop(Inkscape::Application *application, SPDesktop *desktop, void *data) {
}
};
virtual ~PanelDialog() {}
inline void _presentDialog();
PanelDialog(); // no constructor without params
};
template <>
virtual ~PanelDialog() {}
PanelDialog(); // no constructor without params
};
void
{
}
void
{
desktop->connectDocumentReplaced(sigc::mem_fun(*this, &PanelDialogBase::_propagateDocumentReplaced));
}
void
PanelDialogBase::_propagateDesktopDeactivated(Inkscape::Application *application, SPDesktop *desktop)
{
}
{
// TODO: make the order of buttons obey the global preference
if (!apply_label.empty()) {
}
}
}
PanelDialog<B> *
PanelDialog<B>::create()
{
}
void
PanelDialog<B>::present()
{
}
void
PanelDialog<B>::_presentDialog()
{
}
{
// TODO: make the order of buttons obey the global preference
if (!apply_label.empty()) {
}
}
}
void
{
}
/**
* Specialize factory method for panel dialogs with floating behavior in order to make them work as
* singletons, i.e. allow them track the current active desktop.
*/
{
g_signal_connect(G_OBJECT(INKSCAPE), "activate_desktop", G_CALLBACK(_handle_activate_desktop), instance);
g_signal_connect(G_OBJECT(INKSCAPE), "deactivate_desktop", G_CALLBACK(handle_deactivate_desktop), instance);
return instance;
}
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
#endif //INKSCAPE_PANEL_DIALOG_H
/*
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:encoding=utf-8:textwidth=99 :