Added dialog.hpp for global layout constants
This commit is contained in:
parent
7ae08aa608
commit
f8fb24ff62
4 changed files with 46 additions and 4 deletions
|
|
@ -37,6 +37,7 @@ lumigui_SOURCES = \
|
|||
$(lumigui_srcdir)/workspace/actions.hpp \
|
||||
$(lumigui_srcdir)/workspace/workspace-window.cpp \
|
||||
$(lumigui_srcdir)/workspace/workspace-window.hpp \
|
||||
$(lumigui_srcdir)/dialogs/dialog.hpp \
|
||||
$(lumigui_srcdir)/dialogs/render.cpp \
|
||||
$(lumigui_srcdir)/dialogs/render.hpp \
|
||||
$(lumigui_srcdir)/dialogs/preferences-dialog.cpp \
|
||||
|
|
|
|||
39
src/gui/dialogs/dialog.hpp
Normal file
39
src/gui/dialogs/dialog.hpp
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
dialog.hpp - Definitions of globals for dialogs
|
||||
|
||||
Copyright (C) Lumiera.org
|
||||
2008, Joel Holdsworth <joel@airwebreathe.org.uk>
|
||||
|
||||
This program is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
|
||||
*/
|
||||
/** @file render.hpp
|
||||
** This file contains definitions of globals for dialogs
|
||||
**
|
||||
*/
|
||||
|
||||
#ifndef DIALOG_HPP
|
||||
#define DIALOG_HPP
|
||||
|
||||
namespace gui {
|
||||
namespace dialogs {
|
||||
|
||||
static const int BorderPadding = 5;
|
||||
static const int BoxSpacing = 4;
|
||||
|
||||
} // namespace dialogs
|
||||
} // namespace gui
|
||||
|
||||
#endif // DIALOG_HPP
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
#include "../gtk-lumiera.hpp"
|
||||
|
||||
#include "preferences-dialog.hpp"
|
||||
#include "dialog.hpp"
|
||||
|
||||
using namespace Gtk;
|
||||
|
||||
|
|
@ -44,8 +45,8 @@ PreferencesDialog::PreferencesDialog(Window &parent) :
|
|||
v_box->pack_start(notebook);
|
||||
|
||||
// Configure the dialog
|
||||
v_box->set_spacing(4);
|
||||
set_border_width(5);
|
||||
v_box->set_spacing(BoxSpacing);
|
||||
set_border_width(BorderPadding);
|
||||
set_resizable(false);
|
||||
|
||||
// Configure the Cancel and OK buttons
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
#include "../gtk-lumiera.hpp"
|
||||
|
||||
#include "render.hpp"
|
||||
#include "dialog.hpp"
|
||||
|
||||
using namespace Gtk;
|
||||
|
||||
|
|
@ -64,8 +65,8 @@ Render::Render(Window &parent) :
|
|||
v_box->pack_start(videoFrame);
|
||||
|
||||
// Configure the dialog
|
||||
v_box->set_spacing(4);
|
||||
set_border_width(5);
|
||||
v_box->set_spacing(BoxSpacing);
|
||||
set_border_width(BorderPadding);
|
||||
set_resizable(false);
|
||||
|
||||
// Configure the Cancel and Render buttons
|
||||
|
|
|
|||
Loading…
Reference in a new issue