本文整理汇总了C++中RefreshList函数的典型用法代码示例。如果您正苦于以下问题:C++ RefreshList函数的具体用法?C++ RefreshList怎么用?C++ RefreshList使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RefreshList函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RefreshList
//************************************************************************
// called when the configuration has changed
//************************************************************************
void CContactList::OnConfigChanged()
{
RefreshList();
}
示例2: RefreshList
void ListLog::refresh(int line)
{
RefreshList(line);
UpdateTimes();
}
示例3: RefreshList
void ResourceDeployListCtrl::OnListChange( wxDatabaseEvent& event)
{
RefreshList();
}
示例4: QDialog
ListMatrices::ListMatrices(QString station,QWidget *parent,const char *name)
: QDialog(parent,name,true)
{
//
// Fix the Window Size
//
setMinimumWidth(sizeHint().width());
setMaximumWidth(sizeHint().width());
setMinimumHeight(sizeHint().height());
setMaximumHeight(sizeHint().height());
list_station=station;
setCaption(tr("Rivendell Switcher List"));
//
// Create Fonts
//
QFont font=QFont("Helvetica",12,QFont::Bold);
font.setPixelSize(12);
QFont small_font=QFont("Helvetica",10,QFont::Bold);
small_font.setPixelSize(10);
//
// Initialize Data Structures
//
for(int i=0; i<MAX_MATRICES; i++) {
list_matrix_modified[i]=false;
}
//
// Matrix List Box
//
list_view=new QListView(this,"list_box");
list_view->setGeometry(10,24,sizeHint().width()-20,sizeHint().height()-94);
QLabel *label=new QLabel(list_view,tr("Switchers:"),this,"list_view_label");
label->setFont(font);
label->setGeometry(14,5,85,19);
list_view->setAllColumnsShowFocus(true);
list_view->setItemMargin(5);
list_view->addColumn(tr("MATRIX"));
list_view->setColumnAlignment(0,Qt::AlignHCenter);
list_view->addColumn(tr("DESCRIPTION"));
list_view->setColumnAlignment(1,Qt::AlignLeft);
list_view->addColumn(tr("TYPE"));
list_view->setColumnAlignment(2,Qt::AlignLeft);
connect(list_view,SIGNAL(doubleClicked(QListViewItem *,const QPoint &,int)),
this,SLOT(doubleClickedData(QListViewItem *,const QPoint &,int)));
RefreshList();
//
// Add Button
//
QPushButton *add_button=new QPushButton(this,"add_button");
add_button->setGeometry(10,sizeHint().height()-60,80,50);
add_button->setFont(font);
add_button->setText(tr("&Add"));
connect(add_button,SIGNAL(clicked()),this,SLOT(addData()));
//
// Edit Button
//
QPushButton *edit_button=new QPushButton(this,"edit_button");
edit_button->setGeometry(100,sizeHint().height()-60,80,50);
edit_button->setFont(font);
edit_button->setText(tr("&Edit"));
connect(edit_button,SIGNAL(clicked()),this,SLOT(editData()));
//
// Delete Button
//
QPushButton *delete_button=new QPushButton(this,"delete_button");
delete_button->setGeometry(190,sizeHint().height()-60,80,50);
delete_button->setFont(font);
delete_button->setText(tr("&Delete"));
connect(delete_button,SIGNAL(clicked()),this,SLOT(deleteData()));
//
// Close Button
//
QPushButton *close_button=new QPushButton(this,"close_button");
close_button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,
80,50);
close_button->setDefault(true);
close_button->setFont(font);
close_button->setText(tr("&Close"));
connect(close_button,SIGNAL(clicked()),this,SLOT(closeData()));
}
示例5: QDialog
ListEncoders::ListEncoders(const QString &stationname,QWidget *parent)
: QDialog(parent,"",true)
{
list_stationname=stationname;
setCaption(tr("RDAdmin - List Encoders"));
//
// Fix the Window Size
//
setMinimumWidth(sizeHint().width());
setMinimumHeight(sizeHint().height());
//
// Create Fonts
//
QFont bold_font=QFont("Helvetica",12,QFont::Bold);
bold_font.setPixelSize(12);
QFont font=QFont("Helvetica",12,QFont::Normal);
font.setPixelSize(12);
//
// Encoders List Box
//
list_list_view=new RDListView(this);
list_list_label=
new QLabel(list_list_view,tr("Encoders on")+" "+stationname,this);
list_list_label->setFont(bold_font);
list_list_view->setAllColumnsShowFocus(true);
list_list_view->setItemMargin(5);
list_list_view->addColumn(tr("Format Name"));
list_list_view->setColumnAlignment(0,Qt::AlignHCenter);
list_list_view->addColumn(tr("Extension"));
list_list_view->setColumnAlignment(1,Qt::AlignHCenter);
list_list_view->addColumn(tr("Valid Channels"));
list_list_view->setColumnAlignment(2,Qt::AlignLeft);
list_list_view->addColumn(tr("Valid Sample Rates"));
list_list_view->setColumnAlignment(3,Qt::AlignLeft);
list_list_view->addColumn(tr("Valid Bit Rates"));
list_list_view->setColumnAlignment(4,Qt::AlignLeft);
connect(list_list_view,
SIGNAL(doubleClicked(QListViewItem *,const QPoint &,int)),
this,SLOT(doubleClickedData(QListViewItem *,const QPoint &,int)));
//
// Add Button
//
list_add_button=new QPushButton(this);
list_add_button->setFont(bold_font);
list_add_button->setText(tr("&Add"));
connect(list_add_button,SIGNAL(clicked()),this,SLOT(addData()));
//
// Edit Button
//
list_edit_button=new QPushButton(this);
list_edit_button->setFont(bold_font);
list_edit_button->setText(tr("&Edit"));
connect(list_edit_button,SIGNAL(clicked()),this,SLOT(editData()));
//
// Delete Button
//
list_delete_button=new QPushButton(this);
list_delete_button->setFont(bold_font);
list_delete_button->setText(tr("&Delete"));
connect(list_delete_button,SIGNAL(clicked()),this,SLOT(deleteData()));
//
// Close Button
//
list_close_button=new QPushButton(this);
list_close_button->setDefault(true);
list_close_button->setFont(bold_font);
list_close_button->setText(tr("&Close"));
connect(list_close_button,SIGNAL(clicked()),this,SLOT(closeData()));
RefreshList();
}
示例6: QDialog
ListSvcs::ListSvcs(QWidget *parent)
: QDialog(parent,"",true)
{
//
// Fix the Window Size
//
setMinimumWidth(sizeHint().width());
setMaximumWidth(sizeHint().width());
setMinimumHeight(sizeHint().height());
setMaximumHeight(sizeHint().height());
setCaption(tr("Services"));
//
// Create Fonts
//
QFont font=QFont("Helvetica",12,QFont::Bold);
font.setPixelSize(12);
QFont small_font=QFont("Helvetica",10,QFont::Normal);
small_font.setPixelSize(10);
//
// Add Button
//
QPushButton *add_button=new QPushButton(this,"add_button");
add_button->setGeometry(100,30,80,50);
add_button->setFont(font);
add_button->setText(tr("&Add"));
connect(add_button,SIGNAL(clicked()),this,SLOT(addData()));
//
// Edit Button
//
QPushButton *edit_button=new QPushButton(this,"edit_button");
edit_button->setGeometry(100,90,80,50);
edit_button->setFont(font);
edit_button->setText(tr("&Edit"));
connect(edit_button,SIGNAL(clicked()),this,SLOT(editData()));
//
// Delete Button
//
QPushButton *delete_button=new QPushButton(this,"delete_button");
delete_button->setGeometry(100,150,80,50);
delete_button->setFont(font);
delete_button->setText(tr("&Delete"));
connect(delete_button,SIGNAL(clicked()),this,SLOT(deleteData()));
//
// Close Button
//
QPushButton *close_button=new QPushButton(this,"close_button");
close_button->setGeometry(100,240,80,50);
close_button->setDefault(true);
close_button->setFont(font);
close_button->setText(tr("&Close"));
connect(close_button,SIGNAL(clicked()),this,SLOT(closeData()));
//
// Services List Box
//
list_box=new QListBox(this,"list_box");
list_box->setGeometry(10,30,80,260);
QLabel *list_box_label=new QLabel(list_box,tr("&Services:"),
this,"list_box_label");
list_box_label->setFont(font);
list_box_label->setGeometry(14,11,85,19);
connect(list_box,SIGNAL(doubleClicked(QListBoxItem *)),
this,SLOT(doubleClickedData(QListBoxItem *)));
RefreshList();
}
示例7: QDialog
ListUsers::ListUsers(const QString &admin_name,QWidget *parent,const char *name)
: QDialog(parent,name,true)
{
list_admin_name=admin_name;
//
// Fix the Window Size
//
setMinimumWidth(sizeHint().width());
setMinimumHeight(sizeHint().height());
setCaption(tr("Rivendell User List"));
//
// Create Fonts
//
QFont font=QFont("Helvetica",12,QFont::Bold);
font.setPixelSize(12);
QFont list_font=QFont("Helvetica",12,QFont::Normal);
list_font.setPixelSize(12);
QFont small_font=QFont("Helvetica",10,QFont::Normal);
small_font.setPixelSize(10);
//
// Create Icons
//
list_admin_map=new QPixmap(admin_xpm);
list_user_map=new QPixmap(user_xpm);
//
// Add Button
//
list_add_button=new QPushButton(this,"list_add_button");
list_add_button->setFont(font);
list_add_button->setText(tr("&Add"));
connect(list_add_button,SIGNAL(clicked()),this,SLOT(addData()));
//
// Edit Button
//
list_edit_button=new QPushButton(this,"list_edit_button");
list_edit_button->setFont(font);
list_edit_button->setText(tr("&Edit"));
connect(list_edit_button,SIGNAL(clicked()),this,SLOT(editData()));
//
// Delete Button
//
list_delete_button=new QPushButton(this,"list_delete_button");
list_delete_button->setFont(font);
list_delete_button->setText(tr("&Delete"));
connect(list_delete_button,SIGNAL(clicked()),this,SLOT(deleteData()));
//
// Close Button
//
list_close_button=new QPushButton(this,"list_close_button");
list_close_button->setDefault(true);
list_close_button->setFont(font);
list_close_button->setText(tr("&Close"));
connect(list_close_button,SIGNAL(clicked()),this,SLOT(closeData()));
//
// User List
//
list_users_view=new RDListView(this,"list_users_view");
list_users_view->setFont(list_font);
list_users_view->setAllColumnsShowFocus(true);
list_users_view->setItemMargin(5);
list_users_view->addColumn("");
list_users_view->addColumn(tr("USER NAME"));
list_users_view->addColumn(tr("FULL NAME"));
list_users_view->addColumn(tr("DESCRIPTION"));
QLabel *list_box_label=new QLabel(list_users_view,tr("&Users:"),
this,"list_box_label");
list_box_label->setFont(font);
list_box_label->setGeometry(14,11,85,19);
connect(list_users_view,
SIGNAL(doubleClicked(QListViewItem *,const QPoint &,int)),
this,
SLOT(doubleClickedData(QListViewItem *,const QPoint &,int)));
RefreshList();
}
示例8: QDialog
//.........这里部分代码省略.........
list_matrix=matrix;
list_type=type;
list_size=size;
//
// Fix the Window Size
//
setMinimumWidth(sizeHint().width());
setMaximumWidth(sizeHint().width());
setMinimumHeight(sizeHint().height());
setMaximumHeight(sizeHint().height());
//
// Create Fonts
//
QFont bold_font=QFont("Helvetica",12,QFont::Bold);
bold_font.setPixelSize(12);
QFont font=QFont("Helvetica",12,QFont::Normal);
font.setPixelSize(12);
//
// Resources List Box
//
list_list_view=new QListView(this);
list_list_view->
setGeometry(10,24,sizeHint().width()-20,sizeHint().height()-94);
QLabel *label=new QLabel(list_list_view,list_table,this);
label->setFont(bold_font);
label->setGeometry(14,5,85,19);
list_list_view->setAllColumnsShowFocus(true);
list_list_view->setItemMargin(5);
switch(list_type) {
case RDMatrix::VguestTypeRelay:
setCaption(tr("vGuest Switches"));
list_list_view->addColumn(tr("GPIO LINE"));
break;
case RDMatrix::VguestTypeDisplay:
setCaption(tr("vGuest Displays"));
list_list_view->addColumn(tr("DISPLAY"));
break;
}
list_list_view->setColumnAlignment(0,Qt::AlignHCenter);
list_list_view->addColumn(tr("ENGINE (Hex)"));
list_list_view->setColumnAlignment(1,Qt::AlignHCenter);
list_list_view->addColumn(tr("DEVICE (Hex)"));
list_list_view->setColumnAlignment(2,Qt::AlignHCenter);
switch(list_type) {
case RDMatrix::VguestTypeRelay:
list_list_view->addColumn(tr("SURFACE (Hex)"));
list_list_view->setColumnAlignment(3,Qt::AlignHCenter);
list_list_view->addColumn(tr("BUS/RELAY (Hex)"));
list_list_view->setColumnAlignment(4,Qt::AlignHCenter);
break;
case RDMatrix::VguestTypeDisplay:
list_list_view->addColumn(tr("SURFACE (Hex)"));
list_list_view->setColumnAlignment(3,Qt::AlignHCenter);
break;
}
connect(list_list_view,
SIGNAL(doubleClicked(QListViewItem *,const QPoint &,int)),
this,
SLOT(doubleClickedData(QListViewItem *,const QPoint &,int)));
//
// Edit Button
//
QPushButton *button=new QPushButton(this);
button->setGeometry(10,sizeHint().height()-60,80,50);
button->setFont(bold_font);
button->setText(tr("&Edit"));
connect(button,SIGNAL(clicked()),this,SLOT(editData()));
//
// Ok Button
//
button=new QPushButton(this);
button->setGeometry(sizeHint().width()-180,sizeHint().height()-60,80,50);
button->setDefault(true);
button->setFont(bold_font);
button->setText(tr("&OK"));
connect(button,SIGNAL(clicked()),this,SLOT(okData()));
//
// Cancel Button
//
button=new QPushButton(this);
button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,
80,50);
button->setFont(bold_font);
button->setText(tr("&Cancel"));
connect(button,SIGNAL(clicked()),this,SLOT(cancelData()));
//
// Load Values
//
RefreshList();
}
示例9: QDialog
//.........这里部分代码省略.........
//
edit_remarks_edit=new QTextEdit(this);
edit_remarks_edit->setGeometry(10,sizeHint().height()-140,CENTER_LINE-20,130);
edit_remarks_edit->setTextFormat(QTextEdit::PlainText);
label=new QLabel(edit_remarks_edit,tr("Remarks"),this);
label->setGeometry(15,sizeHint().height()-155,CENTER_LINE-20,15);
label->setFont(bold_font);
label->setAlignment(AlignLeft|AlignVCenter);
//
// Scheduler-Rules button
//
button=new QPushButton(this);
button->setGeometry(CENTER_LINE+20,sizeHint().height()-60,70,50);
button->setFont(bold_font);
button->setText(tr("Scheduler\nRules"));
connect(button,SIGNAL(clicked()),this,SLOT(schedRules()));
//
// Save Button
//
button=new QPushButton(this);
button->setGeometry(CENTER_LINE+110,sizeHint().height()-60,70,50);
button->setFont(bold_font);
button->setText(tr("&Save"));
connect(button,SIGNAL(clicked()),this,SLOT(saveData()));
//
// Save As Button
//
button=new QPushButton(this);
button->setGeometry(CENTER_LINE+190,sizeHint().height()-60,70,50);
button->setFont(bold_font);
button->setText(tr("Save &As"));
connect(button,SIGNAL(clicked()),this,SLOT(saveAsData()));
//
// Service Associations Button
//
button=new QPushButton(this);
button->setGeometry(CENTER_LINE+(sizeHint().width()-CENTER_LINE)/2-25,
sizeHint().height()-60,70,50);
button->setFont(bold_font);
button->setText(tr("&Services\nList"));
connect(button,SIGNAL(clicked()),this,SLOT(svcData()));
//
// Color Button
//
edit_color_button=new QPushButton(this);
edit_color_button->
setGeometry(CENTER_LINE+(sizeHint().width()-CENTER_LINE)/2+55,
sizeHint().height()-60,70,50);
edit_color_button->setFont(bold_font);
edit_color_button->setText(tr("Colo&r"));
connect(edit_color_button,SIGNAL(clicked()),this,SLOT(colorData()));
//
// Clock Display
//
edit_clock_label=new QLabel(this);
edit_clock_label->
setGeometry(CENTER_LINE+10,10,
sizeHint().width()-CENTER_LINE-20,sizeHint().height()-80);
//
// OK Button
//
button=new QPushButton(this);
button->setGeometry(sizeHint().width()-160,sizeHint().height()-60,70,50);
button->setDefault(true);
button->setFont(bold_font);
button->setText(tr("&OK"));
connect(button,SIGNAL(clicked()),this,SLOT(okData()));
//
// Cancel Button
//
button=new QPushButton(this);
button->setGeometry(sizeHint().width()-80,sizeHint().height()-60,70,50);
button->setFont(bold_font);
button->setText(tr("&Cancel"));
connect(button,SIGNAL(clicked()),this,SLOT(cancelData()));
//
// Populate Data
//
sched_rules_list = new SchedRulesList(clockname);
edit_clock=new RDClock();
edit_clock->setName(clockname);
edit_clock->load();
edit_shortname_edit->setText(edit_clock->shortName());
if(edit_clock->color().isValid()) {
edit_color_button->
setPalette(QPalette(edit_clock->color(),backgroundColor()));
}
edit_remarks_edit->setText(edit_clock->remarks());
edit_modified=false;
RefreshList();
}
示例10: RefreshList
void EventStoreDialog::OnSearchCtrlText(wxCommandEvent& event)
{
RefreshList();
}
示例11: RefreshList
void SaveMgrWindow::OnRefreshClicked(wxCommandEvent& event)
{
RefreshList();
}
示例12: RefreshList
void CServerList::SetFilters(SServerFilters& sf)
{
m_sf = sf;
RefreshList();
}
示例13: QDialog
//.........这里部分代码省略.........
this,SLOT(doubleClickedData(QListViewItem *,const QPoint &,int)));
//
// Add Button
//
edit_add_button=new QPushButton(this);
edit_add_button->setFont(bold_font);
edit_add_button->setText(tr("&Add"));
connect(edit_add_button,SIGNAL(clicked()),this,SLOT(addData()));
//
// Edit Button
//
edit_edit_button=new QPushButton(this);
edit_edit_button->setFont(bold_font);
edit_edit_button->setText(tr("&Edit"));
connect(edit_edit_button,SIGNAL(clicked()),this,SLOT(editData()));
//
// Delete Button
//
edit_delete_button=new QPushButton(this);
edit_delete_button->setFont(bold_font);
edit_delete_button->setText(tr("&Delete"));
connect(edit_delete_button,SIGNAL(clicked()),this,SLOT(deleteData()));
//
// Rename Button
//
edit_rename_button=new QPushButton(this);
edit_rename_button->setFont(bold_font);
edit_rename_button->setText(tr("&Rename"));
connect(edit_rename_button,SIGNAL(clicked()),this,SLOT(renameData()));
//
// Close Button
//
edit_close_button=new QPushButton(this);
edit_close_button->setFont(bold_font);
edit_close_button->setText(tr("&OK"));
connect(edit_close_button,SIGNAL(clicked()),this,SLOT(closeData()));
//
// Ok Button
//
edit_ok_button=new QPushButton(this);
edit_ok_button->setFont(bold_font);
edit_ok_button->setText(tr("&Ok"));
connect(edit_ok_button,SIGNAL(clicked()),this,SLOT(okData()));
//
// Cancel Button
//
edit_cancel_button=new QPushButton(this);
edit_cancel_button->setFont(bold_font);
edit_cancel_button->setText(tr("&Cancel"));
connect(edit_cancel_button,SIGNAL(clicked()),this,SLOT(cancelData()));
if(edit_eventname==NULL) {
edit_close_button->setDefault(true);
edit_ok_button->hide();
edit_cancel_button->hide();
}
else {
edit_ok_button->setDefault(true);
edit_add_button->hide();
edit_edit_button->hide();
edit_delete_button->hide();
edit_rename_button->hide();
edit_close_button->hide();
}
//
// Populate Data
//
edit_filter_box->insertItem(tr("ALL"));
edit_filter_box->insertItem(tr("NONE"));
if (rdstation_conf->broadcastSecurity() == RDStation::UserSec) {
services_list = rduser->services();
} else { // RDStation::HostSec
QString sql="select NAME from SERVICES";
RDSqlQuery *q=new RDSqlQuery(sql);
while(q->next()) {
services_list.append( q->value(0).toString() );
}
delete q;
}
services_list.sort();
for ( QStringList::Iterator it = services_list.begin();
it != services_list.end();
++it ) {
edit_filter_box->insertItem(*it);
if(*event_filter==*it) {
edit_filter_box->setCurrentItem(edit_filter_box->count()-1);
}
}
RefreshList();
}
示例14: RefreshList
void CShaderDialog::OnShowWindow(BOOL show,UINT nStatus)
{
CDialog::OnShowWindow(show,nStatus);
RefreshList();
}
示例15: OnNotification
/* virtual methods from class Notify */
void OnNotification() override {
if (RefreshList())
UpdateButtons();
}