dialog.h revision 5cf332777b4c27336d64c273ac63bce3ee27a53d
/** @file
* @brief Base class for dialogs in Inkscape
*/
/* Authors:
* Bryce W. Harrington <bryce@bryceharrington.org>
* Gustav Broberg <broberg@kth.se>
*
* Copyright (C) 2004--2007 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifndef INKSCAPE_DIALOG_H
#define INKSCAPE_DIALOG_H
#include <gtkmm/tooltips.h>
#include "dock-behavior.h"
#include "floating-behavior.h"
}
/**
* @brief Base class for Inkscape dialogs
* This class provides certain common behaviors and styles wanted of all dialogs
* in the application. Fundamental parts of the dialog's behavior are controlled by
* a Dialog::Behavior subclass instance connected to the dialog.
*/
virtual void onShutdown();
/** Hide and show dialogs */
virtual void show_all_children();
virtual void set_size_request(int, int);
virtual void get_position(int &x, int &y);
bool _user_hidden; // when it is closed by the user, to prevent repopping on f12
bool _hiddenF12;
void read_geometry();
void save_geometry();
bool retransientize_suppress; // when true, do not retransientize (prevents races when switching new windows too fast)
int _verb_num;
Dialog(); // no constructor without params
};
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
#endif //INKSCAPE_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:fileencoding=utf-8:textwidth=99 :