21 #ifndef PCMANFM_APPLICATION_H 22 #define PCMANFM_APPLICATION_H 24 #include <QApplication> 27 #include "editbookmarksdialog.h" 30 #include <QProxyStyle> 31 #include <QTranslator> 37 class QFileSystemWatcher;
42 class PreferencesDialog;
43 class DesktopPreferencesDialog;
50 virtual int styleHint(StyleHint hint,
const QStyleOption * option = 0,
const QWidget * widget = 0, QStyleHintReturn * returnData = 0)
const;
55 Q_PROPERTY(
bool desktopManagerEnabled READ desktopManagerEnabled)
73 void launchFiles(QString cwd, QStringList paths,
bool inNewWindow);
74 void setWallpaper(QString path, QString modeString);
75 void preferences(QString page);
76 void desktopPrefrences(QString page);
78 void desktopManager(
bool enabled);
79 void findFiles(QStringList paths = QStringList());
81 bool desktopManagerEnabled() {
82 return enableDesktopManager_;
85 void updateFromSettings();
86 void updateDesktopsFromSettings();
88 void openFolderInTerminal(FmPath* path);
89 void openFolders(FmFileInfoList* files);
91 QString profileName() {
97 void onSigtermNotified();
99 void onLastWindowClosed();
100 void onSaveStateRequest(QSessionManager & manager);
101 void onScreenResized(
int num);
102 void onScreenCountChanged(
int newCount);
103 void initVolumeManager();
105 void onVirtualGeometryChanged(
const QRect& rect);
106 void onScreenDestroyed(QObject* screenObj);
107 void onScreenAdded(QScreen* newScreen);
108 void reloadDesktopsAsNeeded();
110 void onFindFileAccepted();
113 virtual bool eventFilter(QObject* watched, QEvent* event);
114 bool parseCommandLineArgs();
116 bool autoMountVolume(GVolume* volume,
bool interactive =
true);
118 static void onVolumeAdded(GVolumeMonitor* monitor, GVolume* volume,
Application* pThis);
121 void onUserDirsChanged();
125 void installSigtermHandler();
127 bool isPrimaryInstance;
130 QString profileName_;
132 bool enableDesktopManager_;
133 QVector<DesktopWindow*> desktopWindows_;
134 QPointer<PreferencesDialog> preferencesDialog_;
135 QPointer<DesktopPreferencesDialog> desktopPreferencesDialog_;
136 QPointer<Fm::EditBookmarksDialog> editBookmarksialog_;
137 QTranslator translator;
138 QTranslator qtTranslator;
139 GVolumeMonitor* volumeMonitor_;
141 QFileSystemWatcher *userDirsWatcher_;
142 QString userDirsFile_;
143 QString userDesktopFolder_;
152 #endif // PCMANFM_APPLICATION_H Definition: application.h:53
Definition: settings.h:41
Definition: application.h:39
Definition: application.h:45
Definition: desktopwindow.h:42