~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/ui/dialog/scriptdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** @file
 
2
 * @brief Script dialog
 
3
 *
 
4
 * This dialog is for launching scripts whose main purpose is
 
5
 * the scripting of Inkscape itself.
 
6
 */
 
7
/* Authors:
 
8
 *   Bob Jamison
 
9
 *   Other dudes from The Inkscape Organization
 
10
 *
 
11
 * Copyright (C) 2004, 2005 Authors
 
12
 *
 
13
 * Released under GNU GPL, read the file 'COPYING' for more information
 
14
 */
 
15
 
 
16
#ifndef __SCRIPTDIALOG_H__
 
17
#define __SCRIPTDIALOG_H__
 
18
 
 
19
#include "ui/widget/panel.h"
 
20
#include "verbs.h"
 
21
 
 
22
namespace Inkscape {
 
23
namespace UI {
 
24
namespace Dialog {
 
25
 
 
26
 
 
27
/**
 
28
 * A script editor, loader, and executor
 
29
 */
 
30
class ScriptDialog : public UI::Widget::Panel
 
31
{
 
32
 
 
33
    public:
 
34
 
 
35
 
 
36
    /**
 
37
     * Constructor
 
38
     */
 
39
    ScriptDialog() : 
 
40
     UI::Widget::Panel("", "/dialogs/script", SP_VERB_DIALOG_SCRIPT)
 
41
    {}
 
42
 
 
43
 
 
44
    /**
 
45
     * Factory method
 
46
     */
 
47
    static ScriptDialog &getInstance();
 
48
 
 
49
    /**
 
50
     * Destructor
 
51
     */
 
52
    virtual ~ScriptDialog() {};
 
53
 
 
54
 
 
55
    private:
 
56
        int _max_dialog_width;
 
57
        int _max_dialog_height;
 
58
 
 
59
 
 
60
}; // class ScriptDialog
 
61
 
 
62
 
 
63
} //namespace Dialog
 
64
} //namespace UI
 
65
} //namespace Inkscape
 
66
 
 
67
#endif /* __DEBUGDIALOG_H__ */
 
68
 
 
69
/*
 
70
  Local Variables:
 
71
  mode:c++
 
72
  c-file-style:"stroustrup"
 
73
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
74
  indent-tabs-mode:nil
 
75
  fill-column:99
 
76
  End:
 
77
*/
 
78
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :