[ekiga/ds-gtk-application] Forms: Allow controling the display of booleans in the header bar.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-gtk-application] Forms: Allow controling the display of booleans in the header bar.
- Date: Sun, 30 Nov 2014 15:26:40 +0000 (UTC)
commit 27ed23230df25da91209e7ba1c6877fad853bc49
Author: Damien Sandras <dsandras seconix com>
Date: Sun Nov 30 16:14:36 2014 +0100
Forms: Allow controling the display of booleans in the header bar.
lib/engine/framework/form-builder.cpp | 8 +++++---
lib/engine/framework/form-builder.h | 10 +++++++---
lib/engine/framework/form-visitor.h | 3 ++-
lib/engine/gui/gtk-core/form-dialog-gtk.h | 3 ++-
4 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/lib/engine/framework/form-builder.cpp b/lib/engine/framework/form-builder.cpp
index 44d2cec..fc58844 100644
--- a/lib/engine/framework/form-builder.cpp
+++ b/lib/engine/framework/form-builder.cpp
@@ -75,7 +75,8 @@ Ekiga::FormBuilder::visit (Ekiga::FormVisitor &visitor) const
visitor.boolean (iter_bool->name,
iter_bool->description,
iter_bool->value,
- iter_bool->advanced);
+ iter_bool->advanced,
+ iter_bool->in_header_bar);
iter_bool++;
break;
@@ -261,9 +262,10 @@ void
Ekiga::FormBuilder::boolean (const std::string name,
const std::string description,
bool value,
- bool advanced)
+ bool advanced,
+ bool in_header_bar)
{
- booleans.push_back (BooleanField (name, description, value, advanced));
+ booleans.push_back (BooleanField (name, description, value, advanced, in_header_bar));
ordering.push_back (BOOLEAN);
}
diff --git a/lib/engine/framework/form-builder.h b/lib/engine/framework/form-builder.h
index 8fa2a27..5f1318e 100644
--- a/lib/engine/framework/form-builder.h
+++ b/lib/engine/framework/form-builder.h
@@ -90,7 +90,8 @@ namespace Ekiga
void boolean (const std::string name,
const std::string description,
bool value,
- bool advanced = false);
+ bool advanced = false,
+ bool in_header_bar = true);
void text (const std::string text,
const std::string description,
@@ -142,14 +143,17 @@ namespace Ekiga
BooleanField (const std::string _name,
const std::string _description,
bool _value,
- bool _advanced): name(_name), description(_description),
- value(_value), advanced(_advanced)
+ bool _advanced,
+ bool _in_header_bar): name(_name), description(_description),
+ value(_value), advanced(_advanced),
+ in_header_bar(_in_header_bar)
{}
const std::string name;
const std::string description;
bool value;
bool advanced;
+ bool in_header_bar;
};
struct TextField
diff --git a/lib/engine/framework/form-visitor.h b/lib/engine/framework/form-visitor.h
index fb04883..bb9eb34 100644
--- a/lib/engine/framework/form-visitor.h
+++ b/lib/engine/framework/form-visitor.h
@@ -72,7 +72,8 @@ namespace Ekiga
virtual void boolean (const std::string name,
const std::string description,
bool value,
- bool advanced) = 0;
+ bool advanced,
+ bool in_header_bar) = 0;
typedef enum { STANDARD, PHONE_NUMBER, URI, PASSWORD } FormTextType;
virtual void text (const std::string name,
diff --git a/lib/engine/gui/gtk-core/form-dialog-gtk.h b/lib/engine/gui/gtk-core/form-dialog-gtk.h
index ddce3d6..05ba4ab 100644
--- a/lib/engine/gui/gtk-core/form-dialog-gtk.h
+++ b/lib/engine/gui/gtk-core/form-dialog-gtk.h
@@ -84,7 +84,8 @@ public:
void boolean (const std::string name,
const std::string description,
bool value,
- bool advanced);
+ bool advanced,
+ bool in_header_bar = true);
void text (const std::string name,
const std::string description,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]