forked from len0rd/rockbox
Theme Editor: Began implementing classes to display project files and settings in the project panel
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26706 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
007ef43a50
commit
61b5f0c973
6 changed files with 209 additions and 14 deletions
|
@ -33,6 +33,7 @@ EditorWindow::EditorWindow(QWidget *parent) :
|
|||
{
|
||||
ui->setupUi(this);
|
||||
prefs = new PreferencesDialog(this);
|
||||
project = new ProjectModel();
|
||||
loadSettings();
|
||||
setupUI();
|
||||
setupMenus();
|
||||
|
@ -75,11 +76,6 @@ void EditorWindow::saveSettings()
|
|||
|
||||
void EditorWindow::setupUI()
|
||||
{
|
||||
/* Displaying some files to test the file tree view */
|
||||
QFileSystemModel* model = new QFileSystemModel;
|
||||
model->setRootPath(QDir::currentPath());
|
||||
ui->fileTree->setModel(model);
|
||||
|
||||
/* Connecting the tab bar signals */
|
||||
QObject::connect(ui->editorTabs, SIGNAL(currentChanged(int)),
|
||||
this, SLOT(shiftTab(int)));
|
||||
|
@ -98,6 +94,9 @@ void EditorWindow::setupUI()
|
|||
parseStatus = new QLabel(this);
|
||||
ui->statusbar->addPermanentWidget(parseStatus);
|
||||
|
||||
/* Setting up the project viewer */
|
||||
ui->projectTree->setModel(project);
|
||||
|
||||
}
|
||||
|
||||
void EditorWindow::setupMenus()
|
||||
|
@ -250,7 +249,7 @@ void EditorWindow::tabTitleChanged(QString title)
|
|||
void EditorWindow::showPanel()
|
||||
{
|
||||
if(sender() == ui->actionFile_Panel)
|
||||
ui->fileDock->setVisible(true);
|
||||
ui->projectDock->setVisible(true);
|
||||
if(sender() == ui->actionPreview_Panel)
|
||||
ui->skinPreviewDock->setVisible(true);
|
||||
if(sender() == ui->actionDisplay_Panel)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue