Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F3995368
FMPlugin.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Jul 7, 5:27 AM
Size
1 KB
Mime Type
text/x-c++
Expires
Thu, Jul 9, 5:27 AM (12 h, 43 m)
Engine
blob
Format
Raw Data
Handle
271569
Attached To
rXR Xreate
FMPlugin.h
View Options
#ifndef _FM_PLUGIN_H_
#define _FM_PLUGIN_H_
class QLineEdit;
class QAction;
class TreeView;
#include <QDebug>
#include <QtCore/QObject>
#include <QtCore/QStack>
#include <QFileSystemModel>
#include <JuffPlugin.h>
class FileSystemModel;
class FMPlugin : public QObject, public JuffPlugin {
Q_OBJECT
#if QT_VERSION >= 0x050000
Q_PLUGIN_METADATA(IID JuffPlugin_iid)
#endif
Q_INTERFACES(JuffPlugin)
public:
FMPlugin();
virtual ~FMPlugin();
// info
virtual QString name() const;
virtual QString title() const;
virtual QString description() const;
virtual QString targetEngine() const;
// controls
virtual QWidgetList dockList() const;
virtual bool dockVisible(QWidget*) const;
virtual void applySettings();
QWidget * settingsPage() const;
protected:
virtual void onDocSaved(const QString&);
protected slots:
void itemDoubleClicked(const QModelIndex&);
void home();
void up();
void back();
void curFileDir();
void favorites();
void newDir();
void addToFavorites();
void goToFavorite();
void manageFavorites();
void onNewProjectRoot();
void treeCheckBox_toggled(bool value);
void showHiddenBox_toggled(bool value);
void onDirChanged(const QString&);
void onFileMoved(const QString &path, const QString &pathOld);
void onFileRenamed(const QString &path, const QString &oldName, const QString &newName);
private:
void cd(const QString&);
void initFavoritesMenu();
bool showAsTree;
bool showHidden;
int sortColumn;
QWidget* w_;
TreeView* tree_;
FileSystemModel* model_;
QLineEdit* pathEd_;
QAction* backBtn_;
QStack<QString> history_;
QStringList favorites_;
QMenu* favoritesMenu_;
QAction* addToFavoritesAct_;
QAction* manageFavoritesAct_;
QFileSystemWatcher fsWatcher_;
};
#endif
Event Timeline
Log In to Comment