cfgfilepaths.h
1 //------------------------------------------------------------------------------
2 // cfgfilepaths.h
3 //------------------------------------------------------------------------------
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (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, write to the Free Software
17 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 // 02110-1301, USA.
19 //
20 //------------------------------------------------------------------------------
21 // Copyright (C) 2009 "Zalewa" <zalewapl@gmail.com>
22 //------------------------------------------------------------------------------
23 
24 #ifndef __CFG_FILE_PATHS_H_
25 #define __CFG_FILE_PATHS_H_
26 
27 #include "gui/configuration/configurationbasebox.h"
28 #include "dptr.h"
29 
30 class FileSearchPath;
31 
33 {
34  Q_OBJECT
35 
36  public:
37  CFGFilePaths(QWidget* parent = 0);
38  ~CFGFilePaths();
39 
40  void readSettings();
41 
42  protected:
43  void addPath(const FileSearchPath& fileSearchPath);
44 
45  QIcon icon() const;
46 
47  bool isPathAlreadyDefined(const QString& path);
48 
49  QString name() const { return tr("File Paths"); }
50 
51  void saveSettings();
52 
53  protected slots:
54  void btnAddWadPath_Click();
55  void btnRemoveWadPath_Click();
56 
57  private:
59 };
60 
61 #endif
void saveSettings()
Reimplement this to write settings to config from widgets.
QString name() const
Reimplement this to return a list-displayable name for this ConfigurationBaseBox. ...
Definition: cfgfilepaths.h:49
QIcon icon() const
Reimplement this to return a displayable icon for the ConfigurationBaseBox.
void readSettings()
Reimplement this to read settings from config into widgets.
Base class for configuration pages.