]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak names
authorKern Sibbald <kern@sibbald.com>
Tue, 27 Mar 2007 20:07:07 +0000 (20:07 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 27 Mar 2007 20:07:07 +0000 (20:07 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4440 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/mainwin.cpp
bacula/src/qt-console/mainwin.h

index 3400c83760217a0b7c214ada0650961d6fcba087..46551b987e1c3898ac81e7f2db8eb6c366f5793a 100644 (file)
@@ -178,10 +178,12 @@ void MainWin::createConnections()
    connect(lineEdit, SIGNAL(returnPressed()), this, SLOT(input_line()));
    connect(actionAbout_bat, SIGNAL(triggered()), this, SLOT(about()));
 
-/*   connect(treeWidget, SIGNAL(itemActivated(QTreeWidgetItem *, int)), this, 
+#ifdef xxx
+     connect(treeWidget, SIGNAL(itemActivated(QTreeWidgetItem *, int)), this, 
            SLOT(treeItemClicked(QTreeWidgetItem *, int)));
    connect(treeWidget, SIGNAL(itemPressed(QTreeWidgetItem *, int)), this, 
-           SLOT(treeItemClicked(QTreeWidgetItem *, int)));  Commented out because it was getting to clicked multiple times*/
+           SLOT(treeItemClicked(QTreeWidgetItem *, int)));  
+#endif
    connect(treeWidget, SIGNAL(itemClicked(QTreeWidgetItem *, int)), this, 
            SLOT(treeItemClicked(QTreeWidgetItem *, int)));
    connect(treeWidget, SIGNAL(itemDoubleClicked(QTreeWidgetItem *, int)), this, 
@@ -194,7 +196,7 @@ void MainWin::createConnections()
    connect(actionLabel, SIGNAL(triggered()), this,  SLOT(labelDialogClicked()));
    connect(actionRun, SIGNAL(triggered()), this,  SLOT(runDialogClicked()));
    connect(actionRestore, SIGNAL(triggered()), this,  SLOT(restoreDialogClicked()));
-   connect(actionPullWindowOut, SIGNAL(triggered()), this,  SLOT(pullWindowOutButton()));
+   connect(actionPullWindowOut, SIGNAL(triggered()), this,  SLOT(floatWindowButton()));
 }
 
 /* 
@@ -228,10 +230,12 @@ void MainWin::readSettings()
    settings.endGroup();
 }
 
+/*
+ * This subroutine is called with an item in the Page Selection window
+ *   is clicked 
+ */
 void MainWin::treeItemClicked(QTreeWidgetItem *item, int column)
 {
-   (void)column;
-
    /* Use tree item's Qt::UserRole to get treeindex */
    int treeindex = item->data(column, Qt::UserRole).toInt();
    int stackindex=stackedWidget->indexOf(m_bstacklist[treeindex]);
@@ -244,18 +248,21 @@ void MainWin::treeItemClicked(QTreeWidgetItem *item, int column)
 }
 
 /*
+ * This subroutine is called with an item in the Page Selection window
+ *   is double clicked
  */
 void MainWin::treeItemDoubleClicked(QTreeWidgetItem *item, int column)
 {
-   (void)column;
    int treeindex = item->data(column, Qt::UserRole).toInt();
 
    /* Use tree item's Qt::UserRole to get treeindex */
    if ( m_bstacklist[treeindex]->isStacked() == true ){
       m_bstackpophold=m_bstacklist[treeindex];
-      /* Create a popup menu before pulling window out */
+
+      /* Create a popup menu before floating window */
       QMenu *popup = new QMenu( treeWidget );
-      connect(popup->addAction("Pull Window Out"), SIGNAL(triggered()), this, SLOT(pullWindowOut()));
+      connect(popup->addAction("Float Window"), SIGNAL(triggered()), this, 
+              SLOT(floatWindow()));
       popup->exec(QCursor::pos());
    } else {
       /* Just pull it back in without prompting */
@@ -330,12 +337,12 @@ void MainWin::set_status(const char *buf)
    statusBar()->showMessage(buf);
 }
 
-void MainWin::pullWindowOut()
+void MainWin::floatWindow()
 {
    m_bstackpophold->Togglestack();
 }
 
-void MainWin::pullWindowOutButton()
+void MainWin::floatWindowButton()
 {
    int curindex = stackedWidget->currentIndex();
    QList<BatStack*>::iterator bstackItem = m_bstacklist.begin();
index 662d19277ff8c2114349d165b0541ae23b16fc25..3e5d3283c0e65c0980ac3ce96d680a3060d1b32f 100644 (file)
@@ -69,8 +69,8 @@ public slots:
    void labelDialogClicked();
    void runDialogClicked();
    void restoreDialogClicked();
-   void pullWindowOut();
-   void pullWindowOutButton();
+   void floatWindow();
+   void floatWindowButton();
 
 protected:
    void closeEvent(QCloseEvent *event);