blob: 72866724e9961ecbfa3da0a261c1ea8eb52650d5 [file] [log] [blame]
Edric Milaret627500d2015-03-27 16:41:40 -04001/***************************************************************************
2 * Copyright (C) 2011-2015 by Savoir-Faire Linux *
3 * Author: Edric Ladent Milaret <edric.ladent-milaret@savoirfairelinux.com>*
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17 **************************************************************************/
18
19
20#ifndef MAINBAR_H
21#define MAINBAR_H
22
23#include <QWidget>
24#include <QMenu>
25
26#include "navwidget.h"
27
28namespace Ui {
29class MainBar;
30}
31
32class MainBar : public NavWidget
33{
34 Q_OBJECT
35
36public:
37 explicit MainBar(QWidget *parent = 0);
38 ~MainBar();
39 void atExit();
40
41//UI SLOTS
42private slots:
43 void on_confButton_clicked();
44 void on_callLineEdit_returnPressed();
45 void on_callButton_clicked();
46 void on_exitButton_clicked();
47 void on_minimizeButton_clicked();
48
49private slots:
50 void showAboutDialog();
51
52private:
53 Ui::MainBar *ui;
54 void callAction();
55 QMenu *menu_;
56
57signals:
58 void minimize();
59};
60
61#endif // MAINBAR_H