1
/**************************************************************************
2
* Copyright (C) 2005-2015 by Oleksandr Shneyder *
3
* o.shneyder@phoca-gmbh.de *
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 2 of the License, or *
8
* (at your option) any later version. *
9
* This program is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
14
* You should have received a copy of the GNU General Public License *
15
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
16
***************************************************************************/
18
#ifndef SESSIONEXPLORER_H
19
#define SESSIONEXPLORER_H
23
#include <QStringList>
32
class SessionExplorer: public QObject
36
SessionExplorer(ONMainWindow *p);
38
QList<SessionButton*> * getSessionsList()
42
QList<FolderButton*> * getFoldersList()
46
SessionButton* getLastSession() {
49
void setLastSession(SessionButton* s)
54
SessionButton* createBut ( const QString& id );
56
QHBoxLayout* getNavigationLayout()
58
return navigationLayout;
60
bool isFolderEmpty(QString path);
62
void setFolderIcon(QString path, QString icon);
63
void createNewFolder(QString path);
64
void renameFolder(QString oldPath, QString currentPath);
65
void deleteFolder(QString path);
67
QString getCurrentPath()
72
void setCurrrentPath(QString path)
77
void setEnable(bool enable);
82
QList<SessionButton*> sessions;
83
QList<FolderButton*> folders;
84
SessionButton* lastSession;
86
QToolButton* backButton;
88
QHBoxLayout* navigationLayout;
93
void setNavigationVisible(bool value);
94
int findFolder(QString path);
95
void createFolder(QString path);
96
void getFoldersFromConfig();
99
void slotDeleteButton ( SessionButton * bt );
100
void slotEdit ( SessionButton* );
101
void slotCreateDesktopIcon ( SessionButton* bt );
102
void exportsEdit ( SessionButton* bt );
104
void slotFolderSelected(FolderButton* bt);
106
QStringList getFolderChildren(FolderButton* folder);