/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2011 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
.arg(storageCombo->currentText())
.arg(slotSpin->value());
if (mainWin->m_commandDebug) {
- Pmsg1(000, "sending command : %s\n",scmd.toUtf8().data());
+ Pmsg1(000, "sending command : %s\n", scmd.toUtf8().data());
+ }
+ if (m_console) {
+ m_console->write_dir(scmd.toUtf8().data());
+ m_console->displayToPrompt(m_conn);
+ m_console->notify(m_conn, true);
+ } else {
+ Pmsg0(000, "m_console==NULL !!!!!!\n");
}
- m_console->write_dir(scmd.toUtf8().data());
- m_console->displayToPrompt(m_conn);
- m_console->notify(m_conn, true);
closeStackPage();
mainWin->resetFocus();
}
void labelPage::cancelButtonPushed()
{
this->hide();
- m_console->notify(m_conn, true);
+ if (m_console) {
+ m_console->notify(m_conn, true);
+ } else {
+ Pmsg0(000, "m_console==NULL !!!!!!\n");
+ }
closeStackPage();
mainWin->resetFocus();
}
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2010 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2011 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
Switzerland, email:ftf@fsfeurope.org.
*/
/*
- * Version $Id$
- *
* Dirk Bartley, March 2007
*/
m_onceDocked = false;
m_closeable = true;
m_dockOnFirstUse = true;
+ m_console = NULL;
+ m_parent = NULL;
}
/* first Use Dock */
/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2011 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
Switzerland, email:ftf@fsfeurope.org.
*/
/*
- * Version $Id$
- *
* Dirk Bartley, March 2007
*/
class Pages : public QWidget
{
public:
+ /* methods */
Pages();
void dockPage();
void undockPage();
bool isDocked();
bool isOnceDocked();
bool isCloseable();
- QTabWidget *m_parent;
- QList<QAction*> m_contextActions;
virtual void PgSeltreeWidgetClicked();
virtual void currentStackItem();
void closeStackPage();
void getStatusList(QStringList &);
void firstUseDock();
+ /* members */
+ QTabWidget *m_parent;
+ QList<QAction*> m_contextActions;
+
+
public slots:
/* closeEvent is a virtual function inherited from QWidget */
virtual void closeEvent(QCloseEvent* event);
protected:
+ /* methods */
void pgInitialize();
void pgInitialize(const QString &);
void pgInitialize(const QString &, QTreeWidgetItem *);
virtual void changeEvent(QEvent *event);
void setConsoleCurrent();
void setTitle();
+
+ /* members */
bool m_closeable;
bool m_docked;
bool m_onceDocked;
ItemFormatterBase::BYTES_CONVERSION ItemFormatterBase::cnvFlag(BYTES_CONVERSION_IEC);
+/* String to Electronic value based on K=1024 */
QString convertBytesIEC(qint64 qfld)
{
static const qint64 KB = Q_INT64_C(1024);
return QString("%1 %2iB").arg(qfld / 1000.0, 0, 'f', 2).arg(suffix);
}
+/* String to human value based on k=1000 */
QString convertBytesSI(qint64 qfld)
{
static const qint64 KB = Q_INT64_C(1000);