本文整理汇总了C++中setStatusBar函数的典型用法代码示例。如果您正苦于以下问题:C++ setStatusBar函数的具体用法?C++ setStatusBar怎么用?C++ setStatusBar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setStatusBar函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setStatusBar
void KPCMCIAInfoPage::slotSuspendResume() {
if (!(_card->status() & CARD_STATUS_BUSY))
if (!(_card->status() & CARD_STATUS_SUSPEND)) {
emit setStatusBar(i18n("Suspending card..."));
_card->suspend();
} else {
emit setStatusBar(i18n("Resuming card..."));
_card->resume();
}
}
示例2: QStatusBar
void Ui::Ui_MainWindow::SBaction(bool checked){
if(checked){
statusbar = new QStatusBar(this);
setStatusBar(statusbar);
sboffset = 23;
updateGeometries();
} else{
setStatusBar(0);
sboffset = 0;
updateGeometries();
}
}
示例3: makeUI
void
MainWindow::init()
{
makeUI();
createActions();
createConnects();
createToolbars();
//setStatusBar(statusBar());
#if 0
QMainWindow *qm = new QMainWindow();
qm = (QMainWindow *) stackedWidget->currentWidget();
setStatusBar(qm->statusBar());
#endif
setStatusBar(((QMainWindow *) stackedWidget->currentWidget())->statusBar());
}
示例4: QMainWindow
PmChart::PmChart() : QMainWindow(NULL)
{
my.dialogsSetup = false;
setIconSize(QSize(22, 22));
setupUi(this);
my.statusBar = new StatusBar;
setStatusBar(my.statusBar);
connect(my.statusBar->timeFrame(), SIGNAL(clicked()),
this, SLOT(editSamples()));
connect(my.statusBar->timeButton(), SIGNAL(clicked()),
this, SLOT(optionsShowTimeControl()));
my.timeAxisRightAlign = toolBar->height();
toolBar->setAllowedAreas(Qt::RightToolBarArea | Qt::TopToolBarArea);
connect(toolBar, SIGNAL(orientationChanged(Qt::Orientation)),
this, SLOT(updateToolbarOrientation(Qt::Orientation)));
updateToolbarLocation();
setupEnabledActionsList();
if (!globalSettings.initialToolbar && !outfile)
toolBar->hide();
toolbarAction->setChecked(true);
my.toolbarHidden = !globalSettings.initialToolbar;
my.consoleHidden = true;
if (!pmDebug)
consoleAction->setVisible(false);
consoleAction->setChecked(false);
if (outfile)
QTimer::singleShot(0, this, SLOT(exportFile()));
else
QTimer::singleShot(PmChart::defaultTimeout(), this, SLOT(timeout()));
}
示例5: QStatusBar
//------------------------------------------------------------------------------
void MainWindow::setupStatusBar()
{
mStatusBar = new QStatusBar(this);
mStatusBar->setObjectName(QString::fromUtf8("mStatusBar"));
mProgressBar = new QProgressBar(this);
mStatusBar->addWidget(mProgressBar);
mProgressLabel = new QLabel(this);
mStatusBar->addWidget(mProgressLabel, 1);
mProgressLabel->setText("");
mProgressLabel->setVisible(false);
mProgressBar->setFixedWidth(200);
mProgressBar->setMinimum(0);
mProgressBar->setMaximum(100);
mProgressBar->setVisible(false);
mTotalEntriesLabel = new QLabel(this);
mTotalEntriesLabel->setText(tr("Total Entries : "));
mStatusBar->addWidget(mTotalEntriesLabel, 1);
setStatusBar(mStatusBar);
}
示例6: shop
mainwindow::mainwindow(essemu &sm, QWidget* parent): shop(sm) ,QMainWindow(parent) {
tbl=0;
setGeometry(150,100,705,400);
setWindowTitle("GuitarShop");
Menu= new QMenu("File",this);
MenuT= new QMenu("Tabella",this);
MenuS= new QMenu("Ricerca",this);
menuBar()->addMenu(Menu);
menuBar()->addMenu(MenuT);
menuBar()->addMenu(MenuS);
sttbar= new QStatusBar(this);
setStatusBar(sttbar);
//file
New= new QAction("Nuovo",this);
New->setShortcuts(QKeySequence::New);
Close= new QAction("Chiudi",this);
Close->setEnabled(false);
Open= new QAction("Apri",this);
Open->setShortcuts(QKeySequence::Open);
Save= new QAction("Salva",this);
Save->setShortcuts(QKeySequence::Save);
Save->setEnabled(false);
SaveAs= new QAction("Salva come...",this);
SaveAs->setShortcuts(QKeySequence::SaveAs);
SaveAs->setEnabled(false);
Exit= new QAction("Exit",this);
Exit->setShortcuts(QKeySequence::Close);
Menu->addAction(New);
Menu->addAction(Close);
Menu->addAction(Open);
Menu->addAction(Save);
Menu->addAction(SaveAs);
Menu->addAction(Exit);
//tabella
NRow= new QAction("Inserisci Chitarra",this);
NRow->setEnabled(false);
DRow= new QAction("Rimuovi Chitarra",this);
DRow->setShortcut(QKeySequence::Delete);
DRow->setEnabled(false);
MenuT->addAction(NRow);
MenuT->addAction(DRow);
//ricerca
Search= new QAction("Search",this);
Search->setEnabled(false);
CloseSearch= new QAction("Close Search", this);
CloseSearch->setEnabled(false);
MenuS->addAction(Search);
MenuS->addAction(CloseSearch);
connect(New,SIGNAL(triggered()),this,SLOT(newFile()));
connect(Close,SIGNAL(triggered()),this,SLOT(closeFile()));
connect(Open,SIGNAL(triggered()),this,SLOT(openFile()));
connect(Save,SIGNAL(triggered()),this,SLOT(saveFile()));
connect(SaveAs,SIGNAL(triggered()),this,SLOT(saveasFile()));
connect(Exit,SIGNAL(triggered()),this,SLOT(close()));
connect(Search,SIGNAL(triggered()),this,SLOT(activeSearch()));
connect(CloseSearch,SIGNAL(triggered()),this,SLOT(closeSearch()));
}
示例7: QMainWindow
//Public
B9Edit::B9Edit(QWidget *parent, Qt::WFlags flags, QString infile)
: QMainWindow(parent, flags)
{
ui.setupUi(this);
setAcceptDrops(true);
setStatusBar(0);
ui.mainToolBar->setMovable(false);
ui.mainToolBar->setMaximumHeight(24);
ui.mainToolBar->addAction(ui.actionNew_Job);
ui.mainToolBar->addAction(ui.actionOpen_Exsisting_Job_File);
ui.mainToolBar->addAction(ui.actionSave_To_Job);
ui.mainToolBar->addSeparator();
ui.mainToolBar->addAction(ui.actionShow_Slice_Window);
pAboutBox = new aboutbox(this);
pEditView = new SliceEditView(this);
pEditView->pCPJ = &cPJ;
pEditView->pBuilder = this;
dirtied = false;
continueLoading = true;
if(infile == "")
{
newJob();
}
else
{
openJob(infile);
}
}
示例8: showParameterStatistic
void MainWindow::doShowParameterStatistic()
{
if ( gv_PS.count() > 0 )
showParameterStatistic( gv_PS );
setStatusBar( tr( "Ready" ), 2 );
}
示例9: KStatusBar
void TopLevel::setupStatusBar()
{
statusbar = new KStatusBar(this);
statusbar->insertItem("", ID_GENERAL);
statusbar->setInsertOrder(KStatusBar::LeftToRight);
setStatusBar(statusbar);
}
示例10: saveParameterStatistic
void MainWindow::doSaveParameterStatisticPDF()
{
if ( gv_PS.count() > 0 )
saveParameterStatistic( gsl_FilenameList.at( 0 ), gv_PS, _FORMATPDF_ );
setStatusBar( tr( "Done" ), 2 );
}
示例11: QMainWindow
MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent),
m_toolBar(this),
m_aboutDialog(this),
m_helpBrowser(this),
m_viewerModel(this),
m_viewerView(this),
m_undoStack(this),
m_undoStackView(&m_undoStack, this),
m_viewer(m_viewerModel, this),
m_viewerSelectionModel(&m_viewerModel, this),
m_logMessageDialog(0),
m_preferencesBrowser(this),
m_quiInputDialog(0),
m_shaderDialog(0)
{
setStatusBar(0);
setWindowTitle("IQmol");
setWindowModified(false);
setAcceptDrops(false);
setWindowIcon(QIcon(":/resources/icons/iqmol.png"));
createMenus();
createLayout();
createConnections();
m_undoStack.setUndoLimit(Preferences::UndoLimit());
m_undoStackView.setEmptyLabel("History:");
m_viewerView.setModel(&m_viewerModel);
m_viewerView.setSelectionModel(&m_viewerSelectionModel);
m_viewer.setActiveViewerMode(Viewer::BuildAtom);
m_viewer.setDefaultSceneRadius();
m_viewer.resetView();
}
示例12: setObjectName
void FMainWindow::initUI()
{
titleBar = FTitleBar::getInstace();
setObjectName(QString("FMainWindow"));
QDesktopWidget* desktopWidget = QApplication::desktop();
setMaximumSize(desktopWidget->availableGeometry().size());
readSettings();
setWindowFlags(Qt::FramelessWindowHint | Qt::WindowMinimizeButtonHint);
setWindowTitle(sql.strtitle);
pstatusbar = new QStatusBar;
pstatusbar->setFixedHeight(35);
pstatusbar->setStyleSheet(QString("QStatusBar::item{border: 0px}"));
QString currentdatetime = QDateTime::currentDateTime().toString("yyyy-MM-dd hh:mm:ss");
QString strcurrentuser=QApplication::translate("ConnectDB", "\345\275\223\345\211\215\347\224\250\346\210\267", 0, QApplication::UnicodeUTF8);
QString strtime =QApplication::translate("ConnectDB", "\347\231\273\345\275\225\346\227\266\351\227\264", 0, QApplication::UnicodeUTF8);
strcurrentuser +=":"+sql.struser+" ";
strtime+=":"+currentdatetime;
QString str=strcurrentuser+strtime;
pstatusbar->showMessage(str);
setStatusBar(pstatusbar);
trayicon = new QSystemTrayIcon(QIcon(QString(":/skin/images/his.ico")), this);
trayicon->setObjectName(QString("trayicon"));
trayicon->setToolTip(QString(qApp->applicationName()));
trayicon->show();
}
示例13: QMainWindow
// Create and initialize the UI.
FeaturesUI::FeaturesUI ( QWidget * parent ) : QMainWindow ( parent )
{
doc = new FeaturesDoc ( this );
QStatusBar * statusBar = new QStatusBar ( this );
setStatusBar ( statusBar );
QObject::connect ( doc, SIGNAL ( alert ( QString ) ),
statusBar, SLOT ( showMessage ( const QString & ) ) );
// Create the main window.
setFixedSize ( minWidth, minHeight );
setWindowTitle ( "Features" );
// Create the menu bar.
QMenuBar * menuBar = new QMenuBar ( this );
menuBar->addMenu ( createFileMenu ( menuBar ) );
menuBar->addMenu ( createImageMenu ( menuBar ) );
menuBar->addMenu ( createOptionsMenu ( menuBar ) );
menuBar->addMenu ( createHelpMenu ( menuBar ) );
setMenuBar ( menuBar );
QWidget * widget = new QWidget ( this );
QHBoxLayout * layout = new QHBoxLayout ( widget );
// Create the subwindows for viewing the query and result images.
queryView = new ImageView ( this );
layout->addWidget ( queryView );
resultView = new ImageView ( this );
layout->addWidget ( resultView );
widget->setLayout ( layout );
setCentralWidget ( widget );
}
示例14: setupUi
UltraGridMainWindow::UltraGridMainWindow(QWidget *parent)
{
setupUi(this); // this sets up GUI
started = false;
history = settings.getHistory();
completer = new QCompleter(QStringList::fromSet(history), this);
address->setCompleter(completer);
address->completer()->setCompletionMode(QCompleter::PopupCompletion);
// signals/slots
connect( pushButton_start, SIGNAL( clicked() ), this, SLOT( doStart() ) );
connect( pushButton_advanced, SIGNAL( clicked() ), this, SLOT( doAdvanced() ) );
connect( pushButton_terminal, SIGNAL( clicked() ), this, SLOT( doTerminal() ) );
connect( actionAbout, SIGNAL( triggered() ), this, SLOT( about() ) );
connect( &process, SIGNAL( finished( int, QProcess::ExitStatus ) ),
this, SLOT( UGHasFinished( int, QProcess::ExitStatus ) ) );
connect( &process, SIGNAL( readyReadStandardOutput () ),
this, SLOT( outputAvailable ()) );
connect( &process, SIGNAL( readyReadStandardError () ),
this, SLOT( outputAvailable ()) );
setStatusBar(&statusBar);
terminal = new Terminal(this);
}
示例15: dialog
void MainWindow::exportBitmap()
{
QString filter = "Images (";
QList<QByteArray> formats = QImageWriter::supportedImageFormats();
for(QList<QByteArray>::iterator i = formats.begin(); i != formats.end(); i++)
{
if(i != formats.begin())
{
filter += " ";
}
filter += "*." + *i;
}
filter += ")";
QString filename = m_fileDialog.getSaveFileName("Save picture", filter);
if (filename.isNull())
{
return;
}
SavePictureDialog dialog(this, m_ltsCanvas, filename);
connect(&dialog, SIGNAL(statusMessage(QString)), this, SLOT(setStatusBar(QString)));
dialog.exec();
clearStatusBar();
}