/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2007 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.
*/
/*
+ * Version $Id$
+ *
* qt-console main window class definition.
*
- * Written by Kern Sibbald, January MMVI
+ * Written by Kern Sibbald, January MMVII
*/
#ifndef _MAINWIN_H_
#define _MAINWIN_H_
#include <QtGui>
+#include <QList>
+#include "pages.h"
#include "ui_main.h"
+#include "label/label.h"
+#include "run/run.h"
+#include "restore/restore.h"
+#include "medialist/medialist.h"
class Console;
void set_statusf(const char *fmt, ...);
void set_status_ready();
void set_status(const char *buf);
+ void writeSettings();
+ void readSettings();
+ void resetFocus() { lineEdit->setFocus(); };
+
public slots:
void input_line();
void about();
void treeItemClicked(QTreeWidgetItem *item, int column);
void treeItemDoubleClicked(QTreeWidgetItem *item, int column);
+ void labelDialogClicked();
+ void runDialogClicked();
+ void restoreDialogClicked();
+ void undockWindow();
+ void undockWindowButton();
+
+protected:
+ void closeEvent(QCloseEvent *event);
+ void keyPressEvent(QKeyEvent *event);
+
+private:
+ void createConnections();
+ void createPages();
+ QTreeWidgetItem *createTopPage(char *name );
+ QTreeWidgetItem *createPage(char *name, QTreeWidgetItem *parent );
private:
- QString m_UserInput;
Console *m_console;
+ Pages *m_pagespophold;
+ QList<Pages*> m_pageslist;
+ QList<Pages*> m_pagesindex;
+ QStringList m_cmd_history;
+ int m_cmd_last;
+ int m_pages;
};
#endif /* _MAINWIN_H_ */