#include <cstdio>#include <stdlib.h>#include <string.h>#include <stdio.h>#include <termios.h>#include <fcntl.h>#include <libgen.h>#include <ctype.h>#include <signal.h>#include <assert.h>#include <qlabel.h>#include <qlineedit.h>#include <time.h>#include <Qt/qstring.h>#include "qstring-factory.h"#include "common.h"#include "index.h"#include "version.h"#include "song-information.h"#include "memory.h"#include "spectrum-type.h"#include "bpmdj.h"#include "smallhistogram-type.h"#include "histogram-property.h"#include "info.h"
Classes | |
| class | SongInfoDialog |
Defines | |
| #define | field2this(namea, nameb) |
Functions | |
| Symbol | key_content ("content") |
| Symbol | key_scale ("scale") |
| int | strcompare (const void *a, const void *b) |
| QString | findUniqueName (QString directory, QString filename) |
| Index * | createNewIndexFor (QString filename, QString directory) |
| #define field2this | ( | namea, | |||
| nameb | ) |
if (info.namea##Edit->text()!=nameb) \ { nameb = info.namea##Edit->text(); \ meta_changed = true; }
Referenced by SongInformation::on_save_clicked().
| Index* createNewIndexFor | ( | QString | song, | |
| QString | directory | |||
| ) |
Creates a new unique index filename and refer to the song, thereby tagging it as New
We set the period to unknown, which will also immediately write the index to disk
References findUniqueName(), Index::set_filename(), Index::set_period(), Index::set_storedin(), Index::set_tags(), and Index::set_title_author_remix().
Referenced by MusicScanner::checkfile(), and main().
| QString findUniqueName | ( | QString | directory, | |
| QString | filename | |||
| ) |
Prefixes the extension of filename with a number until a unique filename is found
References exists(), IdxExt, and slash.
Referenced by createNewIndexFor().
| Symbol key_content | ( | "content" | ) |
| Symbol key_scale | ( | "scale" | ) |
| int strcompare | ( | const void * | a, | |
| const void * | b | |||
| ) |
1.6.2