00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef __KATE_PROJECTLIST_H__
00022
#define __KATE_PROJECTLIST_H__
00023
00024
#include "katemain.h"
00025
00026
#include "../interfaces/project.h"
00027
00028
#include <ktoolbar.h>
00029
#include <kcombobox.h>
00030
00031
#include <qwidget.h>
00032
#include <qvaluelist.h>
00033
#include <qframe.h>
00034
00035
class KateMainWindow;
00036
class KActionCollection;
00037
class KActionSelector;
00038
00039
00040
class KateProjectListToolBar:
public KToolBar
00041 {
00042 Q_OBJECT
00043
public:
00044 KateProjectListToolBar(QWidget *parent);
00045 ~KateProjectListToolBar();
00046
00047
void setMovingEnabled(
bool b );
00048 };
00049
00050
class KateProjectListToolBarParent:
public QFrame
00051 {
00052 Q_OBJECT
00053
public:
00054 KateProjectListToolBarParent(QWidget *parent);
00055 ~KateProjectListToolBarParent();
00056
void setToolBar(KateProjectListToolBar *tb);
00057
private:
00058 KateProjectListToolBar *m_tb;
00059
protected:
00060
void resizeEvent ( QResizeEvent * );
00061 };
00062
00063
class KateProjectList :
public QWidget
00064 {
00065 Q_OBJECT
00066
00067
public:
00068 KateProjectList (
class KateProjectManager *_projectManager,
class KateMainWindow *_mainWindow, QWidget * parent = 0,
const char * name = 0 );
00069 ~KateProjectList ();
00070
00071
void setupActions();
00072
00073
private slots:
00074
void projectChanged ();
00075
void projectCreated (
Kate::Project *project);
00076
void projectDeleted (uint projectNumber);
00077
void slotActivated (
int index );
00078
00079
private:
00080 KComboBox *m_projectList;
00081
class KateProjectManager *m_projectManager;
00082
class KateMainWindow *m_mainWindow;
00083 KateProjectListToolBar *toolbar;
00084 KActionCollection *mActionCollection;
00085 QValueList<unsigned int> m_projects;
00086 };
00087
00088
#endif