#############################################################################
# Makefile for building: bat
-# Generated by qmake (2.01a) (Qt 4.2.1) on: Mon Jan 29 10:12:52 2007
+# Generated by qmake (2.01a) (Qt 4.2.1) on: Mon Jan 29 12:01:29 2007
# Project: bat.pro
# Template: app
# Command: /usr/bin/qmake -unix -o Makefile bat.pro
qrc_main.cpp: main.qrc \
/usr/bin/rcc \
images/new.png \
+ images/disconnected.png \
images/label.png \
images/server.png \
images/restore.png \
images/copy.png \
images/cut.png \
- images/connect.png \
+ images/connected.png \
images/big-server.png \
images/save.png \
images/bat.png \
m_at_prompt = false;
m_textEdit = mainWin->textEdit; /* our console screen */
m_cursor = new QTextCursor(m_textEdit->document());
+ mainWin->actionConnect->setIcon(QIcon(QString::fromUtf8("images/disconnected.png")));
/* ***FIXME*** make this configurable */
font.setFamily("Courier");
if (m_sock == NULL) {
mainWin->set_status("Connection failed");
return;
+ } else {
+ mainWin->actionConnect->setIcon(QIcon(QString::fromUtf8("images/connected.png")));
}
+
jcr.dir_bsock = m_sock;
if (!authenticate_director(&jcr, m_dir, cons)) {
bnet_send(m_sock);
} else {
mainWin->set_status(" Director not connected. Click on connect button.");
+ mainWin->actionConnect->setIcon(QIcon(QString::fromUtf8("images/disconnected.png")));
}
}
if (is_bnet_stop(m_sock)) { /* error or term request */
bnet_close(m_sock);
m_sock = NULL;
+ mainWin->actionConnect->setIcon(QIcon(QString::fromUtf8("images/disconnected.png")));
m_notifier->setEnabled(false);
delete m_notifier;
m_notifier = NULL;