mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-22 07:41:20 -04:00
Added SoundDialog for Preferences which uses QSound supports wav files, where can set wav files.
Added SoundManager for the events, at the moment there is no connect for a event to use it. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1386 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5335509028
commit
8a1ae827b9
17 changed files with 1438 additions and 240 deletions
|
@ -32,16 +32,17 @@
|
|||
|
||||
/* Images for toolbar icons */
|
||||
#define IMAGE_PREFERENCES ":/images/kcmsystem24.png"
|
||||
#define IMAGE_SERVER ":/images/server_24x24.png"
|
||||
#define IMAGE_DIRECTORIES ":/images/folder_doments.png"
|
||||
#define IMAGE_SERVER ":/images/server_24x24.png"
|
||||
#define IMAGE_DIRECTORIES ":/images/folder_doments.png"
|
||||
#define IMAGE_CRYPTOGRAPHY ":/images/encrypted32.png"
|
||||
#define IMAGE_LOG ":/images/log_24x24.png"
|
||||
#define IMAGE_ABOUT ":/images/informations_24x24.png"
|
||||
#define IMAGE_SAVE ":/images/media-floppy.png"
|
||||
#define IMAGE_LOG ":/images/log_24x24.png"
|
||||
#define IMAGE_ABOUT ":/images/informations_24x24.png"
|
||||
#define IMAGE_SAVE ":/images/media-floppy.png"
|
||||
#define IMAGE_HELP ":/images/help24.png"
|
||||
#define IMAGE_APPEARRANCE ":/images/looknfeel.png"
|
||||
#define IMAGE_FILE_ASSOTIATIONS ":/images/filetype-association.png"
|
||||
#define IMAGE_NOTIFY ":/images/status_unknown.png"
|
||||
#define IMAGE_SOUND ":/images/sound.png"
|
||||
|
||||
|
||||
|
||||
|
@ -75,7 +76,11 @@ PreferencesWindow::PreferencesWindow(QWidget *parent, Qt::WFlags flags)
|
|||
ui.stackPages->add(new FileAssotiationsDialog(ui.stackPages),
|
||||
createPageAction(QIcon(IMAGE_FILE_ASSOTIATIONS),
|
||||
tr("File Associations"), grp));
|
||||
|
||||
#ifdef RS_RELEASE_VERSION
|
||||
#else
|
||||
ui.stackPages->add(new SoundDialog(ui.stackPages),
|
||||
createPageAction(QIcon(IMAGE_SOUND), tr("Sound"), grp));
|
||||
#endif
|
||||
|
||||
|
||||
/*foreach (ConfigPage *page, ui.stackPages->pages()) {
|
||||
|
@ -94,7 +99,6 @@ PreferencesWindow::PreferencesWindow(QWidget *parent, Qt::WFlags flags)
|
|||
|
||||
/* Select the first action */
|
||||
grp->actions()[0]->setChecked(true);
|
||||
// setFixedSize(QSize(480, 450));
|
||||
|
||||
connect(ui.okButton, SIGNAL(clicked( bool )), this, SLOT( saveChanges()) );
|
||||
connect(ui.cancelprefButton, SIGNAL(clicked( bool )), this, SLOT( cancelpreferences()) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue