~ubuntu-branches/ubuntu/quantal/glom/quantal

« back to all changes in this revision

Viewing changes to glom/box_withbuttons.h

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane
  • Date: 2009-01-11 17:12:01 UTC
  • mfrom: (1.1.39 upstream)
  • Revision ID: james.westby@ubuntu.com-20090111171201-0ov9zh1fxfueshxc
Tags: 1.8.5-0ubuntu1
* New upstream release (LP: #256701), fixes LP bugs: 
  + Clear the text in property dialogs for text items (LP: #309147)
  + Don't crash when showing and then hiding the grid (LP: #303453)
  + Temporarily remember the sort order so it is the same when navigating 
    away and back (LP: #303422)
  + Use the list's sort order for the top-level records in the report 
    (LP: #303425)
  + Users/Groups: Disable drag-and-drop for the treeview, because it is
    useless and confusing (LP: #299573)
  + Import: Sort the fields list alphabetically (LP: #306593)
  + delete primary key make unusuable the database (LP: #299549)
  + Spanish translate incomplete (LP: #299556)
  + import date format error (LP: #299591)
  + can't delete data from table list view (LP: #299853)
  + Field definition: default value not saved (LP: #299896)
  + reports crashing (LP: #300054)
  + Year error with date fields (LP: #300057)
  + list view: 2 records added instead of 1 (LP: #300819)
* debian/control: Refreshed dependencies for libglom-dev.
* debian/control: Updated build-deps to match configure checks. goocavnasmm
  build-dep bumped to version without .la files.
* debian/rules: Don't delete the directory containing the templates.
* debian/control, debian/rules, debian/glom-doc.*: Split out
  arch-independent manual and examples into separate package glom-doc, which
  is now recommended by glom (glom will still work if they're not available)
* debian/copyright: Rewritten to new machine-readable format. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Glom
 
2
 *
 
3
 * Copyright (C) 2001-2004 Murray Cumming
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License as
 
7
 * published by the Free Software Foundation; either version 2 of the
 
8
 * License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful, but
 
11
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public
 
16
 * License along with this program; if not, write to the
 
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
 * Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef GLOM_BOX_WITHBUTTONS_H
 
22
#define GLOM_BOX_WITHBUTTONS_H
 
23
 
 
24
#include <gtkmm.h>
 
25
#include "utility_widgets/adddel/adddel_withbuttons.h"
 
26
 
 
27
#include <glom/libglom/document/document_glom.h>
 
28
#include <glom/libglom/connectionpool.h>
 
29
#include <glom/libglom/appstate.h>
 
30
#include "base_db.h"
 
31
#include <bakery/Utilities/BusyCursor.h>
 
32
#include <libglademm.h>
 
33
 
 
34
namespace Glom
 
35
{
 
36
 
 
37
/** A Gtk::VBox base widget class, 
 
38
 * with some extra signals to allow derived classes to be used generically in 
 
39
 * Dialog_Glom, allowing the dialog to respond to buttons in the box.
 
40
 */
 
41
class Box_WithButtons :
 
42
  public Gtk::VBox
 
43
{
 
44
public: 
 
45
  Box_WithButtons();
 
46
  Box_WithButtons(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade);
 
47
 
 
48
  ///For use with libglademm's get_widget_derived():
 
49
  Box_WithButtons(BaseObjectType* cobject);
 
50
 
 
51
  virtual ~Box_WithButtons();
 
52
 
 
53
  Gtk::Window* get_app_window();
 
54
  const Gtk::Window* get_app_window() const;
 
55
 
 
56
  //void show_hint(); //Public so that it can be called *after* this widget is added to its container.
 
57
 
 
58
  void set_button_cancel(Gtk::Button& button);
 
59
 
 
60
  //Signals:
 
61
  sigc::signal<void, Glib::ustring> signal_selected; //When an item is selected.
 
62
  sigc::signal<void> signal_cancelled; //When the cancel button is clicked.
 
63
 
 
64
  //Signal handlers:
 
65
  virtual void on_Button_Cancel();
 
66
 
 
67
  virtual Gtk::Widget* get_default_button();
 
68
 
 
69
 
 
70
protected:
 
71
 
 
72
  //virtual void hint_set(const Glib::ustring& strText);
 
73
 
 
74
  //Member data:
 
75
  //Glib::ustring m_strHint; //Help text.
 
76
 
 
77
  Gtk::HBox m_Box_Buttons;
 
78
  Gtk::Button m_Button_Cancel; //Derived classes can use it if it's necessary.
 
79
};
 
80
 
 
81
} //namespace Glom
 
82
 
 
83
#endif //GLOM_BOX_WITHBUTTONS_H