#include <CustomActionDialog.h>
Public Member Functions | |
CustomActionDialog (QWidget *parent, Qt::WFlags fl=0) | |
Constructor. | |
Private Slots | |
QAction * | addAction () |
void | chooseFile () |
void | chooseFolder () |
void | chooseIcon () |
void | removeAction () |
void | saveCurrentAction () |
void | setCurrentAction (int) |
Private Member Functions | |
QAction * | actionAt (int row) |
void | customizeAction (QAction *action) |
void | init () |
void | saveAction (QAction *action) |
void | updateDisplayList () |
bool | validUserInput () |
Private Attributes | |
QPushButton * | buttonAdd |
QPushButton * | buttonCancel |
QPushButton * | buttonRemove |
QPushButton * | buttonSave |
QStringList | d_app_shortcut_keys |
QList< QToolBar * > | d_app_toolbars |
QList< QMenu * > | d_menus |
QLineEdit * | fileBox |
QPushButton * | fileBtn |
QLineEdit * | folderBox |
QPushButton * | folderBtn |
QLineEdit * | iconBox |
QPushButton * | iconBtn |
QListWidget * | itemsList |
QComboBox * | menuBox |
QRadioButton * | menuBtn |
QLineEdit * | shortcutBox |
QLineEdit * | textBox |
QComboBox * | toolBarBox |
QRadioButton * | toolBarBtn |
QLineEdit * | toolTipBox |
CustomActionDialog::CustomActionDialog | ( | QWidget * | parent, | |
Qt::WFlags | fl = 0 | |||
) |
Constructor.
parent | parent widget (must be the application window!= | |
fl | window flags |
References addAction(), buttonAdd, buttonCancel, buttonRemove, buttonSave, chooseFile(), chooseFolder(), chooseIcon(), fileBox, fileBtn, folderBox, folderBtn, iconBox, iconBtn, init(), itemsList, menuBox, menuBtn, removeAction(), saveCurrentAction(), setCurrentAction(), shortcutBox, textBox, toolBarBox, toolBarBtn, and toolTipBox.
QAction * CustomActionDialog::actionAt | ( | int | row | ) | [private] |
References ApplicationWindow::customActionsList().
Referenced by removeAction(), saveCurrentAction(), and setCurrentAction().
QAction * CustomActionDialog::addAction | ( | ) | [private, slot] |
References ApplicationWindow::addCustomAction(), customizeAction(), d_app_toolbars, d_menus, itemsList, menuBox, saveAction(), toolBarBox, toolBarBtn, and validUserInput().
Referenced by CustomActionDialog().
void CustomActionDialog::chooseFile | ( | ) | [private, slot] |
void CustomActionDialog::chooseFolder | ( | ) | [private, slot] |
void CustomActionDialog::chooseIcon | ( | ) | [private, slot] |
void CustomActionDialog::customizeAction | ( | QAction * | action | ) | [private] |
References fileBox, iconBox, shortcutBox, textBox, and toolTipBox.
Referenced by addAction(), and saveCurrentAction().
void CustomActionDialog::init | ( | ) | [private] |
References ApplicationWindow::customActionsDirPath, ApplicationWindow::customizableMenusList(), d_app_shortcut_keys, d_app_toolbars, d_menus, folderBox, menuBox, ApplicationWindow::menusList(), toolBarBox, ApplicationWindow::toolBarsList(), and updateDisplayList().
Referenced by CustomActionDialog().
void CustomActionDialog::removeAction | ( | ) | [private, slot] |
References actionAt(), ApplicationWindow::customActionsDirPath, itemsList, ApplicationWindow::removeCustomAction(), and setCurrentAction().
Referenced by CustomActionDialog().
void CustomActionDialog::saveAction | ( | QAction * | action | ) | [private] |
References ApplicationWindow::customActionsDirPath.
Referenced by addAction(), and saveCurrentAction().
void CustomActionDialog::saveCurrentAction | ( | ) | [private, slot] |
References actionAt(), ApplicationWindow::addCustomAction(), customizeAction(), d_app_toolbars, d_menus, itemsList, menuBox, menuBtn, saveAction(), toolBarBox, and toolBarBtn.
Referenced by CustomActionDialog().
void CustomActionDialog::setCurrentAction | ( | int | row | ) | [private, slot] |
References actionAt(), fileBox, iconBox, menuBox, menuBtn, shortcutBox, textBox, toolBarBox, toolBarBtn, and toolTipBox.
Referenced by CustomActionDialog(), removeAction(), and updateDisplayList().
void CustomActionDialog::updateDisplayList | ( | ) | [private] |
bool CustomActionDialog::validUserInput | ( | ) | [private] |
References chooseFolder(), ApplicationWindow::customActionsList(), d_app_shortcut_keys, fileBox, folderBox, iconBox, shortcutBox, and textBox.
Referenced by addAction().
QPushButton * CustomActionDialog::buttonAdd [private] |
Referenced by CustomActionDialog().
QPushButton* CustomActionDialog::buttonCancel [private] |
Referenced by CustomActionDialog().
QPushButton * CustomActionDialog::buttonRemove [private] |
Referenced by CustomActionDialog().
QPushButton * CustomActionDialog::buttonSave [private] |
Referenced by CustomActionDialog().
QStringList CustomActionDialog::d_app_shortcut_keys [private] |
Referenced by init(), and validUserInput().
QList<QToolBar *> CustomActionDialog::d_app_toolbars [private] |
Referenced by addAction(), init(), and saveCurrentAction().
QList<QMenu *> CustomActionDialog::d_menus [private] |
Referenced by addAction(), init(), and saveCurrentAction().
QLineEdit * CustomActionDialog::fileBox [private] |
Referenced by chooseFile(), CustomActionDialog(), customizeAction(), setCurrentAction(), and validUserInput().
QPushButton * CustomActionDialog::fileBtn [private] |
Referenced by CustomActionDialog().
QLineEdit* CustomActionDialog::folderBox [private] |
Referenced by chooseFolder(), CustomActionDialog(), init(), and validUserInput().
QPushButton* CustomActionDialog::folderBtn [private] |
Referenced by CustomActionDialog().
QLineEdit * CustomActionDialog::iconBox [private] |
Referenced by chooseIcon(), CustomActionDialog(), customizeAction(), setCurrentAction(), and validUserInput().
QPushButton * CustomActionDialog::iconBtn [private] |
Referenced by CustomActionDialog().
QListWidget* CustomActionDialog::itemsList [private] |
Referenced by addAction(), CustomActionDialog(), removeAction(), saveCurrentAction(), and updateDisplayList().
QComboBox* CustomActionDialog::menuBox [private] |
Referenced by addAction(), CustomActionDialog(), init(), saveCurrentAction(), and setCurrentAction().
QRadioButton* CustomActionDialog::menuBtn [private] |
Referenced by CustomActionDialog(), saveCurrentAction(), and setCurrentAction().
QLineEdit * CustomActionDialog::shortcutBox [private] |
Referenced by CustomActionDialog(), customizeAction(), setCurrentAction(), and validUserInput().
QLineEdit * CustomActionDialog::textBox [private] |
Referenced by CustomActionDialog(), customizeAction(), setCurrentAction(), and validUserInput().
QComboBox * CustomActionDialog::toolBarBox [private] |
Referenced by addAction(), CustomActionDialog(), init(), saveCurrentAction(), and setCurrentAction().
QRadioButton * CustomActionDialog::toolBarBtn [private] |
Referenced by addAction(), CustomActionDialog(), saveCurrentAction(), and setCurrentAction().
QLineEdit * CustomActionDialog::toolTipBox [private] |
Referenced by CustomActionDialog(), customizeAction(), and setCurrentAction().