libyui-mga  1.0.4
 All Classes Functions Enumerations Enumerator
YMGAAboutDialog.h
1 /*
2  Copyright 2014 by Matteo Pasotti
3 
4  This library is free software; you can redistribute it and/or modify
5  it under the terms of the GNU Lesser General Public License as
6  published by the Free Software Foundation; either version 2.1 of the
7  License, or (at your option) version 3.0 of the License. This library
8  is distributed in the hope that it will be useful, but WITHOUT ANY
9  WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
11  License for more details. You should have received a copy of the GNU
12  Lesser General Public License along with this library; if not, write
13  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
14  Floor, Boston, MA 02110-1301 USA
15 */
16 
17 #ifndef YMGAAboutDialog_h
18 #define YMGAAboutDialog_h
19 
20 #include <string>
21 
23 class YDialog;
24 class YReplacePoint;
25 
27 {
28 public:
29  enum DLG_MODE {
30  CLASSIC,
31  TABBED
32  };
33 
34  YMGAAboutDialog(const std::string& name,
35  const std::string& version,
36  const std::string& license,
37  const std::string& authors,
38  const std::string& description,
39  const std::string& logo,
40  const std::string& icon = std::string(),
41  const std::string& credits = std::string(),
42  const std::string& information = std::string()
43  );
44  virtual ~YMGAAboutDialog();
45 
46  void show(DLG_MODE type = TABBED);
47 
48 
49 private:
51 
52  void genAuthorsTab(YReplacePoint* rpoint);
53  void genContributorsTab(YReplacePoint* rpoint);
54  void genInformationTab(YReplacePoint* rpoint);
55 
56  void Tabbed();
57  void Classic();
58 
59  void showInformation();
60  void showCredits();
61 };
62 
63 
64 #endif //YMGAAboutDialog_h
YMGAAboutDialog(const std::string &name, const std::string &version, const std::string &license, const std::string &authors, const std::string &description, const std::string &logo, const std::string &icon=std::string(), const std::string &credits=std::string(), const std::string &information=std::string())
The constructor.
void show(DLG_MODE type=TABBED)
it actually shows the about dialog