本文整理汇总了C++中ekiga::MenuBuilder::add_action方法的典型用法代码示例。如果您正苦于以下问题:C++ MenuBuilder::add_action方法的具体用法?C++ MenuBuilder::add_action怎么用?C++ MenuBuilder::add_action使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ekiga::MenuBuilder
的用法示例。
在下文中一共展示了MenuBuilder::add_action方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
bool
OPENLDAP::Source::populate_menu (Ekiga::MenuBuilder &builder)
{
builder.add_action ("add", _("Add an LDAP Address Book"),
sigc::mem_fun (this, &OPENLDAP::Source::new_book));
builder.add_action ("add", _("Add the Ekiga.net Directory"),
sigc::mem_fun (this, &OPENLDAP::Source::new_ekiga_net_book));
return true;
}
示例2:
bool
RL::Heap::populate_menu (Ekiga::MenuBuilder& builder)
{
builder.add_action ("add", _("_Add a new contact"),
boost::bind (&RL::Heap::new_entry, this));
builder.add_action ("refresh", _("_Refresh contact list"),
boost::bind (&RL::Heap::refresh, this));
builder.add_action ("properties", _("Contact list _properties"),
boost::bind (&RL::Heap::edit, this));
return true;
}
示例3:
bool
RL::Heap::populate_menu (Ekiga::MenuBuilder& builder)
{
builder.add_action ("add", _("_Add a new contact"),
sigc::mem_fun (this, &RL::Heap::new_entry));
builder.add_action ("refresh", _("_Refresh contact list"),
sigc::mem_fun (this, &RL::Heap::refresh));
builder.add_action ("properties", _("Contact list _properties"),
sigc::mem_fun (this, &RL::Heap::edit));
return true;
}
示例4:
bool Opal::Bank::populate_menu (Ekiga::MenuBuilder & builder)
{
builder.add_action ("add", _("_Add an Ekiga.net Account"),
sigc::bind (sigc::mem_fun (this, &Opal::Bank::new_account), Opal::Account::Ekiga, "", ""));
builder.add_action ("add", _("_Add an Ekiga Call Out Account"),
sigc::bind (sigc::mem_fun (this, &Opal::Bank::new_account), Opal::Account::DiamondCard, "", ""));
builder.add_action ("add", _("_Add a SIP Account"),
sigc::bind (sigc::mem_fun (this, &Opal::Bank::new_account), Opal::Account::SIP, "", ""));
builder.add_action ("add", _("_Add an H.323 Account"),
sigc::bind (sigc::mem_fun (this, &Opal::Bank::new_account), Opal::Account::H323, "", ""));
return true;
}
示例5:
bool
LM::Bank::populate_menu (Ekiga::MenuBuilder& builder)
{
builder.add_action ("add", _("_Add a Jabber/XMPP Account"),
boost::bind (&LM::Bank::new_account, this));
return true;
}
示例6:
bool
Local::Heap::populate_menu (Ekiga::MenuBuilder &builder)
{
builder.add_action ("new", _("New contact"),
sigc::bind (sigc::mem_fun (this, &Local::Heap::new_presentity), "", ""));
return true;
}
示例7:
bool
LM::HeapRoster::populate_menu (Ekiga::MenuBuilder& builder)
{
builder.add_action ("add", _("A_dd Contact"), boost::bind (&LM::HeapRoster::add_item, this));
dialect->populate_menu (builder);
return true;
}
示例8:
bool
Opal::Bank::populate_menu (Ekiga::MenuBuilder & builder)
{
builder.add_action ("add", _("_Add an Ekiga.net Account"),
boost::bind (&Opal::Bank::new_account, this, Opal::Account::Ekiga, "", ""));
builder.add_action ("add", _("_Add an Ekiga Call Out Account"),
boost::bind (&Opal::Bank::new_account, this, Opal::Account::DiamondCard, "", ""));
builder.add_action ("add", _("_Add a SIP Account"),
boost::bind (&Opal::Bank::new_account, this, Opal::Account::SIP, "", ""));
#ifdef HAVE_H323
builder.add_action ("add", _("_Add an H.323 Account"),
boost::bind (&Opal::Bank::new_account, this, Opal::Account::H323, "", ""));
#endif
return true;
}
示例9:
bool
Local::Heap::populate_menu (Ekiga::MenuBuilder &builder)
{
builder.add_action ("add", _("A_dd Contact"),
boost::bind (&Local::Heap::new_presentity, this, "", ""));
return true;
}
示例10:
bool
Opal::Sip::EndPoint::populate_menu (const std::string& fullname,
const std::string& uri,
Ekiga::MenuBuilder& builder)
{
if (0 == GetConnectionCount ())
builder.add_action ("phone-pick-up", _("Call"),
boost::bind (&Opal::Sip::EndPoint::on_dial, this, uri));
else
builder.add_action ("mail-forward", _("Transfer"),
boost::bind (&Opal::Sip::EndPoint::on_transfer, this, uri));
builder.add_action ("im-message-new", _("Message"),
boost::bind (&Opal::Sip::EndPoint::on_message, this, uri, fullname));
return true;
}
示例11:
bool
Echo::Dialect::populate_menu (Ekiga::MenuBuilder &builder)
{
builder.add_action ("FIXME", "New echo", sigc::mem_fun (this, &Echo::Dialect::new_chat));
return true;
}
示例12:
bool
RL::Cluster::populate_menu (Ekiga::MenuBuilder& builder)
{
builder.add_action ("add", _("Add resource list"),
boost::bind (&RL::Cluster::new_heap, this,
"", "", "", "", "", false));
return true;
}
示例13:
bool
Echo::Dialect::populate_menu (Ekiga::MenuBuilder &builder)
{
builder.add_action ("FIXME", "New echo", boost::bind (&Echo::Dialect::new_chat, this));
return true;
}
示例14: status
bool
LM::Presentity::populate_menu (Ekiga::MenuBuilder& builder)
{
const gchar* subscription = lm_message_node_get_attribute (item, "subscription");
const gchar* ask = lm_message_node_get_attribute (item, "ask");
if ( !has_chat) {
builder.add_action ("im-message-new", _("Start chat"), boost::ref (chat_requested));
} else {
builder.add_action ("im-message-new", _("Continue chat"), boost::ref (chat_requested));
}
builder.add_separator ();
builder.add_action ("edit", _("_Edit"),
boost::bind (&LM::Presentity::edit_presentity, this));
if (g_strcmp0 (subscription, "none") == 0) {
builder.add_action ("ask", _("Ask him/her to see his/her status"), boost::bind (&LM::Presentity::ask_to, this));
}
if (g_strcmp0 (subscription, "from") == 0) {
builder.add_action ("stop", _("Forbid him/her to see my status"), boost::bind (&LM::Presentity::revoke_from, this));
if (ask == NULL)
builder.add_action ("ask", _("Ask him/her to see his/her status"), boost::bind (&LM::Presentity::ask_to, this));
else
builder.add_ghost ("ask", _("Ask him/her to see his/her status (pending)"));
}
if (g_strcmp0 (subscription, "to") == 0) {
builder.add_action ("stop", _("Stop getting his/her status"), boost::bind (&LM::Presentity::stop_to, this));
}
if (g_strcmp0 (subscription, "both") == 0) {
builder.add_action ("stop", _("Forbid him/her to see my status"), boost::bind (&LM::Presentity::revoke_from, this));
builder.add_action ("stop", _("Stop getting his/her status"), boost::bind (&LM::Presentity::stop_to, this));
}
builder.add_action ("remove", _("_Remove"),
boost::bind (&LM::Presentity::remove_presentity, this));
return true;
}
示例15:
bool
RL::Presentity::populate_menu (Ekiga::MenuBuilder &builder)
{
bool populated = false;
boost::shared_ptr<Ekiga::PresenceCore> presence_core(services.get<Ekiga::PresenceCore> ("presence-core"));
populated = presence_core->populate_presentity_menu (PresentityPtr (this, null_deleter ()), uri, builder);
if (writable) {
if (populated)
builder.add_separator ();
builder.add_action ("edit", _("_Edit"),
boost::bind (&RL::Presentity::edit_presentity, this));
builder.add_action ("remove", _("_Remove"),
boost::bind (&RL::Presentity::remove, this));
}
return true;
}