本文整理汇总了C++中XttTbl::is_authorized方法的典型用法代码示例。如果您正苦于以下问题:C++ XttTbl::is_authorized方法的具体用法?C++ XttTbl::is_authorized怎么用?C++ XttTbl::is_authorized使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XttTbl
的用法示例。
在下文中一共展示了XttTbl::is_authorized方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: activate_print
void XttTblGtk::activate_print(GtkWidget* w, gpointer data)
{
XttTbl* xtt = (XttTbl*)data;
if (!xtt->is_authorized())
return;
xtt->activate_print();
}
示例2: activate_list_layout
void XttTblGtk::activate_list_layout(GtkWidget* w, gpointer data)
{
XttTbl* xtt = (XttTbl*)data;
if (!xtt->is_authorized())
return;
xtt->tblnav->show_list();
}
示例3: activate_delete_item
void XttTblGtk::activate_delete_item(GtkWidget* w, gpointer data)
{
XttTbl* xtt = (XttTbl*)data;
if (!xtt->is_authorized(pwr_mPrv_SevAdmin))
return;
xtt->activate_delete_item();
}
示例4: activate_command
void XttTblGtk::activate_command(GtkWidget* w, gpointer data)
{
XttTbl* xtt = (XttTbl*)data;
if (!xtt->is_authorized())
return;
if (xtt->command_open) {
g_object_set(((XttTblGtk*)xtt)->cmd_input, "visible", FALSE, NULL);
xtt->set_prompt("");
xtt->command_open = 0;
return;
}
gtk_editable_delete_text(GTK_EDITABLE(((XttTblGtk*)xtt)->cmd_input), 0, -1);
g_object_set(((XttTblGtk*)xtt)->cmd_input, "visible", TRUE, NULL);
xtt->message(' ', "");
gtk_widget_grab_focus(((XttTblGtk*)xtt)->cmd_input);
xtt->set_prompt("xtt >");
xtt->command_open = 1;
}